Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuDispose.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetBest.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuWrite.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/Xauth.h
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetAddr.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/k5encode.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/AuRead.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xau/Autest.c
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xresource.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xlocale.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/XKBlib.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xlib.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xlibint.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/cursorfont.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xutil.h
Examining data/tightvnc-1.3.10/Xvnc/lib/X11/Xcms.h
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.h
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/transport.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c
Examining data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransint.h
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RaAoA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RAofA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/CA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/A8Eq.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Flush.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Unwrap.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/AA16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WC32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/AA32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RA32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WC16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/DA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/DA16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wrap.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Xdmcp.h
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WA32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RaA16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RC16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RHead.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WA16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RC8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/CmpKey.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/AofA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Whead.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RC32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/DAofA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/DecKey.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RaA32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wrap.h
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WC8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/IncKey.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/AA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RR.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RA16.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Fill.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/WAofA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/RaA8.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/DA32.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c
Examining data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Alloc.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fslibos.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fservestr.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsconvert.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/gunzip.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/bitsource.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fileio.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/printerfont.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/ffcheck.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontscale.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/renderers.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/defaults.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/bufio.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/decompress.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/filewr.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/register.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/snfstr.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitmap.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfread.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitmaputil.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitmapfunc.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/snfread.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfint.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcf.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfutils.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/fontink.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/lines.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/arith.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/token.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/lines.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1malloc.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/digit.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1stdio.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/hdigit.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/regions.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/minimain.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/pictures.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/type1.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/paths.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/arith.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1imager.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/curves.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/trig.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1snap.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1stub.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/cluts.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1intf.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/token.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/regions.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1hdigit.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fonts.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/hints.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/util.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/strokes.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/paths.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/blues.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/hints.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/curves.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/util.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1funcs.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fntfil.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fntfilst.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fontmisc.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fontxlfd.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/bufio.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/bitmap.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fontshow.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/include/fntfilio.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/fontnames.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/utilbitmap.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/fontaccel.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/private.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/format.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/atom.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/fontutil.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/miscutil.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/util/patcache.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spdo_prv.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/out_blk.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/htest.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/reset.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spint.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfile.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/useropt.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/set_spcs.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spencode.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/adobe-iso.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/set_trns.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spglyph.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sperr.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/out_outl.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/keys.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfont.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/iface.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/out_util.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/bics-iso.h
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/out_bl2d.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/out_scrn.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfuncs.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/do_char.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/do_trns.c
Examining data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/speedo.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/xfree86/common/scoasm.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/xfree86/common/compiler.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/translate.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/dispcur.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/spritest.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tableinittctemplate.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tabletranstemplate.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/kbdptr.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sprite.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/hextile.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/zlib.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/corre.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/stats.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sprite.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rre.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cutpaste.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tableinitcmtemplate.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/draw.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfb.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbfillsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbbstore.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbbres.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbteblt8.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbtegblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbline.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbrctstp8.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfb8cppl.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbimage.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbzerarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/stip68kgnu.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbscrinit.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfb8bit.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbwindow.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbsolid.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbcmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbpixmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbgetsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbigblt8.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbbresd.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfb8bit.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbtile32.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbhrzvert.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbpntwin.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbtileodd.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfb.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbpolypnt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbrrop.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbrrop.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbgc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbmskbits.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbmap.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbmskbits.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbpush8.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbply1rct.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbfillarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbsetsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbglblt8.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbfillrct.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfb8line.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfballpriv.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbbitblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbply1rct.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mergerop.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbimage.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbhrzvert.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbcmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbpolypnt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbpixmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbzerarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbbitblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbline.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbpntwin.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbplygblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfb.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbbresd.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbfont.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbtegblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/fastblt.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbfillsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbwindow.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbgetsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbscrinit.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/maskbits.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbclip.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbtile.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbbres.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbimggblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbmisc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbfillrct.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbgc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/maskbits.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbpushpxl.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbsetsp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbfillarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbscrclse.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbbstore.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mfb/mfbpntarea.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/migc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolyrect.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipointer.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mispans.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolycon.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mifillrct.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mifillarc.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mibstore.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mispans.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/migc.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/micursor.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mizerarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolyutil.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miscrinit.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mifpolycon.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/midash.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miwindow.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mieq.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miexpose.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mi.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolypnt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipointrst.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolygen.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolyseg.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipoly.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/cbrt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mibitblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/misprite.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mifpoly.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/midispcur.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mibstore.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miline.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mivalidate.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mizerarc.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipoly.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipolytext.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miinitext.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miglblt.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipointer.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mispritest.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mizerline.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miwideline.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mivaltree.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mibstorest.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/misprite.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mipushpxl.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miscanfill.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mifillarc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miclipn.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miregion.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/miwideline.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/mi/mistruct.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb24/cfbrrop24.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dispatch.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/window.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/colormap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/gc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/ffsl.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/globals.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/initatoms.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/main.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/resource.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/ffs.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/property.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/atom.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/devices.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/swapreq.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/events.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/glyphcurs.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixutils.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dispatch.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/pixmap.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/swaprep.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/privates.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/cursor.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/xpstubs.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/tables.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/swapreq.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/grabs.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/miscstruct.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/validate.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/exevents.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/opaque.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/regionstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/rgb.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/resource.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixevents.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/selection.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dix.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/inputstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/XIstubs.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixstruct.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/gcstruct.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/screenint.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/input.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/pixmapstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/windowstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/colormapst.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/closestr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/cursorstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/site.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/window.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/property.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/pixmap.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixfont.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/colormap.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixfontstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixgrabs.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/extension.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/scrnintstr.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/extinit.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/cursor.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/os.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/propertyst.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/extnsionst.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/region.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/gc.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/swaprep.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/closure.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/servermd.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/dpms.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/saver.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/mbuf.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/sync.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86misc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/appgroup.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xtest1dd.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xtest.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/mbufbf.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/mbufpx.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xtest1dd.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xtest1di.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/sleepuntil.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shape.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86dga.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/mitmisc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/bigreq.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xcmisc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xalloc.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmauth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/hpsocket.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/lbxio.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/iopreader.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/WaitFor.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/auth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osdep.h
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/decompress.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/io.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/genalloca.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/mitauth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/secauth.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c
Examining data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xprint/DiPrint.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xprotostr.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xos.h
Examining data/tightvnc-1.3.10/Xvnc/include/XWDFile.h
Examining data/tightvnc-1.3.10/Xvnc/include/ap_keysym.h
Examining data/tightvnc-1.3.10/Xvnc/include/Sunkeysym.h
Examining data/tightvnc-1.3.10/Xvnc/include/fonts/FSproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/fonts/FS.h
Examining data/tightvnc-1.3.10/Xvnc/include/fonts/fsmasks.h
Examining data/tightvnc-1.3.10/Xvnc/include/fonts/font.h
Examining data/tightvnc-1.3.10/Xvnc/include/fonts/fontstruct.h
Examining data/tightvnc-1.3.10/Xvnc/include/keysymdef.h
Examining data/tightvnc-1.3.10/Xvnc/include/keysym.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xfuncproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xalloca.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xosdefs.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XIE.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxbufstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86vmode.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XKBsrv.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xteststr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XKB.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/multibufst.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/mitmiscstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XIEprotost.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/saverproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/MITMisc.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xdbe.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/bigreqstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/security.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86misc.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/shmstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/multibuf.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XTest.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/dpms.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XIproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/shapestr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/syncstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/extutil.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XIEproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/securstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xext.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxzlib.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/saver.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/scrnsaver.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Printstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86mscstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/dpmsstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/sync.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86dga.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XLbx.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxdeltastr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XI.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxopts.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/shape.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xcmiscstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xtestext1.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/recordstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XKBproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xag.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Print.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxbuf.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86vmstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XShm.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xagstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xagsrv.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/record.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/xf86dgastr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbxstr.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/XKBgeom.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/lbximage.h
Examining data/tightvnc-1.3.10/Xvnc/include/extensions/Xdbeproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/HPkeysym.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xwinsock.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xatom.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xproto.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xpoll.h
Examining data/tightvnc-1.3.10/Xvnc/include/X.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xthreads.h
Examining data/tightvnc-1.3.10/Xvnc/include/DECkeysym.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xos_r.h
Examining data/tightvnc-1.3.10/Xvnc/include/Xmd.h
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/parse.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/def.h
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/ifparser.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c
Examining data/tightvnc-1.3.10/Xvnc/config/makedepend/ifparser.h
Examining data/tightvnc-1.3.10/Xvnc/config/imake/ccimake.c
Examining data/tightvnc-1.3.10/Xvnc/config/imake/imakemdep.h
Examining data/tightvnc-1.3.10/Xvnc/config/imake/imake.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/mergelib.cpp
Examining data/tightvnc-1.3.10/Xvnc/config/util/mkdirhier.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/lndir.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/xmkmf.cpp
Examining data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/gccmdep.cpp
Examining data/tightvnc-1.3.10/Xvnc/config/util/checktree.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/chownxterm.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/savedir.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c
Examining data/tightvnc-1.3.10/Xvnc/config/util/mdepend.cpp
Examining data/tightvnc-1.3.10/vncviewer/vncviewer.h
Examining data/tightvnc-1.3.10/vncviewer/caps.h
Examining data/tightvnc-1.3.10/vncviewer/argsresources.c
Examining data/tightvnc-1.3.10/vncviewer/tunnel.c
Examining data/tightvnc-1.3.10/vncviewer/selection.c
Examining data/tightvnc-1.3.10/vncviewer/fullscreen.c
Examining data/tightvnc-1.3.10/vncviewer/popup.c
Examining data/tightvnc-1.3.10/vncviewer/hextile.c
Examining data/tightvnc-1.3.10/vncviewer/colour.c
Examining data/tightvnc-1.3.10/vncviewer/vncviewer.c
Examining data/tightvnc-1.3.10/vncviewer/desktop.c
Examining data/tightvnc-1.3.10/vncviewer/dialogs.c
Examining data/tightvnc-1.3.10/vncviewer/sockets.c
Examining data/tightvnc-1.3.10/vncviewer/listen.c
Examining data/tightvnc-1.3.10/vncviewer/shm.c
Examining data/tightvnc-1.3.10/vncviewer/misc.c
Examining data/tightvnc-1.3.10/vncviewer/rre.c
Examining data/tightvnc-1.3.10/vncviewer/tight.c
Examining data/tightvnc-1.3.10/vncviewer/caps.c
Examining data/tightvnc-1.3.10/vncviewer/cursor.c
Examining data/tightvnc-1.3.10/vncviewer/zlib.c
Examining data/tightvnc-1.3.10/vncviewer/corre.c
Examining data/tightvnc-1.3.10/vncviewer/rfbproto.c
Examining data/tightvnc-1.3.10/vncconnect/vncconnect.c
Examining data/tightvnc-1.3.10/vncpasswd/vncpasswd.c
Examining data/tightvnc-1.3.10/libvncauth/vncauth.c
Examining data/tightvnc-1.3.10/libvncauth/d3des.c
Examining data/tightvnc-1.3.10/libvncauth/d3des.h
Examining data/tightvnc-1.3.10/include/rfbproto.h
Examining data/tightvnc-1.3.10/include/vncauth.h

FINAL RESULTS:

data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:714:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(makefile, st.st_mode);
data/tightvnc-1.3.10/Xvnc/config/util/chownxterm.c:70:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(XTERM_PATH, 0, -1) != 0)
data/tightvnc-1.3.10/Xvnc/config/util/chownxterm.c:72:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(XTERM_PATH, 04555) != 0)
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:255:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if (readlink (dp->d_name, symbuf, sizeof(symbuf) - 1) >= 0) {
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:274:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	symlen = readlink (dp->d_name, symbuf, sizeof(symbuf) - 1);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:283:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	    basesymlen = readlink(buf, basesym, sizeof(basesym) - 1);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c:135:14:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
extern char	*gets();
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c:150:6:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	if (gets(p) == NULL || p[0] == '\0')
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c:155:10:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
	    if (gets(text) == NULL)
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:11:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#define chmod	   _chmod
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:63:16:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
               gets(temp);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:342:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if( chown( slave, saved_euid, -1 ) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:351:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(slave, 0666) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:437:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(X_STREAMS_DIR, 0777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:478:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if( chmod(server_path, 0666) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:710:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(X_STREAMS_DIR, 0777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:719:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    if (chmod(server_path, (mode_t)0666) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1022:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(X_STREAMS_DIR, 0777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1024:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(X_ISC_DIR, 0777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1050:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(X_UNIX_DIR, 01777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:944:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod (UNIX_DIR, 01777);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1033:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    chmod (UNIX_DIR, 01777);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:310:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  (void) chmod(tmp, 0444);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:394:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  (void) chmod(LockFile,S_IREAD|S_IWRITE);
data/tightvnc-1.3.10/libvncauth/vncauth.c:87:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
      chmod(fname, S_IRUSR|S_IWUSR);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:393:10:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		(void) mktemp(tmpMakefile);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:397:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(makeMacro, "MAKE=%s", program);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:399:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(makefileMacro, "MAKEFILE=%s", Imakefile);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:605:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(Imakefile, R_OK) < 0)
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:608:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access("Imakefile", R_OK) < 0)
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:609:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (access("imakefile", R_OK) < 0)
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:655:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, x0, x1);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:677:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(masterc, F_OK) == 0) {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:705:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(fname, R_OK) == 0) {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:707:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		return (fprintf(inFile, LocalDefineFmt, defsym, fname) < 0 ||
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:708:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(inFile, IncludeFmt, defsym) < 0);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:751:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(cmd, argv);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:781:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(ptr, name->sysname);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:788:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(ptr, name->nodename);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:795:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(ptr, name->release);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:802:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(ptr, name->version);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:809:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(ptr, name->machine);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:824:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  (void) sscanf(buf, fmt + arg + 1, result);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:930:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  if (snprintf (command , len, format, cc, aout) == len)
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:933:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  fp = popen (command, "w");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:938:8:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  fp = popen (aout, "r");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:943:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (inFile, command);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:954:18:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  FILE* ldprog = popen ("ld -v", "r");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:996:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (cmd, gcc_path[i]);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:998:22:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if ((gccproc = popen (cmd, "r")) != NULL) {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1100:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf(inFile, LocalDefineFmt, ImakeTmplSym, template) < 0 ||
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1101:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf(inFile, IncludeFmt, ImakeTmplSym) < 0 ||
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1177:11:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
			(void) mktemp(tmpImakefile);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1278:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(pend+1, pend+5);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1507:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(new, cp);
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:148:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (prefix, "\"%s\":%d", filename, lineno);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:65:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s%s%s", dir, *dir ? "/" : "", component);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:152:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path, newpath);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:285:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(path, include);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:289:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(path + (p-file) + 1, include);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:306:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(path, "%s/%s", *pp, include);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:532:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(p, str);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:683:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(backup, "%s.bak", makefile);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:735:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:738:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, msg,x1,x2,x3,x4,x5,x6,x7,x8,x9);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:758:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:761:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, msg,x1,x2,x3,x4,x5,x6,x7,x8,x9);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:777:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, msg, args);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:780:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, msg,x1,x2,x3,x4,x5,x6,x7,x8,x9);
data/tightvnc-1.3.10/Xvnc/config/makedepend/parse.c:214:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy (line, p);
data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c:93:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "\n%s%s%s: %s", objprefix, base, objsuffix,
data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c:99:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf+1, ip->i_file);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:153:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:157:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:238:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:264:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:267:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:273:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(s, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:340:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(buf, *argv++);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:101:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, args);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:104:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, fmt, a1, a2, a3);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:136:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, fmt, args);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:139:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf (stderr, fmt, a1, a2, a3);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:166:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(s+1, s+2);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:201:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, fn);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:214:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (p, dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:270:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (fileprotstr, "_%s_", phile->name);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:274:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf (fileprotstr, "_%s%s_", prefixstr, phile->name);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:312:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) printf (const_string, externdefstr, 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:330:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) printf (const_string, externdefstr, 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:339:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    (void) printf (const_string, externdefstr, 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:404:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	(void) printf (const_string, externdefstr, conststr ? conststr : "",
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:506:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy (phile->name, buf + strlen (file_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:525:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy (table->name, buf + strlen (table_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:540:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (prefixstr, buf + strlen (prefix_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:545:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (featurestr, buf + strlen (feature_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:550:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (externrefstr, buf + strlen (externref_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:555:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (externdefstr, buf + strlen (externdef_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:560:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (ctmplstr, buf + strlen (ctmpl_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:572:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy (conststr, buf + strlen (const_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:587:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy (lbuf, prefixstr);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:588:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (lbuf, right);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:598:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(tableent->left, buf);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:601:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(tableent->right, right);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:138:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(str, buf);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:182:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(shadow_buffer, shadow_name);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:183:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(master_start, master_name);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:307:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(master_end, "/%s", cur_name);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:308:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(current_end, "/%s", cur_name);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/savedir.c:114:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (namep, dp->d_name);
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:241:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_name, (p).pwp->pw_name), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:244:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_passwd,(p).pwp->pw_passwd), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:247:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_age, (p).pwp->pw_age), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:250:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_comment, (p).pwp->pw_comment), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:253:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_gecos, (p).pwp->pw_gecos), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:256:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_dir, (p).pwp->pw_dir), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:259:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((p).pws.pw_shell, (p).pwp->pw_shell), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:386:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((hp).h_name, (hp).hptr->h_name), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:392:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((sp).s_name, (sp).sptr->s_name), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:394:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((sp).s_proto, (sp).sptr->s_proto), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:636:24:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
# define _XGetlogin(p)	getlogin()
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:666:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
   (((p).result = getlogin()) ? \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1010:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).grp.gr_name, (p).pgrp->gr_name), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1018:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy((p).grp.gr_name, (p).pgrp->gr_name), \
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:8:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access	   _access
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:17:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execl	 _execl
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:18:9:  [4] (shell) execle:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execle	 _execle
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:19:9:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execlp	 _execlp
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:21:9:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execv	 _execv
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:23:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define execvp	 _execvp
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:35:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
#define mktemp	   _mktemp
data/tightvnc-1.3.10/Xvnc/include/extensions/extutil.h:215:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (tmp, "%s.%d", extname, code); \
data/tightvnc-1.3.10/Xvnc/include/extensions/lbxstr.h:904:43:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DBG(n,m)    if (lbxDebug & (n)) { fprintf m; } else
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:59:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    (void) strcat (dir, name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:75:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (buf, name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:76:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, slashDotXauthority + (name[1] == '\0' ? 1 : 0));
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetAddr.c:88:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (auth_name, R_OK) != 0)		/* checks REAL id */
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetBest.c:101:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (auth_name, R_OK) != 0)		/* checks REAL id */
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:79:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (creat_name, file_name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:81:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (link_name, file_name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:49:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (creat_name, file_name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:52:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    (void) strcpy (link_name, file_name);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/htest.c:75:1:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
sprintf(pathname, argv[1]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c:152:1:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
sprintf(pathname, argv[1]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfile.c:210:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(spmf->fname, filename);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfuncs.c:74:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (fullName, entry->name.name);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfuncs.c:138:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fullName, entry->name.name);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:409:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(tmpname, fontname);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:105:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(CurFontName,env);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c:777:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
       strcpy(name, username);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c:945:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(typemsg, "Wrong object type in %s; expected %s.\n",
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.c:982:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(string, "%s%d.%sx", sign, fpel >> FRACTBITS, s);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:319:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (scaledName, Fontname);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:95:33:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
                       if (1 != sscanf(&temp[2], "%s", file))
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:101:33:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
                       if (1 != sscanf(&temp[2], "%s", file))
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:318:6:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	if (sscanf((char *) line, "STARTCHAR %s", charName) != 1) {
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:520:18:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (!line || sscanf((char *) line, "STARTFONT %s", namebuf) != 1 ||
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:610:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	switch (sscanf((char *) line, "%s%s%s", namebuf, secondbuf, thirdbuf)) {
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfutils.c:80:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, message, a0, a1, a2, a3, a4, a5);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfutils.c:97:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, message, a0, a1, a2, a3, a4, a5);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:1745:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(full_name, dirs[i]->dir);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:1746:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(full_name, fname->file);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:1842:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (fontName, scaleFrom->name.name);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c:299:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(conn->servername, servername);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:86:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dir_path, directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:88:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dir_file, dir_path);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:90:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dir_file, directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:94:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(dir_file, FontDirFile);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:110:18:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	while ((count = fscanf(file, "%s %[^\n]\n", file_name, font_name)) != EOF) {
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:170:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (dir_file, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:171:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (dir_file, FontDirFile);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:180:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (dir_file, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:181:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (dir_file, FontAliasFile);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:274:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(alias_file, directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:278:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(alias_file, FontAliasFile);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:308:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(alias, lexToken);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:165:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dir->attributes, attrib);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:167:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dir->directory, dirName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:413:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (n, s);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:357:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(lowerName, entry->name.name);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:440:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy (fileName, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:441:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat (fileName, scalable->fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:517:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (fileName, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:518:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (fileName, bitmap->fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:553:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (fileName, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:554:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (fileName, bitmap->fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:585:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (nameChars, scaleNames->names[i]);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:714:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (zeroChars, lowerChars);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:936:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    	    strcpy (fileName, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:937:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    	    strcat (fileName, scalable->fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:976:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    	    strcpy (fileName, dir->directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:977:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    	    strcat (fileName, scalable->fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:163:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buffer, formatbuf, value);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:181:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buffer, formatbuf, value);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:189:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buffer, formatbuf, value);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:290:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buffer, formatbuf, x);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:475:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(tmpBuf, ptr2);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:507:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ptr, ptr5);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:562:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.pixel_matrix[0],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:564:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.pixel_matrix[1],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:566:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.pixel_matrix[2],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:568:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.pixel_matrix[3],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:582:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.point_matrix[0],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:584:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.point_matrix[1],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:586:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.point_matrix[2],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:588:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(tmpBuf, xlfd_double_to_text(tmpvals.point_matrix[3],
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:597:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tmpBuf + strlen(tmpBuf), "-%d-%d%*.*s%d%s",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:600:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ptr1 + 1, tmpBuf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:233:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (mybuf, address);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:353:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (*protocol, _protocol);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:366:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (*host, _host);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:380:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (*port, _port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:533:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (save_port, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:678:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy (*port, ciptr->port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1113:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,"%s/:%s", trans->TransName, port ? port : "");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1219:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buffer,"%s/:%s", trans->TransName, port ? port : "");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:133:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Error(list) printf list
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:134:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define Fatal(list) { printf list; exit(1); }
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:138:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define doprintf(list) printf list /**/
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:379:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void)sprintf(xserverpath, "%s/%s:%d", DEF_XSVRDIR, phostname, idisplay);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:881:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s INIT", buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:883:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s ALIVE", buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:885:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s KILLED", buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:887:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s PUSHBACK", buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:889:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s IGNORE", buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1191:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(repb, "X11R6 server on %s", XServerHostName);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1268:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s/%s", TCP_SVR_NAME, XTcpServerName);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1361:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(host, "%s/%s:%s", DEF_XSVRDIR, XServerHostName, display);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:392:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (dnsock.sdn_objname, "%s%s", DNETOBJ, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:397:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (dnsock.sdn_objname, "%s%d", DNETOBJ, getpid ());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransint.h:482:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __xtransname); fflush(stderr); \
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransint.h:483:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, x+hack,a,b,c); fflush(stderr); \
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransint.h:501:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __xtransname); fflush(stderr); \
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransint.h:502:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, x+hack,a,b,c); fflush(stderr); \
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:163:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (sunaddr->sun_path, sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:186:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (p_sunaddr->sun_path, peer_sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:289:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:291:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s%s", PTSNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:294:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", PTSNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:364:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(&buf[1], slave);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:428:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:430:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s%s", PTSNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:433:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", PTSNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:589:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(sunaddr->sun_path,buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:630:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:632:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s%s", NAMEDNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:635:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", NAMEDNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:701:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:703:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(server_path, "%s%s", NAMEDNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:706:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", NAMEDNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:907:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_path, ISCTMPNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:908:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_dev_path, ISCDEVNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1018:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_path, ISCDEVNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1019:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_unix_path, ISCTMPNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1182:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_path, SCORNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1265:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(serverR_path, SCORNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1266:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(serverS_path, SCOSNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1395:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1397:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(server_path, "%s%s", PTSNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1400:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", PTSNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1434:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(server_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1436:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(server_path, "%s%s", NAMEDNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1439:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(server_path, "%s%d", NAMEDNODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1471:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_path, ISCDEVNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1472:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(server_unix_path, ISCTMPNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1504:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(serverR_path, SCORNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1505:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    (void) sprintf(serverS_path, SCOSNODENAME, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1758:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (workingXLOCAL, protocol);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1766:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy (workingXLOCAL, XLOCAL);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:86:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(pipename, "\\PIPE\\X\\%s,", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:88:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(pipename, "%s%s", "\\PIPE\\X\\xf86.", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:157:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&server_string[1],clientname);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:287:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(pipename, "\\PIPE\\X\\%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:289:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		(void) sprintf(pipename, "%s%s", "\\PIPE\\X\\xf86.", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:951:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf (sockname.sun_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:953:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf (sockname.sun_path, "%s%s", UNIX_PATH, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:956:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (sockname.sun_path, "%s%d", UNIX_PATH, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1583:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (sockname.sun_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1585:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (sockname.sun_path, "%s%s", UNIX_PATH, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1602:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (old_sockname.sun_path, "%s", port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1604:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (old_sockname.sun_path, "%s%s", OLD_UNIX_PATH, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:286:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy(sunaddr->sun_path, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:288:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(sunaddr->sun_path,"%s%s", TLINODENAME, port );
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:292:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(sunaddr->sun_path,"%s%d",
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:887:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    (void) strcpy(sunaddr->sun_path, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:889:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    (void) sprintf(sunaddr->sun_path,"%s%s", TLINODENAME, port );
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:892:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(sunaddr->sun_path,"%s%d", TLINODENAME, getpid());
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1186:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	(void) strcpy(sunaddr->sun_path, port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1188:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	(void) sprintf(sunaddr->sun_path,"%s%s", TLINODENAME, port );
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:203:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy ((char *) *addrp, hostnamebuf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:253:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (networkId, "%s/%s:%s", transName,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:269:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (networkId, "%s/%s:%s", transName, hostnamebuf, portnumbuf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:281:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf (networkId, "dnet/%s::%s",
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:393:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(addrbuf, "%s:", np->n_name);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:395:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(addrbuf, "%s:", dnet_htoa(&saddr->sdn_add));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:428:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (hostname, ciptr->transptr->TransName);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:431:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (hostname, addr);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1536:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(pacl->mustHaveValue, mustHaveValue);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1586:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(copyPolicyStr, policyStr);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/devices.c:375:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(device->name, p);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/devices.c:402:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(device->name, k);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:109:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(ext->name,  name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:175:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(name,  alias);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:468:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(newname, name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:216:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fullFname, httpDir);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:263:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    if (sscanf(buf, "GET %s HTTP/1.0", fname) != 1) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:382:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(str, "%s:%s", rfbThisHost, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:464:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(param_request, tail);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:490:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	len = sprintf(param_formatted,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:496:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(result, param_formatted);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:752:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(fname, F_OK) == 0)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:756:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(fname, F_OK) == 0)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:861:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(unixSocketName,"/tmp/.X11-unix/X%s",display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:946:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr, buf);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:948:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, args);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:201:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(pv, rfbProtocolVersionFormat, 3, 8);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:354:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(pv,rfbProtocolVersionFormat,&major,&minor) != 2) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:426:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + sz_rfbServerInitMsg, "%s's %s desktop (%s:%s)",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:429:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf + sz_rfbServerInitMsg, "%s desktop (%s:%s)",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/os.h:528:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define System(a) system(a)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/os.h:529:20:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#define Popen(a,b) popen(a,b)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:849:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(fname, ETC_HOST_PREFIX "%s" ETC_HOST_SUFFIX, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:851:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fname, (char*)__XOS2RedirRoot(fname));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:483:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(out, "IP %s port %d",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:490:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(out, "DN %s",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:496:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(addr, "AM %s", saddr);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:501:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(addr, "AMIP %s", inet_ntoa(*((ipaddr_t *) saddr)));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:386:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(cachename, rc_base);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:387:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(cachename, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:538:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(kerror, "Principal \"%s\" is not authorized to connect",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:678:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ktname, cp + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:206:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy( entry->name, name );
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:231:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(path, rgbPath);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:236:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(path, tmp);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c:110:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf (fname, ADMPATH, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:151:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(rpc_error, "Principal \"%s\" is not authorized to connect",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:273:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  (void)sprintf(tmp, "%s" LOCK_TMP_PREFIX "%s" LOCK_SUFFIX, tmppath, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:274:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  (void)sprintf(LockFile, "%s" LOCK_PREFIX "%s" LOCK_SUFFIX, tmppath, display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1367:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, f, args);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1391:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf( stderr, f, s0, s1, s2, s3, s4, s5, s6, s7, s8, s9);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1429:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl("/bin/sh", "sh", "-c", command, (char *)NULL);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1499:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl("/bin/sh", "sh", "-c", command, (char *)NULL);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:215:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ARGMSG);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:219:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ARGMSG);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:224:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ARGMSG);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:228:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ENVMSG);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:235:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ARGMSG);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:236:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, ENVMSG);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:60:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(passwdDir, "%s/.vnc", getenv_safe("HOME", 240));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:61:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(passwdFile, "%s/passwd", passwdDir);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:69:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(passwdDir, "/tmp/%s-vnc", getenv_safe("USER", 32));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:70:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(passwdFile, "%s/passwd", passwdDir);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:84:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(passwdFile, argv[1]);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:236:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, passwd);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:254:14:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
    passwd = getpass("Password: ");
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:268:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(passwd_copy, passwd);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:270:14:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
    passwd = getpass("Verify:   ");
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:281:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(result, passwd);
data/tightvnc-1.3.10/vncviewer/argsresources.c:397:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(vncServerHost, vncServerName);
data/tightvnc-1.3.10/vncviewer/misc.c:57:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(title, titleFormat, desktopName);
data/tightvnc-1.3.10/vncviewer/misc.c:240:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	  execvp(params[0], params);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:235:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (sscanf(pv, rfbProtocolVersionFormat,
data/tightvnc-1.3.10/vncviewer/rfbproto.c:255:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(pv, rfbProtocolVersionFormat, 3, protocolMinorVersion);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:567:14:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
    passwd = getpass("Password: ");
data/tightvnc-1.3.10/vncviewer/sockets.c:105:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:134:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:174:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:180:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:212:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:218:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:226:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:253:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:288:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:295:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:302:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:309:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:333:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:340:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/sockets.c:358:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,programName);
data/tightvnc-1.3.10/vncviewer/tunnel.c:259:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(cmd) != 0) {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:239:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char	*getenv();
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:474:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (p = getenv("IMAKEINCLUDE")) {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:485:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (p = getenv("IMAKECPP"))
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:487:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (p = getenv("IMAKEMAKE"))
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:916:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
  char *aout = tmpnam (NULL);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:923:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  cc = getenv ("CC");
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:355:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *emxinc = getenv("C_INCLUDE_PATH");
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:136:24:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
#define xmutex_init(m) InitializeCriticalSection(m)
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:139:24:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
#define xmutex_lock(m) EnterCriticalSection(m)
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:142:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&(cv)->cs); \
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:149:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:155:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(m); \
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:158:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/tightvnc-1.3.10/Xvnc/include/Xthreads.h:167:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&(cv)->cs); \
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:47:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random   rand
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:48:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom  srand
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:48:18:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom  srand
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:35:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *malloc (), *getenv ();
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:52:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (name = getenv ("XAUTHORITY"))
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:54:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    name = getenv ("HOME");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:58:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (name = getenv("USERNAME")) {
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:56:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define srandom srand48
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:57:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random lrand48
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:57:16:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random lrand48
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:63:6:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
long random();
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:72:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom ((int)getpid() ^ time((Time_t *)0));
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:73:15:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    lowbits = random ();
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/GenKey.c:74:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    highbits = random ();
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:436:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((tcpsvr = getenv("TCP_SERVER")) == NULL) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1357:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	    XServerHostName = getenv("XHOST");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1761:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	XLOCAL=(char *)getenv("XLOCAL");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:94:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((tcp_device= getenv("TCP_DEVICE")) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:157:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((tcp_device= getenv("TCP_DEVICE")) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:1480:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((tcp_device= getenv("TCP_DEVICE")) == NULL)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/servermd.h:319:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random rand
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:263:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  tmppath = getenv("TMP");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1144:4:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	((random() % MEM_FAIL_SCALE) < Memory_fail))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1215:4:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	((random() % MEM_FAIL_SCALE) < Memory_fail))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:985:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    udp_device= getenv("UDP_DEVICE");
data/tightvnc-1.3.10/libvncauth/vncauth.c:212:7:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srandom(seed);
data/tightvnc-1.3.10/libvncauth/vncauth.c:217:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	bytes[i] = (unsigned char)(random() & 255);    
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:156:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  result = getenv(name);
data/tightvnc-1.3.10/vncviewer/tunnel.c:181:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  pattern = getenv((tunnelOption) ? "VNC_TUNNEL_CMD" : "VNC_VIA_CMD");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:334:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	*make_argv[ ARGUMENTS ] = {
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:380:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	makeMacro[ BUFSIZ ];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	makefileMacro[ BUFSIZ ];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:402:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((tmpfd = fopen(tmpMakefile, "w+")) == NULL)
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:421:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[ BUFSIZ ];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:674:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mkcbuf[1024];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:678:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		inFile = fopen(masterc, "r");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:765:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[SYS_NMLN * 5 + 1];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:989:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[PATH_MAX];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:990:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[PATH_MAX];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:997:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (cmd, " --print-libgcc-file-name");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1001:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  if (ptr) strcpy (ptr, "include");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1021:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[SYS_NMLN * 5 + 1];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1092:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	inFile = fopen(masterc, "w");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1138:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(inFile = fopen(imakefile, "r")))
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1178:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			outFile = fopen(tmpImakefile, "w");
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1284:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char varbuf[5];
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1291:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(varbuf, "%0.4d", xvariable);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1301:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(varbuf, "%0.4d", xvariables[i]);
data/tightvnc-1.3.10/Xvnc/config/imake/imakemdep.h:294:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *cpp_argv[ARGUMENTS] = {
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char prefix[300];
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tmpbuf[MAXNAMELEN + 1];
data/tightvnc-1.3.10/Xvnc/config/makedepend/ifparser.c:109:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *valp = atoi (cp);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:34:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char	*includedirs[ ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:35:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char	*notdotdot[ ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[ BUFSIZ ], **pp;
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:90:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		*components[ MAXFILES ],
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char	path[ BUFSIZ ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:91:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	*filelist[ MAXFILES ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:92:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	*includedirs[ MAXDIRS + 1 ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:93:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char	*notdotdot[ MAXDIRS ];
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:171:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if ((afd = open(argv[1]+1, O_RDONLY)) < 0)
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:275:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				width = atoi(argv[0]);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:277:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				width = atoi(argv[0]+2);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:302:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				_debugmask = atoi(argv[0]+2);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:495:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open(file, O_RDONLY)) < 0) {
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:655:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	backup[ BUFSIZ ],
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:681:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fdin = fopen(makefile, "r")) == NULL)
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:691:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fdin = fopen(backup, "r")) == NULL)
data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c:87:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	buf[ BUFSIZ ];
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:156:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(p, "RCS/");
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:263:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(p, "RCS/");
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:265:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(p, ",v");
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:307:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2048];
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:183:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXPATHLEN + 1], *p;
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:184:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char symbuf[MAXPATHLEN + 1];
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:185:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char basesym[MAXPATHLEN + 1];
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:198:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy (buf, "../");
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:215:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:231:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:254:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen (phile->name, "w+")) == NULL) exit (1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:426:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	tmpl = fopen (ctmplstr, "r");
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:465:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lbuf[1024];
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:563:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((filecurrent->tmpl = fopen (buf + strlen (htmpl_str) + 1, "r")) == NULL) {
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:688:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:701:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		    f = fopen (argv[i], "r");
data/tightvnc-1.3.10/Xvnc/config/util/mkdirhier.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:89:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char master_buffer[MAXPATHLEN+PREPEND_BUFFER_SIZE] =
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:95:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char shadow_buffer[MAXPATHLEN];
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[MAXPATHLEN];
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:128:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(name, "r");
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	 p[80];
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/wildmat.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	 text[80];
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:39:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:46:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:55:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:64:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:85:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:92:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:93:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
data/tightvnc-1.3.10/Xvnc/include/Xfuncs.h:93:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len))
data/tightvnc-1.3.10/Xvnc/include/Xos.h:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sa_data[14];
data/tightvnc-1.3.10/Xvnc/include/Xos.h:277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sin_zero[8];
data/tightvnc-1.3.10/Xvnc/include/Xos.h:313:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	sun_path[108];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:233:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   pwbuf[1024];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:238:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   (memcpy(&(p).pws, (p).pwp, sizeof(struct passwd)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:280:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pwbuf[LINE_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:310:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pwbuf[LINE_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:375:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char           h_name[MAXHOSTNAMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:380:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char           s_name[255];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:381:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char		 s_proto[255];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:385:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   (memcpy(&(hp).hent, (hp).hptr, sizeof(struct hostent)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:391:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   (memcpy(&(sp).sent, (sp).sptr, sizeof(struct servent)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:433:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                hbuf[LINE_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:438:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                sbuf[LINE_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:526:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:528:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:530:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[255];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:537:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:548:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:550:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:552:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[255];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:576:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen),	\
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:593:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       (memcpy(&((p).dir_entry), (p).result, (p).result->d_reclen),	\
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:644:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:646:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:648:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:654:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:656:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:658:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:660:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:689:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:691:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:693:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:698:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:700:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:702:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:704:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:720:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAXLOGNAME];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:722:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LOGIN_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:724:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:729:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:731:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_TTY_NAME_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:733:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[_POSIX_PATH_MAX];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:735:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:838:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:840:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:865:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:872:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (memcpy(&(p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:886:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:887:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:889:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:890:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:908:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:909:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:911:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:912:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:936:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:937:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[TIMELEN];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:939:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xatimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:940:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char _Xctimeparams[26];
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:997:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:999:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1007:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1016:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 ( memcpy(&(p).grp, (p).pgrp, sizeof(struct group)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1042:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1044:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1059:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1061:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1083:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[LINE_MAX];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1085:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];	/* Should be sysconf(_SC_GETGR_R_SIZE_MAX)? */
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:36:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open	   _open
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:348:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	  data[64];
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:371:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        	keys[32];
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:382:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        	buttons[32];
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:456:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    auto_repeats[32];
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:818:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        	keys[32];
data/tightvnc-1.3.10/Xvnc/include/extensions/XInput.h:829:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        	buttons[32];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBsrv.h:1184:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *		pattern[_XkbListNumComponents];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:111:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	data[XkbAnyActionDataSize];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:203:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	message[6];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:284:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	per_key_repeat[XkbPerKeyBitArraySize];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:304:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		 vmods[XkbNumVirtualMods];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:315:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	 kt_index[XkbNumKbdGroups];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:387:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	name[XkbKeyNameLength];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:391:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	real[XkbKeyNameLength];
data/tightvnc-1.3.10/Xvnc/include/extensions/XKBstr.h:392:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	alias[XkbKeyNameLength];
data/tightvnc-1.3.10/Xvnc/include/extensions/extutil.h:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[256]; \
data/tightvnc-1.3.10/Xvnc/lib/X11/XKBlib.h:216:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char 		message[XkbActionMessageLength+1]; 
data/tightvnc-1.3.10/Xvnc/lib/X11/Xcms.h:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	pad[3];
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlib.h:479:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char auto_repeats[32];
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlib.h:680:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char key_vector[32];
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlib.h:927:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char b[20];
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlibint.h:526:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char _BRdat[4]; \
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlibint.h:529:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(_BRdat, ((char *)req) + (_BRlen << 2), 4); \
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlibint.h:531:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(((char *)req) + 4, _BRdat, 4); \
data/tightvnc-1.3.10/Xvnc/lib/X11/Xlibint.h:575:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dpy->bufptr, data, (int)len);\
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:48:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    dir[128];
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:57:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	(void) strcpy (dir, "/users/");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetAddr.c:90:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    auth_file = fopen (auth_name, "rb");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetBest.c:103:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    auth_file = fopen (auth_name, "rb");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	creat_name[1025], link_name[1025];
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:80:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    (void) strcat (creat_name, "-c");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:82:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    (void) strcat (link_name, "-l");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuRead.c:36:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   file_short[2];
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:42:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	creat_name[1025];
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	link_name[1025];
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:50:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    (void) strcat (creat_name, "-c");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:53:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    (void) strcat (link_name, "-l");
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuWrite.c:35:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   file_short[2];
data/tightvnc-1.3.10/Xvnc/lib/Xau/Autest.c:64:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    output = fopen (file, "w");
data/tightvnc-1.3.10/Xvnc/lib/Xau/k5encode.c:91:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cp, krb5_princ_realm(princ)->data, rlen);
data/tightvnc-1.3.10/Xvnc/lib/Xau/k5encode.c:101:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cp, pdata, plen);
data/tightvnc-1.3.10/Xvnc/lib/Xau/k5encode.c:145:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(krb5_princ_realm(*princ)->data, cp, rlen);
data/tightvnc-1.3.10/Xvnc/lib/Xau/k5encode.c:179:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pdata, cp, plen);
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Fill.c:137:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, (char *)buffer->data, buffer->count);
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Flush.c:94:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy((char *)buffer->data, b+sizeof(udp_io_hdr_t), buffer->pointer);
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Unwrap.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	tmp[8];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Unwrap.c:63:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	blocks[2][8];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Unwrap.c:64:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	expand_wrapper[8];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wrap.c:57:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	tmp[8];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wrap.c:58:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	expand_wrapper[8];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wrap.h:6:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char auth_cblock[8];	/* block size */
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:85:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    C[28];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:86:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    D[28];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:92:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    KS[16][48];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:97:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    E[48];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:177:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    S[8][64] = {
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:238:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    L[64];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:240:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    tempL[32];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:241:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    f[32];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:246:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char    preS[48];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    expand_key[64];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Wraphelp.c:396:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    expand_input[64];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Xdmcp.h:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[XDM_MAX_STR_LEN];
data/tightvnc-1.3.10/Xvnc/lib/Xdmcp/Xdmcp.h:52:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char status[XDM_MAX_STR_LEN];
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/htest.c:48:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static  char   pathname[100]; /* Name of font file to be output */
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/htest.c:81:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
fdescr = fopen (pathname, "rb");
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c:81:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static  char   pathname[100];      /* Name of font file to be output */
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c:112:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static  char   line_of_bits[2 * MAX_BITS + 1]; /* Buffer for row of generated bits */
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c:155:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
fdescr = fopen (pathname, "rb");
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfile.c:205:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "r");
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfile.c:346:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	spmf->fp = fopen(spmf->fname, "r");
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfuncs.c:72:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	fullName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfuncs.c:135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fullName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:344:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	tmpname[1024];
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:77:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char line_of_bits[MAX_BITS + 1];
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:170:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		x_res = atoi(av[++i]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:175:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		y_res = atoi(av[++i]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:180:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		point_size = atoi(av[++i]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:190:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		quality = atoi(av[++i]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:195:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		stretch = atoi(av[++i]);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/sptobdf.c:223:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(fontfile, "r");
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/digit.h:45:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char digit_value[256] = {
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:43:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char CurFontName[120];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/hdigit.h:56:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char HighHex[257] = { 0xFF,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/hdigit.h:75:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char LowHex[257] = { 0xFF,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c:773:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char name[NAMESIZE];  /* buffer to store my copy of 'username'        */
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c:940:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       static char typemsg[80];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:599:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp [1024];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1369:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   filename[128];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1370:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char   filetype[3];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1401:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (fileP = fopen(filename,filetype)) {
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.c:968:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char temp[8];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.c:979:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
       sprintf(temp, "000%x", fpel & FRACTMASK);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:317:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char      scaledName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c:56:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
STATIC unsigned char TheBuffer[F_BUFSIZ];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c:78:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  of->fd = open(fn, oflags);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c:186:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char randomP[8];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1malloc.c:674:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                               (char *)area[size-DEBUGWORDS-1]);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1stdio.h:68:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define  fopen(name,mode)   T1Open(name,mode)
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:48:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char temp[80];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char file[80];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1test.c:50:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char glyphcode[1];
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:46:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si0[258] = { 0x10,0x11,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:66:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si1[258] = { 0x14,0x15,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:86:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si2[258] = { 0x1B,0x1C,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:106:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si3[258] = { 0x23,0x24,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:126:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si4[258] = { 0x29,0x2A,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:146:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si5[258] = { 0x30,0x31,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:166:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si6[258] = { 0x36,0x37,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:186:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si7[258] = { 0x3D,0x3E,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:206:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si8[258] = { 0x43,0x44,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:226:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si9[258] = { 0x48,0x49,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:246:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si10[258] = { 0x4E,0x4F,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:266:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char si11[258] = { 0x53,0x54,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:469:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char isInT1[258] = { 0x00,0x00,
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/tokst.h:489:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char isInT2[258] = { 0x18,0x18,
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfint.h:51:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        fontName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:96:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lineBuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:208:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lineBuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:247:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lineBuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:315:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        charName[100];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:516:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        namebuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:517:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lineBuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:565:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        namebuf[BDFLINELEN],
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:569:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        lineBuf[BDFLINELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:629:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		props[nextProp].value = atoi(secondbuf);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:354:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	    zeroChars[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:372:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (zeroChars, entry->name.name, entry->name.length);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:1736:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        full_name[1024];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:1793:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fontName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/fontink.c:39:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char ink_mask_msb[8] = {
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/fontink.c:43:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char ink_mask_lsb[8] = {
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsconvert.c:120:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&local_off, off_adr, SIZEOF(fsPropOffset));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:685:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:780:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:939:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:980:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&fscilocal, fscip, SIZEOF(fsXCharInfo)); /* align it */
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1278:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&blockrec->header, &rep, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1402:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1515:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(fontname, name, namelen);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1536:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&buf[1], name, namelen);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1550:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, name, MIN(256, namelen));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1766:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1844:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&local_off, off_adr, SIZEOF(fsOffset32));	/* align it */
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1858:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(bits, pbitmaps + local_off.position,
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1955:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char range_buffer[RANGE_BUFFER_SIZE * 4];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2208:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[256];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2285:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, pattern, MIN(256, patlen));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2356:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rep, &blockrec->header, SIZEOF(fsGenericReply));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2496:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        buf[256];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:2498:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, pattern, MIN(256, len));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c:473:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        pad[3];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c:490:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char pad[3];
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c:617:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        buf[128];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        file_name[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        font_name[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        dir_file[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	dir_path[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:95:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(dir_file, "r");
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	dir_file[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:202:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	    copy[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:263:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		alias[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:264:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		font_name[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:265:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		alias_file[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:280:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(alias_file, "r");
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fileio.c:49:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_BINARY);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/filewr.c:45:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open (name, O_CREAT|O_TRUNC|O_RDWR|O_BINARY, 0666);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (entry->name.name, prototype->name.name, prototype->name.length);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:127:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char		aliasname[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		lowerName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:250:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		lowerName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:251:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fileName[MAXFONTFILENAMELEN*2 + 1];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:426:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char origName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fileName[MAXFONTFILENAMELEN*2+1];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fileName[MAXFONTFILENAMELEN*2+1];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:575:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nameChars[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:693:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		lowerChars[MAXFONTNAMELEN], zeroChars[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:848:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		lowerName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:849:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fileName[MAXFONTFILENAMELEN*2 + 1];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:927:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    char origName[MAXFONTNAMELEN];
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontscale.c:98:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		if (nonScalable[b].name.name == (char *) scaled[i].bitmap)
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontutil.c:150:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char   defc[2];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[80], *p1, *p2;
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char formatbuf[40];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:157:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(formatbuf, "%%.%dle", XLFD_NDIGITS);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:168:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    exponent = atoi(p1 + 2);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:180:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(formatbuf, "%%.%dle", ndigits - 1);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:188:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(formatbuf, "%%.%dlf", ndigits);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:238:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char b[8];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char formatbuf[40], buffer[40];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:289:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(formatbuf, "%%.%dlg", XLFD_NDIGITS);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:389:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(fname + strlen(fname), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:395:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(fname + strlen(fname), "_%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:416:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        tmpBuf[1024];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:543:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tmpBuf, "%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:547:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:551:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:555:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:560:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[80];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:574:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(tmpBuf + strlen(tmpBuf), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:580:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buffer[80];
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:594:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(tmpBuf + strlen(tmpBuf), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:602:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(fname, "[]");
data/tightvnc-1.3.10/Xvnc/lib/font/util/patcache.c:166:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (newpat, pattern, patlen);
data/tightvnc-1.3.10/Xvnc/lib/font/util/utilbitmap.c:36:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _reverse_byte[0x100] = {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char 	protobuf[PROTOBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:226:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	hostnamebuf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1012:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*addrp, ciptr->addr, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1036:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*addrp, ciptr->peeraddr, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1097:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buffer[256]; /* ??? What size ?? */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1203:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buffer[256]; /* ??? What size ?? */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.h:153:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	addr[XTRANS_MAX_ADDR_LEN];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:356:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char xserverpath[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:423:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tcpname[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:465:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&ipaddr, hp->h_addr, hp->h_length);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:512:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*saddrp, (char *)&ipaddr, sizeof(ipaddr_t)); /* error checking? */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:564:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[CIRCBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:744:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (ciptr->peeraddr, &tcpconf.nwtc_remaddr, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:756:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (ciptr->peeraddr, ciptr->addr, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:875:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[100];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:879:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "NONE");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1001:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[MAXBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1261:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char 		name[BUFSIZ];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1294:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tcpconf.nwtc_locport = htons(X_TCP_PORT + atoi(display));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		host[100];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:137:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->addr, &sockname, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:179:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->peeraddr, &sockname, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:501:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char objname[OBJBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:519:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	short tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:521:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (objname, "X$X%d", tmpport);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:278:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[20]; /* MAX_PATH_LEN?? */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:302:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((server = open (server_path, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:312:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open("/dev/ptmx", O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:418:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char server_path[64], *slave;
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:439:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (fd=open(server_path, O_RDWR)) >= 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:458:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (fd=open(DEV_PTMX, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:484:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (server=open(server_path, O_RDWR)) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:520:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:555:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (newfd=open(buf,O_RDWR)) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:576:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->addr,ciptr->addr,newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:618:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:649:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(server_path, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:690:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:797:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->addr,ciptr->addr,newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:810:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->peeraddr,newciptr->addr,newciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:894:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:895:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	server_dev_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:921:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if ((server = open(server_path, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:932:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((server = open(server_dev_path, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:946:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fds = open(DEV_SPX, O_RDWR)) < 0 ||
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:947:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	(fd  = open(DEV_SPX, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1010:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	server_path[64],server_unix_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1028:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( ((fds=open(DEV_SPX, O_RDWR)) < 0) ||
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1029:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
       ((fd =open(DEV_SPX, O_RDWR)) < 0)) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1132:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->addr,ciptr->addr,newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1145:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->peeraddr,newciptr->addr,newciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1184:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((server = open(server_path, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1189:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(DEV_SPX, O_RDWR)) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1254:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		serverR_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		serverS_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1271:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fds = open(DEV_SPX, O_RDWR)) < 0 ||
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1272:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	(fdr = open(DEV_SPX, O_RDWR)) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1325:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (fd = open(DEV_SPX, O_RDWR)) < 0 ) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1352:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->addr,ciptr->addr,newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1365:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(newciptr->peeraddr,newciptr->addr,newciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1424:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char server_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char server_path[64],server_unix_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		serverR_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1496:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		serverS_path[64];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1785:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	typebuf[TYPEBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1842:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:2118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char typebuf[TYPEBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:2426:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    path[200]; /* > sizeof sun_path +1 */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:99:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd= open(tcp_device, O_RDWR)) == -1)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:162:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd= open(tcp_device, O_RDWR)) == -1)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:622:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostnamebuf[256];		/* tmp space */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:846:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf+offset, priv->read_buffer + priv->read_offset,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:1039:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(priv->write_buffer, buf+offset, len);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:1483:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd= open(tcp_device, O_RDWR)) == -1)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pipename[256],clientname[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:63:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char server_string[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:91:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(pipename, "\\PIPE\\X\\xfree86"); }
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:127:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(clientname,"\\PIPE\\X\\%d.%d",getpid(),unique_id++);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:218:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(((struct sockaddr *)ciptr->addr)->sa_data, "local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:231:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy (((struct sockaddr *)ciptr->peeraddr)->sa_data,"local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:266:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char pipename[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:292:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	(void) sprintf(pipename, "\\PIPE\\X\\xfree86");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:335:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (((struct sockaddr *)ciptr->addr)->sa_data, "local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:349:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy(((struct sockaddr *)ciptr->peeraddr)->sa_data,"local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:451:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr_name[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:463:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(addr_name,"local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:474:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (ciptr->addr, addr_name, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:484:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy (ciptr->peeraddr,addr_name, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:535:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char clientname[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:650:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (((struct sockaddr *)newciptr->addr)->sa_data, "local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:664:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
       strcpy (((struct sockaddr *)newciptr->peeraddr)->sa_data, "local");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:327:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->addr, &sockname, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:373:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->peeraddr, &sockname, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:842:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	portbuf[PORTBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:858:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:860:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (portbuf,"%d", X_TCP_PORT+tmpport);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:885:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:996:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->addr, &sockname, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1203:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (newciptr->addr, ciptr->addr, newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1218:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (newciptr->peeraddr, ciptr->addr, newciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	portbuf[PORTBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char 		hostnamebuf[256];		/* tmp space */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1283:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1285:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (portbuf, "%d", X_TCP_PORT + tmpport);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1336:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy ((char *)&t, (char *) hostp->h_addr, sizeof (t));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1340:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy ((char *) &sockname.sin_addr, (char *) hostp->h_addr,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1373:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tmpport = (short) atoi (portbuf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1449:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostnamebuf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1466:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char specified_local_addr_list[10][4];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1663:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->addr, &sockname, ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1664:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (ciptr->peeraddr, &sockname, ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1803:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	path[200]; /* > sizeof sun_path +1 */
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:181:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ciptr->addr,&sockname,ciptr->addrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:233:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ciptr->peeraddr,&sockname,ciptr->peeraddrlen);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:414:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(netbufp->buf,nd_addrlistp->n_addrs->buf,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:776:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(ciptr->addr,ret->addr.buf,ret->addr.len);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:793:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    portbuf[PORTBUFSIZE];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:812:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	short tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:814:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(portbuf,"%d", X_TCP_PORT+tmpport );
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	portbuf[PORTBUFSIZE];	
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1127:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	short tmpport = (short) atoi (port);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1129:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(portbuf,"%d", X_TCP_PORT+tmpport );
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:122:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&saddr, *addrp, sizeof (struct sockaddr_in));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:133:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(*addrp,&saddr.sin_addr,len);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:144:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&saddr, *addrp, sizeof (struct sockaddr_dn));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:148:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*addrp,&saddr.sdn_add,*addrlenp);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostnamebuf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:236:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	hostnamebuf[256];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portnumbuf[10];
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:266:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (portnumbuf, "%d", ntohs (saddr->sin_port));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:329:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	addrbuf[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1638:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(SecurityPolicyFile, "r");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1640:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen((char*)__XOS2RedirRoot(SecurityPolicyFile), "r");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1651:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[200];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c:552:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        bcopy(stuffptr,tmpptr,lineBytesProto);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c:561:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	        bcopy(stuffptr,tmpptr,lengthProto);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c:572:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy((char *)(shmdesc->addr+stuff->offset),
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c:769:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(bufPtr,protoPtr,widthBytesLineProto);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/shm.c:820:7:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    bcopy(tmpImage, shmdesc->addr+length, widthBytesLineProto);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:701:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newmptr->Private, &stuff[1], stuff->privsize*sizeof(INT32));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:867:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&modetmp, mptr, sizeof(DisplayModeRec));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:888:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(modetmp.Private, &stuff[1], mptr->PrivSize * sizeof(INT32));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:890:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(modetmp.Private, mptr->Private,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:940:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mptr->Private, &stuff[1], mptr->PrivSize * sizeof(INT32));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:997:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&modetmp, mptr, sizeof(DisplayModeRec));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:1021:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(modetmp.Private, &stuff[1], mptr->PrivSize * sizeof(INT32));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:1023:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(modetmp.Private, mptr->Private,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbblt.c:278:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    	memcpy(pdst, psrc, w2);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbblt.c:280:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    	memcpy(pdst, psrc, w);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/cfb/cfbpixmap.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	line[66];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dispatch.c:3787:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pad[3];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:513:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char    chars[512];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:696:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	tmp_pattern[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/gc.c:75:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char DefaultDash[2] = {4, 4};
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/glyphcurs.c:88:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char char2b[2];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/property.c:366:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    memmove(&((char *)data)[pProp->size * sizeInBytes], 
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/property.c:376:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    memmove(&((char *)data)[totalSize], (char *)pProp->data, 
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/window.c:95:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _back_lsb[4] = {0x88, 0x22, 0x44, 0x11};
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/window.c:96:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _back_msb[4] = {0x11, 0x44, 0x22, 0x88};
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/window.c:283:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char back[128];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:394:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char passwdFullControl[9];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:395:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char passwdViewOnly[9];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:422:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(encryptedChallenge1, cl->authChallenge, CHALLENGESIZE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:424:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(encryptedChallenge2, cl->authChallenge, CHALLENGESIZE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:469:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:497:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/corre.c:158:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/corre.c:164:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&hdr, sz_rfbRREHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/corre.c:175:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&updateBuf[ublen], &rreAfterBuf[i], bytesToCopy);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/corre.c:279:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(&rreAfterBuf[rreAfterBufLen],&subrect,sz_rfbCoRRERectangle); \
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:34:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _reverse_byte[0x100] = {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:120:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:161:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,sz_rfbFramebufferUpdateRectHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:175:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&updateBuf[ublen], (char *)&colors, sz_rfbXCursorColors);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:257:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:291:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pix[2];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:363:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (buf, (char *)&pix[bitmapByte >> b & 1],		 \
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/cursor.c:374:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (buf, (char *)&pix[bitmapByte >> b & 1],		 \
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/hextile.c:56:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/hextile.c:179:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&updateBuf[ublen], (char *)clientPixelData,	      \
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:68:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[BUF_SIZE];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:90:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	httpPort = 5800 + atoi(display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:199:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fullFname[512];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char params[1024];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:206:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:302:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(fname, "/index.vnc");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:314:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(fullFname, O_RDONLY)) < 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:353:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(str, "%d", rfbScreen.width);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:358:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(str, "%d", rfbScreen.height);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:363:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(str, "%d", rfbScreen.width);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:368:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(str, "%d", rfbScreen.height + 32);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(str, "%d", rfbPort);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:446:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char param_request[128];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:447:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char param_formatted[196];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:470:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(param_request, tail, len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:102:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char rfbThisHost[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:110:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char primaryOrder[4] = "";
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:135:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char inetdDisplayNumStr[10];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:185:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbScreen.depth = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:214:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbScreen.blackPixel = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:220:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbScreen.whitePixel = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:226:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	udpPort = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:232:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbPort = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:238:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbMaxClientWait = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:261:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	httpPort = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:267:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbDeferUpdateTime = atoi(argv[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:355:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(inetdDisplayNumStr, "%d", n);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:735:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[32];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:751:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(fname, "/tmp/.X%d-lock", n);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:755:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(fname, "/tmp/.X11-unix/X%d", n);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:779:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(host, pProp->data, pProp->size);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:783:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		port = atoi(&host[i+1]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:860:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char unixSocketName[32];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:939:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfb.h:353:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pcap->vendorSignature, (vendor),		\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfb.h:355:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pcap->nameSignature, sig_##code_sym,		\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfb.h:459:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char updateBuf[UPDATE_BUF_SIZE];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char updateBuf[UPDATE_BUF_SIZE];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:398:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1271:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1278:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&updateBuf[ublen], (char *)&cr, sz_rfbCopyRect);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1323:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,sz_rfbFramebufferUpdateRectHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1388:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,sz_rfbFramebufferUpdateRectHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1438:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[sz_rfbSetColourMapEntriesMsg + 256 * 3 * 2];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rre.c:128:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rre.c:134:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&hdr, sz_rfbRREHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rre.c:145:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&updateBuf[ublen], &rreAfterBuf[i], bytesToCopy);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rre.c:249:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(&rreAfterBuf[rreAfterBufLen],&subrect,sz_rfbRectangle);      \
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c:116:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	rfbPort = 5900 + atoi(display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c:161:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[6];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c:171:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&fds, (char *)&allFds, sizeof(fd_set));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c:245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&udpRemoteAddr, &addr, addrlen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:631:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:663:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&updateBuf[ublen], tightBeforeBuf, len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:707:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], tightAfterBuf, paletteLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:718:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], tightAfterBuf, 4);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:771:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], tightAfterBuf, paletteNumColors * entryLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:784:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], tightAfterBuf, paletteNumColors * 2);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:873:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], tightBeforeBuf, dataLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/tight.c:947:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&updateBuf[ublen], &tightAfterBuf[i], portionLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/translate.c:170:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(optr, iptr, bytesPerOutputLine);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/translate.c:327:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[sz_rfbSetColourMapEntriesMsg + 256 * 3 * 2];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/zlib.c:195:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&rect,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/zlib.c:201:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&updateBuf[ublen], (char *)&hdr, sz_rfbZlibHeader);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/zlib.c:212:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&updateBuf[ublen], &zlibAfterBuf[i], bytesToCopy);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/closestr.h:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	pattern[256];  /* max len of font name */
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/dixstruct.h:116:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char requestLog[MAX_REQUEST_LOG];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/input.h:112:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	autoRepeats[32];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:207:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 n = ((char *) (x))[0];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:208:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[0] = ((char *) (x))[3];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:208:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[0] = ((char *) (x))[3];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:209:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[3] = n;\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:210:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 n = ((char *) (x))[1];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:211:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[1] = ((char *) (x))[2];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:211:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[1] = ((char *) (x))[2];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:212:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[2] = n; }
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:216:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 n = ((char *) (x))[0];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:217:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[0] = ((char *) (x))[1];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:217:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[0] = ((char *) (x))[1];\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/include/misc.h:218:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 ((char *) (x))[1] = n; }
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:377:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open ("/dev/ip", O_RDWR, 0 )) < 0)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:597:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[2048], *cp, *cplim;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:800:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char                lhostname[120], ohostname[120];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:802:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		fname[PATH_MAX + 1];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:854:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (fd = fopen (fname, "r")) 
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/auth.c:176:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen (authorization_file, "r");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:279:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char 	port[20];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:317:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (port, "%d", atoi (display));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:317:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    sprintf (port, "%d", atoi (display));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:463:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char addr[128];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:467:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(addr, "LBX proxy at ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:471:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(out, "local host");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:479:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(out, "local host");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:505:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(out, "unknown address");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:866:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pad[3];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/genalloca.c:115:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char	align[ALIGN_SIZE];	/* to force sizeof(header) */
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/io.c:796:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char padBuffer[3];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:72:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char kerror[256];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:216:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cp, &prefix, sz_xReq);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:220:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cp, &princ.length, 2);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:227:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cp, princ.data, princ.length);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:231:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cp, creds->ticket.data, creds->ticket.length);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:350:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(kerror, "Krb5 stage1: unknown address family %d from getpeername",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:372:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(kerror, "krb5_rc_resolve_type failed: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:396:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(kerror, "krb5_rc_resolve failed: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:412:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(kerror, "krb5_rc_close failed: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:417:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(kerror, "krb5_rc_initialize failed: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:455:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(kerror, "krb5_rc_close failed (2): ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:463:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(kerror, "Krb5: Bad application request: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:493:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(kerror, "error in krb5_us_timeofday: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:504:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(kerror, "error in krb5_mk_rep: ");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:579:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(kerror, "unrecognized Krb5 auth packet %d, expecting %d",
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:614:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(nbuf, data + 3, data_length - 3);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/lbxio.c:528:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(oci->buffer + oci->bufcnt, data, size);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/mitauth.c:163:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char cookie[16]; /* 128 bits */
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[64];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:164:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char           name[1];	/* some compilers complain if [0] */
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:220:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char       line[BUFSIZ];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:221:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char       name[BUFSIZ];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:232:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(path, ".txt");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:237:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(path, ".txt");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:239:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (!(rgb = fopen(path, "r")))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c:95:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[PATH_MAX];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c:116:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    if (!(err = fopen (fname, "a+")))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c:117:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		err = fopen ("/dev/null", "w");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/osinit.c:124:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    static char buf[BUFSIZ];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            cred_area[MAX_AUTH_BYTES];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            verf_area[MAX_AUTH_BYTES];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:128:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char rpc_error[MAXNETNAMELEN+50];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:144:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(rpc_error, "Unable to authenticate secure RPC client (why=%d)", why);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:238:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char LockFile[PATH_MAX];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:250:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[PATH_MAX], pid_str[12];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:284:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    lfd = open(tmp, O_CREAT | O_EXCL | O_WRONLY, 0644);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:295:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      lfd = open(tmp, O_CREAT | O_EXCL | O_WRONLY, 0644);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:304:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  (void) sprintf(pid_str, "%10d\n", getpid());
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:333:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      lfd = open(LockFile, O_RDONLY);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:656:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultPointerControl.num = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:668:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        Memory_fail = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:676:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        auditTrailLevel = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:694:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultKeyboardControl.click = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:705:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultColorVisualClass = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:721:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        monitorResolution = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:739:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultKeyboardControl.bell = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:786:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        limitDataSpace = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:798:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        limitNoFile = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:808:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        limitStackSpace = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:842:48:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultScreenSaverInterval = ((CARD32)atoi(argv[i])) *
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:858:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultScreenSaverTime = ((CARD32)atoi(argv[i])) *
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:868:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	        defaultPointerControl.threshold = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:881:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		TimeOutValue = ((CARD32)atoi(argv[i])) * MILLI_PER_SECOND;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:935:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                SelectWaitTime = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:974:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(filename, "r");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1027:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*resargv, prefix_argv, prefix_argc * sizeof(char *));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1036:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(*resargv + prefix_argc + insert_argc,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1079:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[1024];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1084:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hname[1024], *hnameptr;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xalloc.c:203:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		  f = fopen(XALLOC_LOG_FILE, "a");	\
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xalloc.c:535:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)new_ptr, (char *)ptr, (amount < old_size ? amount : old_size));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xalloc.c:704:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((devzerofd = open("/dev/zero", O_RDWR, 0)) < 0)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xalloc.c:714:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(XALLOC_LOG_FILE, "w");
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmauth.c:182:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		    client[6];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:289:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	xdm_udp_port = atoi(argv[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:580:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    	DisplayNumber = (CARD16) atoi(display);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:988:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    xdmcpSocket= open(udp_device, O_RDWR);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:1404:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char read_buffer[XDM_MAX_MSGLEN+sizeof(udp_io_hdr_t)];
data/tightvnc-1.3.10/include/rfbproto.h:184:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char rfbProtocolVersionMsg[13];	/* allow extra byte for null */
data/tightvnc-1.3.10/libvncauth/d3des.c:39:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char Df_Key[24] = {
data/tightvnc-1.3.10/libvncauth/d3des.c:57:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char pc1[56] = {
data/tightvnc-1.3.10/libvncauth/d3des.c:63:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char totrot[16] = {
data/tightvnc-1.3.10/libvncauth/d3des.c:66:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char pc2[48] = {
data/tightvnc-1.3.10/libvncauth/d3des.c:77:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char pc1m[56], pcr[56];
data/tightvnc-1.3.10/libvncauth/vncauth.c:46:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char s_fixedkey[8] = {23,82,107,6,35,78,88,7};
data/tightvnc-1.3.10/libvncauth/vncauth.c:77:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char encryptedPasswd[16] = {
data/tightvnc-1.3.10/libvncauth/vncauth.c:83:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen(fname, "w");
data/tightvnc-1.3.10/libvncauth/vncauth.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char passwd[16];
data/tightvnc-1.3.10/libvncauth/vncauth.c:157:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(fname,"r")) == NULL)
data/tightvnc-1.3.10/libvncauth/vncauth.c:181:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(passwdFullControl, passwd, 8);
data/tightvnc-1.3.10/libvncauth/vncauth.c:188:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(passwdViewOnly, &passwd[8], 8);
data/tightvnc-1.3.10/libvncauth/vncauth.c:229:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char key[8];
data/tightvnc-1.3.10/vncconnect/vncconnect.c:57:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    PropModeReplace, (unsigned char *)argv[i],
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:50:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwd1[9];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwd2[9];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yesno[2];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwdDir[256];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:55:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwdFile[256];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwd[256];
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:251:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char passwd_copy[9];
data/tightvnc-1.3.10/vncviewer/argsresources.c:127:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char vncServerHost[256];
data/tightvnc-1.3.10/vncviewer/argsresources.c:400:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(vncServerHost, vncServerName, colonPos - vncServerName);
data/tightvnc-1.3.10/vncviewer/argsresources.c:413:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    disp = atoi(colonPos + 1);
data/tightvnc-1.3.10/vncviewer/caps.c:76:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(capinfo.vendorSignature, vendor, sz_rfbCapabilityInfoVendor);
data/tightvnc-1.3.10/vncviewer/caps.c:77:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(capinfo.nameSignature, name, sz_rfbCapabilityInfoName);
data/tightvnc-1.3.10/vncviewer/caps.h:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *descriptions[TIGHTVNC_MAX_CAPS];
data/tightvnc-1.3.10/vncviewer/caps.h:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char enable_flags[TIGHTVNC_MAX_CAPS];
data/tightvnc-1.3.10/vncviewer/cursor.c:55:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char _reverse_byte[0x100] = {
data/tightvnc-1.3.10/vncviewer/desktop.c:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char keyname[256];
data/tightvnc-1.3.10/vncviewer/desktop.c:252:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	x = atoi(params[1]);
data/tightvnc-1.3.10/vncviewer/desktop.c:253:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	y = atoi(params[2]);
data/tightvnc-1.3.10/vncviewer/desktop.c:254:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	buttonMask = atoi(params[3]);
data/tightvnc-1.3.10/vncviewer/desktop.c:273:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	buttonMask = atoi(params[1]);
data/tightvnc-1.3.10/vncviewer/desktop.c:379:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(scr, buf, widthInBytes);
data/tightvnc-1.3.10/vncviewer/listen.c:65:40:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    listenPort = (LISTEN_PORT_OFFSET + atoi(argv[listenArgIndex+1])) & 0xFFFF;
data/tightvnc-1.3.10/vncviewer/listen.c:85:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      listenPort = LISTEN_PORT_OFFSET + atoi(colonPos+1);
data/tightvnc-1.3.10/vncviewer/misc.c:101:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(geometry, "%dx%d+%d+%d",
data/tightvnc-1.3.10/vncviewer/misc.c:203:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    msec = atoi(params[0]);
data/tightvnc-1.3.10/vncviewer/popup.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buttonName[12];
data/tightvnc-1.3.10/vncviewer/popup.c:74:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buttonName, "button%d", i);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:96:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buffer[BUFFER_SIZE];
data/tightvnc-1.3.10/vncviewer/rfbproto.c:118:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char zlib_buffer[ZLIB_BUFFER_SIZE];
data/tightvnc-1.3.10/vncviewer/rfbproto.c:129:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tightPalette[256*4];
data/tightvnc-1.3.10/vncviewer/rfbproto.c:537:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  buffer[64];
data/tightvnc-1.3.10/vncviewer/rfbproto.c:681:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[sz_rfbSetEncodingsMsg + MAX_ENCODINGS * 4];
data/tightvnc-1.3.10/vncviewer/selection.c:300:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char*)*value, serverCutText, *length);
data/tightvnc-1.3.10/vncviewer/sockets.c:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[BUF_SIZE];
data/tightvnc-1.3.10/vncviewer/sockets.c:81:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, bufoutptr, n);
data/tightvnc-1.3.10/vncviewer/sockets.c:87:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(out, bufoutptr, buffered);
data/tightvnc-1.3.10/vncviewer/sockets.c:119:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(out, bufoutptr, n);
data/tightvnc-1.3.10/vncviewer/sockets.c:421:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char c, str[17];
data/tightvnc-1.3.10/vncviewer/tight.c:281:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, &buffer[numRows * rowSize], extraBytes);
data/tightvnc-1.3.10/vncviewer/tight.c:349:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dst, buffer, numRows * rectWidth * (BPP / 8));
data/tightvnc-1.3.10/vncviewer/tight.c:401:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tightPrevRow, thisRow, rectWidth * 3);
data/tightvnc-1.3.10/vncviewer/tight.c:457:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(thatRow, thisRow, rectWidth * 3 * sizeof(CARD16));
data/tightvnc-1.3.10/vncviewer/tunnel.c:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char lastArgv[32];
data/tightvnc-1.3.10/vncviewer/tunnel.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[1024];
data/tightvnc-1.3.10/vncviewer/tunnel.c:60:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char localPortStr[8];
data/tightvnc-1.3.10/vncviewer/tunnel.c:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char remotePortStr[8];
data/tightvnc-1.3.10/vncviewer/tunnel.c:85:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(localPortStr, "%d", localPort);
data/tightvnc-1.3.10/vncviewer/tunnel.c:86:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(remotePortStr, "%d", remotePort);
data/tightvnc-1.3.10/vncviewer/tunnel.c:116:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  *remotePort = atoi(pdisplay);
data/tightvnc-1.3.10/vncviewer/tunnel.c:120:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(lastArgv, "localhost::%d", localPort);
data/tightvnc-1.3.10/vncviewer/tunnel.c:157:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    disp = atoi(colonPos);
data/tightvnc-1.3.10/vncviewer/tunnel.c:163:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(lastArgv, "localhost::%d", localPort);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:782:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  ptr += strlen(ptr);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:789:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  ptr += strlen(ptr);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:796:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  ptr += strlen(ptr);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:803:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  ptr += strlen(ptr);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:810:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  ptr += strlen(ptr);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:819:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(buf) >= sizeof(buf))
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:926:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (aout) + strlen (format) + strlen (cc);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:926:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (aout) + strlen (format) + strlen (cc);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:926:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (aout) + strlen (format) + strlen (cc);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:960:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = fgetc (ldprog);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1220:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			writetmpfile(tmpfd, input, strlen(input), tmpfname);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1292:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pend+4, varbuf, 4);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1302:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(pend+4, varbuf, 4);
data/tightvnc-1.3.10/Xvnc/config/imake/imake.c:1505:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	register char *new = Emalloc(strlen(cp) + 1);
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:149:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    prefixlen = strlen(prefix);
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:177:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tmpbuf, var, len);
data/tightvnc-1.3.10/Xvnc/config/makedepend/cppsetup.c:212:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = lookup_variable (ip, var, strlen(var));
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:201:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    i = strlen(newfile->i_file);
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:281:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for (p=file+strlen(file); p>file; p--)
data/tightvnc-1.3.10/Xvnc/config/makedepend/include.c:287:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, file, (p-file) + 1);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:175:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    if ((ast.st_size = read(afd, args, ast.st_size)) < 0)
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:205:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    for (p = args; argc < nargc; p += strlen(p) + 1)
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:505:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((st.st_size = read(fd, content->f_base, st.st_size)) < 0)
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:530:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	register char	*p = (char *)malloc(strlen(str) + 1);
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:627:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for(p=file+strlen(file); p>file && *p != '.'; p--) ;
data/tightvnc-1.3.10/Xvnc/config/makedepend/main.c:696:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(line);
data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c:90:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(ip->i_file)+1;
data/tightvnc-1.3.10/Xvnc/config/makedepend/pr.c:95:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = current_len = strlen(buf);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:81:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (fn[strlen(fn) - 1] == '~')
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:151:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(dp->d_name);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:231:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = dir + strlen(dir);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:272:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    s = (char *)malloc(strlen(dp->d_name) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/checktree.c:336:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(buf, ".");
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:208:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = buf + strlen (buf);
data/tightvnc-1.3.10/Xvnc/config/util/lndir.c:212:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (dp->d_name[strlen(dp->d_name) - 1] == '~')
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:217:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int magic_string_len = strlen (magic_string);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:268:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((fileprotstr = malloc (strlen (phile->name) + 3)) == NULL)
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:272:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((fileprotstr = malloc (strlen (phile->name) + strlen (prefixstr) +  3)) == NULL)
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:272:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((fileprotstr = malloc (strlen (phile->name) + strlen (prefixstr) +  3)) == NULL)
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:476:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp (buf, file_str, strlen (file_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:478:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, table_str, strlen (table_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:480:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, prefix_str, strlen (prefix_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:482:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, feature_str, strlen (feature_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:484:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, externref_str, strlen (externref_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:486:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, externdef_str, strlen (externdef_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:488:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, ctmpl_str, strlen (ctmpl_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:490:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, htmpl_str, strlen (htmpl_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:492:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strncmp (buf, const_str, strlen (const_str)) == 0) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:504:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((phile->name = malloc (strlen (buf + strlen (file_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:504:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((phile->name = malloc (strlen (buf + strlen (file_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:506:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (void) strcpy (phile->name, buf + strlen (file_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:523:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((table->name = malloc (strlen (buf + strlen (table_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:523:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((table->name = malloc (strlen (buf + strlen (table_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:525:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (void) strcpy (table->name, buf + strlen (table_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:538:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((prefixstr = malloc (strlen (buf + strlen (prefix_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:538:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((prefixstr = malloc (strlen (buf + strlen (prefix_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:540:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (prefixstr, buf + strlen (prefix_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:543:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((featurestr = malloc (strlen (buf + strlen (feature_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:543:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((featurestr = malloc (strlen (buf + strlen (feature_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:545:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (featurestr, buf + strlen (feature_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:548:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((externrefstr = malloc (strlen (buf + strlen (externref_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:548:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((externrefstr = malloc (strlen (buf + strlen (externref_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:550:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (externrefstr, buf + strlen (externref_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:553:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((externdefstr = malloc (strlen (buf + strlen (externdef_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:553:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((externdefstr = malloc (strlen (buf + strlen (externdef_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:555:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (externdefstr, buf + strlen (externdef_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:558:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((ctmplstr = malloc (strlen (buf + strlen (ctmpl_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:558:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((ctmplstr = malloc (strlen (buf + strlen (ctmpl_str)) + 1)) == NULL) 
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:560:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (ctmplstr, buf + strlen (ctmpl_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:563:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((filecurrent->tmpl = fopen (buf + strlen (htmpl_str) + 1, "r")) == NULL) {
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:570:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((conststr = malloc (strlen (buf + strlen (const_str)) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:570:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((conststr = malloc (strlen (buf + strlen (const_str)) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:572:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(void) strcpy (conststr, buf + strlen (const_str) + 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:592:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    llen = len = strlen(buf) + 1;
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:593:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    rlen = strlen(right) + 1;
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:624:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    t->offset += strlen (te->right);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:639:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    offset += strlen (te->right);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:675:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy (ret, tag + 1, len - 1);
data/tightvnc-1.3.10/Xvnc/config/util/makestrs.c:731:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (buf[(len = strlen (buf) - 1)] == '\n') buf[len] = '\0';
data/tightvnc-1.3.10/Xvnc/config/util/mkdirhier.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, dirname, next - dirname);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:134:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:228:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (namep = names; *namep; namep += strlen(namep) + 1) {
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:256:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    master_end = master + strlen(master);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/mkshadow.c:257:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    current_end = current + strlen(current);
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/savedir.c:23:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define NLENGTH(direct) (strlen((direct)->d_name))
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/savedir.c:52:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
int strlen ();
data/tightvnc-1.3.10/Xvnc/config/util/mkshadow/savedir.c:115:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  namep += strlen (namep) + 1;
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:240:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_name)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:243:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_passwd)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:246:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_age)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:249:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_comment)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:252:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_gecos)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:255:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_dir)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:258:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ((p).len = strlen((p).pwp->pw_shell)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:667:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:675:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:851:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:858:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (strncpy((p).buf, (p).result, sizeof((p).buf)), (p).result = &(p).buf) : \
data/tightvnc-1.3.10/Xvnc/include/Xos_r.h:1009:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   ((p).len = strlen((p).pgrp->gr_name)), \
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:38:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read	   _read
data/tightvnc-1.3.10/Xvnc/include/Xw32defs.h:44:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
#define umask	   _umask
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:66:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen (name) + strlen(&slashDotXauthority[1]) + 2;
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuFileName.c:66:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen (name) + strlen(&slashDotXauthority[1]) + 2;
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuGetBest.c:115:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    fully_qual_address_length = strlen(fully_qual_address);
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuLock.c:77:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (file_name) > 1022)
data/tightvnc-1.3.10/Xvnc/lib/Xau/AuUnlock.c:46:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (file_name) > 1022)
data/tightvnc-1.3.10/Xvnc/lib/Xau/Autest.c:60:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_data.name_length = strlen (name);
data/tightvnc-1.3.10/Xvnc/lib/Xau/Autest.c:62:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    test_data.data_length = strlen (data);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/nsample.c:207:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ch = getc(fdescr);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spfile.c:202:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    spmf->fname = (char *) xalloc(strlen(filename) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:126:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:129:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:412:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    pp->value = MakeAtom(tmpname, strlen(tmpname), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Speedo/spinfo.c:417:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(spf->master->copyright), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:84:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy(CurFontName, "");    /* iniitialize to none */
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:106:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  FontP->FontFileName.len = strlen(CurFontName);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:214:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(CurFontName, "");    /* no font loaded */
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:258:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(CurFontName, "");    /* no font loaded */
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/fontfcn.c:264:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  objFormatName(&nameObj,strlen(infoName),infoName);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/objects.c:775:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       if (strlen(username) >= (unsigned)NAMESIZE)
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:429:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(encodingTable[i].name),
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:601:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (tmp, tokenStartP, sizeof (tmp));
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:663:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    (0 != strncmp(tokenStartP,nameP,strlen(nameP))) );
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1394:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(filename,nameP,namelen);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1403:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      V = getc(fileP);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1406:31:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        for (i=0;i<5;i++) V = getc(fileP);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1490:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 V = getc(fileP);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/scanfont.c:1492:42:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                   for (i=0;i<5;i++) V = getc(fileP);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/spaces.c:980:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       s = temp + strlen(temp) - (FRACTBITS/4);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:386:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pp->value = MakeAtom(scaledName, strlen(scaledName), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:394:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pp->value = MakeAtom(infostrP, strlen(infostrP), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:402:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pp->value = MakeAtom(infostrP, strlen(infostrP), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:486:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1info.c:489:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c:196:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while (HighHexP[c=getc(f)] == HWHITE_SPACE) ;
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1io.c:280:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  rc = read(f->fd, f->b_base, F_BUFSIZ);
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1stdio.h:57:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc(f) \
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/t1stdio.h:70:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define  fgetc(f)           T1Getc(f)
data/tightvnc-1.3.10/Xvnc/lib/font/Type1/token.c:135:23:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define next_ch()    (getc(inputFileP))
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfint.h:36:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define bdfIsPrefix(buf,str)	(!strncmp((char *)buf,str,strlen(str)))
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:133:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	inLineLen = strlen((char *) pInBits);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:409:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    for (p = line + strlen("ATTRIBUTES ");
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:423:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(charName) == 1)) {
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:623:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    bdfGetPropertyValue(line + strlen(namebuf) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfread.c:644:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    bdfGetPropertyValue(line + strlen(namebuf) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfutils.c:143:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    register int len = strlen(str);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bdfutils.c:184:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pp = p = (char *) xalloc((unsigned) strlen(s) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:204:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:208:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:212:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	t->atom = MakeAtom(t->name, (unsigned) strlen(t->name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:376:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    zeroName.length = strlen (zeroChars);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:379:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xlfdName.length = strlen(xlfdName.name);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:403:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    xlfdName.length = strlen(xlfdName.name);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/bitscale.c:744:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    fp->value = MakeAtom(name, strlen(name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfread.c:273:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 strlen(strings + props[i].name), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfread.c:276:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				      strlen(strings + props[i].value), TRUE);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:271:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	prop_string_size += strlen(pcfNameForAtom(pFont->info.props[i].name)) + 1;
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:274:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    prop_string_size += strlen(pcfNameForAtom(pFont->info.props[i].value)) + 1;
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:352:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		glyph_string_size += strlen(pcfNameForAtom(bitmapFont->bitmapExtra->glyphNames[i])) + 1;
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:403:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:406:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:473:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		offset += strlen(pcfNameForAtom(bitmapFont->bitmapExtra->glyphNames[i])) + 1;
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/pcfwrite.c:478:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pcfWrite(file, atom_name, strlen(atom_name) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/snfread.c:157:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     (unsigned) strlen(&strings[psnfp->name]), 1);
data/tightvnc-1.3.10/Xvnc/lib/font/bitmap/snfread.c:161:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       (unsigned) strlen(&strings[psnfp->value]), 1);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:259:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	cp = client_cat = (char *) xalloc(strlen(conn->servername));
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:268:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		end = sp + strlen(sp);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fserve.c:1435:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    namelen = strlen(name);
data/tightvnc-1.3.10/Xvnc/lib/font/fc/fsio.c:296:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        conn->servername = (char *) xalloc(strlen(servername) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/bufio.c:76:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    left = read (FileDes(f), (char *)f->buffer, BUFFILESIZE);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/bufio.c:109:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		fileoff = read (FileDes(f), (char *)f->buffer, curoff);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:83:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dir_path, directory, ptr - directory);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:92:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (dir_file[strlen(dir_file) - 1] != '/')
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:93:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dir_file, "/");
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:113:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    for (i=0; i<strlen(font_name); i++) {
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:218:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (fileName) - renderer->fileSuffixLen;
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:276:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (directory[strlen(directory) - 1] != '/')
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:277:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(alias_file, "/");
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:326:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     strlen(alias));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:329:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     strlen(lexToken));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:455:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(file);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/dirfile.c:461:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(file);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fileio.c:58:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (name);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:122:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	attriblen = strlen(attrib);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:124:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dirlen = strlen(dirName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:128:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirlen = strlen(dirName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:162:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dir->directory, dirName, dirlen);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:170:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(dir->directory, "/");
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:410:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = (char *) xalloc (strlen (s) + 1);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:549:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				       strlen(fname->u.alias.resolved));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:620:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    entry.name.length = strlen (fontName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:648:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int uslength = strlen(UNSCALED_ATTRIB);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:655:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		length = dir->attributes + strlen(dir->attributes) - ptr1;
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:701:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    entry.name.length = strlen (entry.name.name);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontdir.c:799:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    entry.name.length = strlen (aliasName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:132:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((len = strlen(*aliasName)) <= MAXFONTNAMELEN &&
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:281:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tmpName.length = strlen(lowerName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:345:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	!(tmpName.length = strlen (lowerName),
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:626:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					 strlen (nameChars));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:647:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					     strlen(zeroChars),
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:652:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					     strlen (nameChars));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:656:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					     strlen (aliasName));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:673:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						 strlen (aliasName));
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:728:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	zeroName.length = strlen (zeroChars);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:874:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmpName.length = strlen (lowerName);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/fontfile.c:967:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    *namelenp = strlen (*namep = alias->resolved);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/printerfont.c:58:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(name,PRINTERPATHPREFIX,strlen(PRINTERPATHPREFIX)) != 0)
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/printerfont.c:60:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name += strlen(PRINTERPATHPREFIX);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/printerfont.c:76:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name = fpe->name + strlen(PRINTERPATHPREFIX);
data/tightvnc-1.3.10/Xvnc/lib/font/fontfile/renderers.c:67:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fileLen = strlen (fileName);
data/tightvnc-1.3.10/Xvnc/lib/font/util/atom.c:180:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (a->name, string, len);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontnames.c:122:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nelt, name, length);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:166:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (p1 = buffer + strlen(buffer);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:385:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(fname, "[");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:386:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (i = 0; i < nranges && strlen(fname) < 1010; i++)
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:388:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    if (i) strcat(fname, " ");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:389:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sprintf(fname + strlen(fname), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:395:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sprintf(fname + strlen(fname), "_%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:398:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(fname, "]");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:486:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((ptr - fname) + spacingLen + strlen(ptr5) + 10 >= (unsigned)1024)
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:547:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:551:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:555:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(tmpBuf + strlen(tmpBuf), "-%*.*s", l, l, p);
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:557:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(tmpBuf, "-");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:561:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(tmpBuf, "[");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:570:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(tmpBuf, "]");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:574:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sprintf(tmpBuf + strlen(tmpBuf), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:577:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(tmpBuf, "-");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:581:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(tmpBuf, "[");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:590:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(tmpBuf, "]");
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:594:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sprintf(tmpBuf + strlen(tmpBuf), "%d",
data/tightvnc-1.3.10/Xvnc/lib/font/util/fontxlfd.c:597:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(tmpBuf + strlen(tmpBuf), "-%d-%d%*.*s%d%s",
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:181:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (protobuf, protocol, PROTOBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:232:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tmpptr = mybuf = (char *) xalloc (strlen (address) + 1);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:275:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(_protocol) == 0)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:303:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(_host) == 0)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:343:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((*protocol = (char *) xalloc(strlen (_protocol) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:355:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((*host = (char *) xalloc (strlen (_host) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:368:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((*port = (char *) xalloc (strlen (_port) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:526:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((save_port = (char *) xalloc (strlen (port) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:674:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((*port = (char *) xalloc (strlen (ciptr->port) + 1)) == NULL)
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1447:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen (name.nodename);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1449:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buf, name.nodename, len);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtrans.c:1455:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:421:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*saddrlenp = strlen(*saddrp);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1192:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    rep.h_size = strlen(repb);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1266:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name, XTcpServerName, BUFSIZ);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1510:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ciptr->addrlen = strlen("XXXXTODO");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransam.c:1518:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ciptr->addrlen = strlen(ciptr->addr);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:400:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dnsock.sdn_objnamel = strlen (dnsock.sdn_objname);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:525:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(objname, port, OBJBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransdnet.c:595:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read (ciptr->fd, buf, size);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:165:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sunaddr->sun_len = strlen (sunaddr->sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:188:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p_sunaddr->sun_len = strlen (p_sunaddr->sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:362:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen(slave);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:375:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ret = read(fd, buf, 1);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:525:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( (in=read(ciptr->fd,&length,1)) <= 0 ){
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:539:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if( (in=read(ciptr->fd,buf,length)) <= 0 ){
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:591:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sunaddr->sun_len=strlen(sunaddr->sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:865:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldUmask = umask(0);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:870:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldUmask);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1319:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(ciptr->fd, &c, 1) < 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1756:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	workingXLOCAL=freeXLOCAL=(char *)xalloc (strlen (protocol) + 1);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1764:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	workingXLOCAL=freeXLOCAL=(char *)xalloc (strlen (XLOCAL) + 1);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:1804:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(typebuf,typetocheck,TYPEBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:2131:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(typebuf, typetocheck, TYPEBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:2366:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(ciptr->fd,buf,size);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranslcl.c:2438:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path,sockname->sun_path,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:784:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r= read(ciptr->fd, priv->read_buffer, priv->read_bufsize);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:859:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r= read(ciptr->fd, buf+offset, size-offset);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransmnx.c:919:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r= read(ciptr->fd, priv->read_buffer, priv->read_bufsize);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:156:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        server_string[0]=(char) strlen(clientname)+1;
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:551:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if((in=read(ciptr->fd,&length,1))<=0){
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransos2.c:570:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if((in=read(ciptr->fd,clientname,length))<=0){
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:863:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (portbuf, port, PORTBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:940:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldUmask = umask (0);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:960:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sockname.sun_len = strlen(sockname.sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:963:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen(sockname.sun_path) + sizeof(sockname.sun_family);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:998:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask (oldUmask);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1029:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	int oldUmask = umask (0);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1059:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask (oldUmask);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1289:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (portbuf, port, PORTBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1589:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sockname.sun_len = strlen (sockname.sun_path);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1592:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    namelen = strlen (sockname.sun_path) + sizeof (sockname.sun_family);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1606:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    old_namelen = strlen (old_sockname.sun_path) +
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1712:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read (ciptr->fd, buf, size);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranssock.c:1815:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (path, sockname->sun_path,
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:817:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(portbuf,port,PORTBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1133:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(portbuf,port,PORTBUFSIZE);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1184:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncmp (port, TLINODENAME, strlen (TLINODENAME)) == 0) {
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtranstli.c:1259:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(ciptr->fd,buf,size);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:251:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	networkId = (char *) xalloc (3 + strlen (transName) +
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:252:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (hostnamebuf) + strlen (saddr->sun_path));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:252:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (hostnamebuf) + strlen (saddr->sun_path));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:267:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	networkId = (char *) xalloc (3 + strlen (transName) +
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:268:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (hostnamebuf) + strlen (portnumbuf));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:268:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen (hostnamebuf) + strlen (portnumbuf));
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:280:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    13 + strlen (hostnamebuf) + saddr->sdn_objnamel);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:427:2:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen (ciptr->transptr->TransName) + strlen (addr) + 2);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:427:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strlen (ciptr->transptr->TransName) + strlen (addr) + 2);
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:429:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (hostname, "/");
data/tightvnc-1.3.10/Xvnc/lib/xtrans/Xtransutil.c:462:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i = 0; i < (int) strlen (str); i++)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1418:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(SecurityKeywords[i]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1449:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!propname || (strlen(propname) == 0))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1462:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!mustHaveProperty || (strlen(mustHaveProperty) == 0))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1509:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size += strlen(mustHaveValue) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1514:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pacl->name = MakeAtom(propname, strlen(propname), TRUE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1523:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					  strlen(mustHaveProperty), TRUE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/security.c:1583:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    copyPolicyStr = (char *)Xalloc(strlen(policyStr) + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/sync.c:1426:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += (sz_xSyncSystemCounter + strlen(name) + 3) & ~3;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/sync.c:1455:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	namelen = strlen(psci->name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/sync.c:1468:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pname_in_reply, psci->name, namelen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86misc.c:212:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        rep.devnamelen = strlen(xf86Info.mouseDev->mseDevice);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:1194:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rep.vendorLength = strlen(mptr->vendor);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xf86vmode.c:1198:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rep.modelLength = strlen(mptr->model);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:646:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	totalBytes += QUADPAD(strlen(pList[numEntries]->name));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:647:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	totalBytes += QUADPAD(strlen(pList[numEntries]->description));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:670:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(pList[i]->name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:675:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(curByte, pList[i]->name, len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:679:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(pList[i]->description);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:684:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(curByte, pList[i]->description, len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:1025:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(pContext->printerName, (char *)(stuff + 1), stuff->printerNameLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2181:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    totalSize = sz_xPrintGetAttributesReply + QUADPAD(strlen(attrs));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2189:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pRep->stringLen = strlen(attrs);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2197:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char*)(pRep + 1), attrs, strlen(attrs));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2197:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy((char*)(pRep + 1), attrs, strlen(attrs));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2259:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(attr, (char *)(stuff + 1), stuff->stringLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2305:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(attrName, (char *)(stuff+1), stuff->nameLen);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2336:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    totalSize = sz_xPrintGetOneAttributeReply + QUADPAD(strlen(value));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2344:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pRep->valueLen = strlen(value);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2352:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char*)(pRep + 1), value, strlen(value));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xprint.c:2352:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy((char*)(pRep + 1), value, strlen(value));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/Xext/xtest1di.c:214:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(XTestEXTENSION_NAME),
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/atom.c:98:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((comp < 0) || ((comp == 0) && (len < strlen((*np)->string))))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/atom.c:124:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(nd->string, string, (int)len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/cursor.c:390:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(unsigned)strlen( pfilename), pfilename);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/devices.c:374:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	device->name = (char *)xalloc(strlen(p) + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/devices.c:401:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	device->name = (char *)xalloc(strlen(k) + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dispatch.c:788:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dispatch.c:3790:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	csp.lengthReason = strlen(reason);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:128:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		   (unsigned) strlen(defaultfontname), defaultfontname);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:287:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    newlen = strlen(alias);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:1033:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		namelen = strlen(name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:1747:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(fpe->name, (char *) cp, (int) len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/dixfonts.c:1825:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(path) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:101:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ext->name = (char *)xalloc(strlen(name) + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:172:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name = (char *)xalloc(strlen(alias) + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:194:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((strlen(extensions[i]->name) == len) &&
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:199:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ((strlen(extensions[i]->aliases[j]) == len) &&
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:214:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int i = FindExtension(extname, strlen(extname));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:364:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    total_length += strlen(extensions[i]->name) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:367:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		total_length += strlen(extensions[i]->aliases[j]) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:381:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *bufptr++ = len = strlen(extensions[i]->name);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:386:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		*bufptr++ = len = strlen(extensions[i]->aliases[j]);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/extension.c:454:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	newname = (char *)xalloc(strlen(name)+1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/dix/main.c:475:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    setup.nbytesVendor = strlen(VENDOR_STRING); 
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:472:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    reasonLen = strlen(reason);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/auth.c:502:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    reasonLen = (reason == NULL) ? 0 : strlen(reason);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:211:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(httpDir) > 255) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:217:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fname = &fullFname[strlen(fullFname)];
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:218:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    maxFnameLen = 511 - strlen(fullFname);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:222:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t got = read (httpSock, buf + buf_filled,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:257:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(buf) > maxFnameLen) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:271:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	WriteExact(httpSock, NOT_FOUND_STR, strlen(NOT_FOUND_STR));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:278:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	WriteExact(httpSock, NOT_FOUND_STR, strlen(NOT_FOUND_STR));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:308:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(fname) >= 4 && strcmp(&fname[strlen(fname)-4], ".vnc") == 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:308:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(fname) >= 4 && strcmp(&fname[strlen(fname)-4], ".vnc") == 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:316:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	WriteExact(httpSock, NOT_FOUND_STR, strlen(NOT_FOUND_STR));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:321:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    WriteExact(httpSock, OK_STR, strlen(OK_STR));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:324:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int n = read(fd, buf, BUF_SIZE-1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:354:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:359:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:364:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:369:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:374:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:378:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, desktopName, strlen(desktopName));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:383:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    WriteExact(httpSock, str, strlen(str));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:389:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				   strlen(user->pw_name));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:397:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			WriteExact(httpSock, params, strlen(params));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:430:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(*ptr, str, strlen(str)) == 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:431:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*ptr += strlen(str);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:461:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(tail) >= sizeof(param_request)) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/httpd.c:480:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(value_str) == 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:194:6:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	if (sscanf(argv[i+1], "%3s%1d%1d%1d", primaryOrder,
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:412:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  strlen("VNC_LAST_CLIENT_ID"), TRUE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/init.c:413:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VNC_CONNECT = MakeAtom("VNC_CONNECT", strlen("VNC_CONNECT"), TRUE);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:342:10:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    Bool mismatch;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:422:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(desktopName) > 128)	/* sanity check on desktop name len */
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:432:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf + sz_rfbServerInitMsg);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/rfbserver.c:1567:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((n = read(sock, (char *)&msg, sizeof(msg))) <= 0) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/hw/vnc/sockets.c:387:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(sock, buf, len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:845:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:845:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fnamelen = strlen(ETC_HOST_PREFIX) + strlen(ETC_HOST_SUFFIX) +
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:846:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strlen(display) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:866:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hostlen = strlen(ohostname) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/access.c:943:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (void) NewHost (FamilyNetname, hostname, strlen (hostname));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/connection.c:468:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	out += strlen(addr);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/decompress.c:143:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((getc(f) != (magic_header[0] & 0xFF)) ||
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/decompress.c:144:3:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(getc(f) != (magic_header[1] & 0xFF)))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/decompress.c:148:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    code = getc (f);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/decompress.c:300:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (bits > 0 && (code = getc (fp)) != EOF)
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:373:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(kerror, error_message(retval), 231);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:376:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((cachename = (char *)malloc(strlen(rc_base) + strlen(display) + 1))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:376:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((cachename = (char *)malloc(strlen(rc_base) + strlen(display) + 1))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:397:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(kerror, error_message(retval), 236);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:413:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(kerror, error_message(retval2), 238);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:418:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	    strncat(kerror, error_message(retval), 233);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:456:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	    strncat(kerror, error_message(retval2), 230);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:464:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(kerror, error_message(retval), 224);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:494:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(kerror, error_message(retval), 234);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:505:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(kerror, error_message(retval), 238);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/k5auth.c:672:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ktlen = strlen(cp + 1);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:230:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      path = (char*)ALLOCATE_LOCAL(strlen(rgbPath) +5);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:235:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      path = (char*)ALLOCATE_LOCAL(strlen(tmp) +5);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/oscolor.c:259:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if (entry = lookup(name, strlen(name), TRUE))
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/rpcauth.c:124:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (len == strlen ((char *) closure) &&
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/secauth.c:101:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strLen == strlen(testPolicy)) &&
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:268:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(LOCK_PREFIX) > strlen(LOCK_TMP_PREFIX) ? strlen(LOCK_PREFIX) :
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:268:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(LOCK_PREFIX) > strlen(LOCK_TMP_PREFIX) ? strlen(LOCK_PREFIX) :
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:268:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(LOCK_PREFIX) > strlen(LOCK_TMP_PREFIX) ? strlen(LOCK_PREFIX) :
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:269:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(LOCK_TMP_PREFIX);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:270:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len += strlen(tmppath) + strlen(display) + strlen(LOCK_SUFFIX) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:270:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len += strlen(tmppath) + strlen(display) + strlen(LOCK_SUFFIX) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:270:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len += strlen(tmppath) + strlen(display) + strlen(LOCK_SUFFIX) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:339:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read(lfd, pid_str, 11) != 11) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1033:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p += strlen(p) + 1;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/utils.c:1098:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *p++ = (len = strlen(hnameptr) + 1) >> 8;
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:140:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(argv[i]) > MAX_ARG_LENGTH) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:167:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (envp[i] && (strlen(envp[i]) > MAX_ENV_LENGTH)) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:186:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy(e, envp[i], len);
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/wrapper.c:191:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(envp[i]) > MAX_ENV_PATH_LENGTH) {
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:310:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XdmcpRegisterManufacturerDisplayID (argv[i], strlen (argv[i]));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:570:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XdmAuthenticationInit (xdmAuthCookie, strlen (xdmAuthCookie));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:575:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XdmcpRegisterDisplayClass (defaultDisplayClass, strlen (defaultDisplayClass));
data/tightvnc-1.3.10/Xvnc/programs/Xserver/os/xdmcp.c:1428:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r= read(fd, read_buffer, sizeof(read_buffer));
data/tightvnc-1.3.10/libvncauth/vncauth.c:92:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(encryptedPasswd, passwd, 8);
data/tightvnc-1.3.10/libvncauth/vncauth.c:94:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(encryptedPasswd + 8, passwdViewOnly, 8);
data/tightvnc-1.3.10/libvncauth/vncauth.c:164:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ch = getc(fp);
data/tightvnc-1.3.10/libvncauth/vncauth.c:235:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (i < strlen(passwd)) {
data/tightvnc-1.3.10/vncconnect/vncconnect.c:58:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen(argv[i]));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:75:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(passwdFile, "-");
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:80:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(argv[1]) > 255) {
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:131:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset(passwd1, 0, strlen(passwd1));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:132:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset(passwd2, 0, strlen(passwd2));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:138:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd1, 0, strlen(passwd1));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:139:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd2, 0, strlen(passwd2));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:161:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(result) > maxlen) {
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:230:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(passwd) > 8) {
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:231:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset(passwd + 8, 0, strlen(passwd) - 8);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:237:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd, 0, strlen(passwd));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:259:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(passwd) < 6) {
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:263:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(passwd) > 8) {
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:264:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memset(passwd + 8, 0, strlen(passwd) - 8);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:271:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(passwd) > 8)
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:272:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memset(passwd + 8, 0, strlen(passwd) - 8);
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:282:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd, 0, strlen(passwd));
data/tightvnc-1.3.10/vncpasswd/vncpasswd.c:283:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd_copy, 0, strlen(passwd_copy));
data/tightvnc-1.3.10/vncviewer/argsresources.c:389:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(vncServerName) > 255) {
data/tightvnc-1.3.10/vncviewer/argsresources.c:402:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(colonPos + 1);
data/tightvnc-1.3.10/vncviewer/desktop.c:367:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(appData.rawDelay * 1000);
data/tightvnc-1.3.10/vncviewer/listen.c:83:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      strlen(hostinfo.nodename)) == 0))) {
data/tightvnc-1.3.10/vncviewer/misc.c:56:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  title = XtMalloc(strlen(titleFormat) + strlen(desktopName) + 1);
data/tightvnc-1.3.10/vncviewer/misc.c:56:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  title = XtMalloc(strlen(titleFormat) + strlen(desktopName) + 1);
data/tightvnc-1.3.10/vncviewer/misc.c:206:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(msec * 1000);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:560:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       len = strlen(buffer);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:570:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!passwd || strlen(passwd) == 0) {
data/tightvnc-1.3.10/vncviewer/rfbproto.c:574:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(passwd) > 8) {
data/tightvnc-1.3.10/vncviewer/rfbproto.c:581:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  memset(passwd, '\0', strlen(passwd));
data/tightvnc-1.3.10/vncviewer/rfbproto.c:710:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	encStrLen = strlen(encStr);
data/tightvnc-1.3.10/vncviewer/rfbproto.c:1061:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	  usleep(appData.copyRectDelay * 1000);
data/tightvnc-1.3.10/vncviewer/selection.c:277:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  XStoreBytes(dpy, serverCutText, strlen(serverCutText));
data/tightvnc-1.3.10/vncviewer/selection.c:298:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *length = strlen(serverCutText);
data/tightvnc-1.3.10/vncviewer/sockets.c:98:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int i = read(rfbsock, buf + buffered, BUF_SIZE - buffered);
data/tightvnc-1.3.10/vncviewer/sockets.c:127:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int i = read(rfbsock, out, n);
data/tightvnc-1.3.10/vncviewer/tunnel.c:113:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strspn(pdisplay, "-0123456789") != strlen(pdisplay))
data/tightvnc-1.3.10/vncviewer/tunnel.c:146:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(colonPos);
data/tightvnc-1.3.10/vncviewer/tunnel.c:209:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&result[j], remoteHost, 1024 - j);
data/tightvnc-1.3.10/vncviewer/tunnel.c:210:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j += strlen(remoteHost) - 1;
data/tightvnc-1.3.10/vncviewer/tunnel.c:214:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&result[j], gatewayHost, 1024 - j);
data/tightvnc-1.3.10/vncviewer/tunnel.c:215:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j += strlen(gatewayHost) - 1;
data/tightvnc-1.3.10/vncviewer/tunnel.c:219:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&result[j], remotePort, 1024 - j);
data/tightvnc-1.3.10/vncviewer/tunnel.c:220:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j += strlen(remotePort) - 1;
data/tightvnc-1.3.10/vncviewer/tunnel.c:224:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(&result[j], localPort, 1024 - j);
data/tightvnc-1.3.10/vncviewer/tunnel.c:225:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j += strlen(localPort) - 1;

ANALYSIS SUMMARY:

Hits = 1670
Lines analyzed = 293110 in approximately 8.49 seconds (34508 lines/second)
Physical Source Lines of Code (SLOC) = 215930
Hits@level = [0] 741 [1] 484 [2] 763 [3]  43 [4] 355 [5]  25
Hits@level+ = [0+] 2411 [1+] 1670 [2+] 1186 [3+] 423 [4+] 380 [5+]  25
Hits/KSLOC@level+ = [0+] 11.1657 [1+] 7.73399 [2+] 5.49252 [3+] 1.95897 [4+] 1.75983 [5+] 0.115778
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.