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/yorick-2.2.04+dfsg1/drat/bound.c
Examining data/yorick-2.2.04+dfsg1/drat/bound.h
Examining data/yorick-2.2.04+dfsg1/drat/drat.c
Examining data/yorick-2.2.04+dfsg1/drat/drat.h
Examining data/yorick-2.2.04+dfsg1/drat/track.c
Examining data/yorick-2.2.04+dfsg1/drat/track.h
Examining data/yorick-2.2.04+dfsg1/drat/trans.c
Examining data/yorick-2.2.04+dfsg1/drat/trans.h
Examining data/yorick-2.2.04+dfsg1/drat/ydrat.c
Examining data/yorick-2.2.04+dfsg1/extend/cerfc.c
Examining data/yorick-2.2.04+dfsg1/fft/cfft.h
Examining data/yorick-2.2.04+dfsg1/fft/cfft2.c
Examining data/yorick-2.2.04+dfsg1/fft/cfftb.c
Examining data/yorick-2.2.04+dfsg1/fft/cfftf.c
Examining data/yorick-2.2.04+dfsg1/fft/cffti.c
Examining data/yorick-2.2.04+dfsg1/fft/roll2.c
Examining data/yorick-2.2.04+dfsg1/gist/bench.c
Examining data/yorick-2.2.04+dfsg1/gist/browser.c
Examining data/yorick-2.2.04+dfsg1/gist/cgm.c
Examining data/yorick-2.2.04+dfsg1/gist/cgm.h
Examining data/yorick-2.2.04+dfsg1/gist/cgmin.c
Examining data/yorick-2.2.04+dfsg1/gist/cgmin.h
Examining data/yorick-2.2.04+dfsg1/gist/clip.c
Examining data/yorick-2.2.04+dfsg1/gist/clip.h
Examining data/yorick-2.2.04+dfsg1/gist/draw.c
Examining data/yorick-2.2.04+dfsg1/gist/draw.h
Examining data/yorick-2.2.04+dfsg1/gist/draw0.c
Examining data/yorick-2.2.04+dfsg1/gist/engine.c
Examining data/yorick-2.2.04+dfsg1/gist/engine.h
Examining data/yorick-2.2.04+dfsg1/gist/eps.c
Examining data/yorick-2.2.04+dfsg1/gist/eps.h
Examining data/yorick-2.2.04+dfsg1/gist/gcntr.c
Examining data/yorick-2.2.04+dfsg1/gist/gist.c
Examining data/yorick-2.2.04+dfsg1/gist/gist.h
Examining data/yorick-2.2.04+dfsg1/gist/gtext.c
Examining data/yorick-2.2.04+dfsg1/gist/gtext.h
Examining data/yorick-2.2.04+dfsg1/gist/hlevel.c
Examining data/yorick-2.2.04+dfsg1/gist/hlevel.h
Examining data/yorick-2.2.04+dfsg1/gist/ps.c
Examining data/yorick-2.2.04+dfsg1/gist/ps.h
Examining data/yorick-2.2.04+dfsg1/gist/tick.c
Examining data/yorick-2.2.04+dfsg1/gist/tick60.c
Examining data/yorick-2.2.04+dfsg1/gist/xbasic.c
Examining data/yorick-2.2.04+dfsg1/gist/xbasic.h
Examining data/yorick-2.2.04+dfsg1/gist/xfancy.c
Examining data/yorick-2.2.04+dfsg1/gist/xfancy.h
Examining data/yorick-2.2.04+dfsg1/gist/gread.c
Examining data/yorick-2.2.04+dfsg1/hex/hex.h
Examining data/yorick-2.2.04+dfsg1/hex/hydram.h
Examining data/yorick-2.2.04+dfsg1/hex/regul.c
Examining data/yorick-2.2.04+dfsg1/hex/regul.h
Examining data/yorick-2.2.04+dfsg1/hex/tools.c
Examining data/yorick-2.2.04+dfsg1/hex/tools.h
Examining data/yorick-2.2.04+dfsg1/hex/yhex.c
Examining data/yorick-2.2.04+dfsg1/hex/hex24.c
Examining data/yorick-2.2.04+dfsg1/hex/hex5.c
Examining data/yorick-2.2.04+dfsg1/hex/hex.c
Examining data/yorick-2.2.04+dfsg1/hex/hydram.c
Examining data/yorick-2.2.04+dfsg1/hex/store.c
Examining data/yorick-2.2.04+dfsg1/math/heapsort.c
Examining data/yorick-2.2.04+dfsg1/math/heapsort.h
Examining data/yorick-2.2.04+dfsg1/math/lecuyer.c
Examining data/yorick-2.2.04+dfsg1/math/lecuyer.h
Examining data/yorick-2.2.04+dfsg1/matrix/cblasy.c
Examining data/yorick-2.2.04+dfsg1/matrix/cblasy.h
Examining data/yorick-2.2.04+dfsg1/matrix/cxerbla.c
Examining data/yorick-2.2.04+dfsg1/matrix/dbdsqr.c
Examining data/yorick-2.2.04+dfsg1/matrix/dg.h
Examining data/yorick-2.2.04+dfsg1/matrix/dgecon.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgels.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgelss.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgesv.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgesv2.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgesvd.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgtsv.c
Examining data/yorick-2.2.04+dfsg1/matrix/dgyor.c
Examining data/yorick-2.2.04+dfsg1/matrix/dlamc3.c
Examining data/yorick-2.2.04+dfsg1/matrix/dlasr.c
Examining data/yorick-2.2.04+dfsg1/mpy/mpy.h
Examining data/yorick-2.2.04+dfsg1/mpy/mpyfile.c
Examining data/yorick-2.2.04+dfsg1/mpy/mpy.c
Examining data/yorick-2.2.04+dfsg1/play/any/alarms.c
Examining data/yorick-2.2.04+dfsg1/play/any/bitlrot.c
Examining data/yorick-2.2.04+dfsg1/play/any/bitmrot.c
Examining data/yorick-2.2.04+dfsg1/play/any/bitrev.c
Examining data/yorick-2.2.04+dfsg1/play/any/hash.c
Examining data/yorick-2.2.04+dfsg1/play/any/hash0.c
Examining data/yorick-2.2.04+dfsg1/play/any/hashctx.c
Examining data/yorick-2.2.04+dfsg1/play/any/hashid.c
Examining data/yorick-2.2.04+dfsg1/play/any/hashtest.c
Examining data/yorick-2.2.04+dfsg1/play/any/mm.c
Examining data/yorick-2.2.04+dfsg1/play/any/mmtest.c
Examining data/yorick-2.2.04+dfsg1/play/any/numfmt.c
Examining data/yorick-2.2.04+dfsg1/play/any/p595.c
Examining data/yorick-2.2.04+dfsg1/play/any/pmemcpy.c
Examining data/yorick-2.2.04+dfsg1/play/any/pstdio.c
Examining data/yorick-2.2.04+dfsg1/play/any/pstrcpy.c
Examining data/yorick-2.2.04+dfsg1/play/any/pstrncat.c
Examining data/yorick-2.2.04+dfsg1/play/any/test2d.c
Examining data/yorick-2.2.04+dfsg1/play/any/psoftfpe.c
Examining data/yorick-2.2.04+dfsg1/play/any/mminit.c
Examining data/yorick-2.2.04+dfsg1/play/hacks/hack103.h
Examining data/yorick-2.2.04+dfsg1/play/phash.h
Examining data/yorick-2.2.04+dfsg1/play/plugin.h
Examining data/yorick-2.2.04+dfsg1/play/pmin.h
Examining data/yorick-2.2.04+dfsg1/play/pstdlib.h
Examining data/yorick-2.2.04+dfsg1/play/unix/dir.c
Examining data/yorick-2.2.04+dfsg1/play/unix/fputest.c
Examining data/yorick-2.2.04+dfsg1/play/unix/handler.c
Examining data/yorick-2.2.04+dfsg1/play/unix/pathnm.c
Examining data/yorick-2.2.04+dfsg1/play/unix/playu.h
Examining data/yorick-2.2.04+dfsg1/play/unix/pmain.c
Examining data/yorick-2.2.04+dfsg1/play/unix/stdinit.c
Examining data/yorick-2.2.04+dfsg1/play/unix/timeu.c
Examining data/yorick-2.2.04+dfsg1/play/unix/timew.c
Examining data/yorick-2.2.04+dfsg1/play/unix/udl.c
Examining data/yorick-2.2.04+dfsg1/play/unix/udltest.c
Examining data/yorick-2.2.04+dfsg1/play/unix/uevent.c
Examining data/yorick-2.2.04+dfsg1/play/unix/ugetc.c
Examining data/yorick-2.2.04+dfsg1/play/unix/ugetc.h
Examining data/yorick-2.2.04+dfsg1/play/unix/uinbg.c
Examining data/yorick-2.2.04+dfsg1/play/unix/upoll.c
Examining data/yorick-2.2.04+dfsg1/play/unix/upoll.h
Examining data/yorick-2.2.04+dfsg1/play/unix/usernm.c
Examining data/yorick-2.2.04+dfsg1/play/unix/uspawn.c
Examining data/yorick-2.2.04+dfsg1/play/unix/config.c
Examining data/yorick-2.2.04+dfsg1/play/unix/files.c
Examining data/yorick-2.2.04+dfsg1/play/unix/fpuset.c
Examining data/yorick-2.2.04+dfsg1/play/unix/umain.c
Examining data/yorick-2.2.04+dfsg1/play/unix/usock.c
Examining data/yorick-2.2.04+dfsg1/play/unix/slinks.c
Examining data/yorick-2.2.04+dfsg1/play/win/clips.c
Examining data/yorick-2.2.04+dfsg1/play/win/config.h
Examining data/yorick-2.2.04+dfsg1/play/win/conterm.c
Examining data/yorick-2.2.04+dfsg1/play/win/cursors.c
Examining data/yorick-2.2.04+dfsg1/play/win/cygapp.c
Examining data/yorick-2.2.04+dfsg1/play/win/cygmain.c
Examining data/yorick-2.2.04+dfsg1/play/win/dir.c
Examining data/yorick-2.2.04+dfsg1/play/win/ellipse.c
Examining data/yorick-2.2.04+dfsg1/play/win/feep.c
Examining data/yorick-2.2.04+dfsg1/play/win/getdc.c
Examining data/yorick-2.2.04+dfsg1/play/win/mfcapp.h
Examining data/yorick-2.2.04+dfsg1/play/win/mfcmain.cpp
Examining data/yorick-2.2.04+dfsg1/play/win/mfcres.h
Examining data/yorick-2.2.04+dfsg1/play/win/mfcterm.h
Examining data/yorick-2.2.04+dfsg1/play/win/pals.c
Examining data/yorick-2.2.04+dfsg1/play/win/pathnm.c
Examining data/yorick-2.2.04+dfsg1/play/win/pcell.c
Examining data/yorick-2.2.04+dfsg1/play/win/pfill.c
Examining data/yorick-2.2.04+dfsg1/play/win/playwin.h
Examining data/yorick-2.2.04+dfsg1/play/win/plines.c
Examining data/yorick-2.2.04+dfsg1/play/win/pmin.c
Examining data/yorick-2.2.04+dfsg1/play/win/points.c
Examining data/yorick-2.2.04+dfsg1/play/win/prect.c
Examining data/yorick-2.2.04+dfsg1/play/win/pscr.c
Examining data/yorick-2.2.04+dfsg1/play/win/ptext.c
Examining data/yorick-2.2.04+dfsg1/play/win/pwin.c
Examining data/yorick-2.2.04+dfsg1/play/win/sigansi.c
Examining data/yorick-2.2.04+dfsg1/play/win/timeu.c
Examining data/yorick-2.2.04+dfsg1/play/win/timew.c
Examining data/yorick-2.2.04+dfsg1/play/win/usernm.c
Examining data/yorick-2.2.04+dfsg1/play/win/wdl.c
Examining data/yorick-2.2.04+dfsg1/play/win/wpopen.c
Examining data/yorick-2.2.04+dfsg1/play/win/wspawn.c
Examining data/yorick-2.2.04+dfsg1/play/win/wstdio.c
Examining data/yorick-2.2.04+dfsg1/play/win/files.c
Examining data/yorick-2.2.04+dfsg1/play/win/handler.c
Examining data/yorick-2.2.04+dfsg1/play/win/mfcapp.cpp
Examining data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp
Examining data/yorick-2.2.04+dfsg1/play/win/playw.h
Examining data/yorick-2.2.04+dfsg1/play/win/sigseh.c
Examining data/yorick-2.2.04+dfsg1/play/win/wpoll.c
Examining data/yorick-2.2.04+dfsg1/play/win/wsock.c
Examining data/yorick-2.2.04+dfsg1/play/x11/clips.c
Examining data/yorick-2.2.04+dfsg1/play/x11/colors.c
Examining data/yorick-2.2.04+dfsg1/play/x11/connect.c
Examining data/yorick-2.2.04+dfsg1/play/x11/cursors.c
Examining data/yorick-2.2.04+dfsg1/play/x11/ellipse.c
Examining data/yorick-2.2.04+dfsg1/play/x11/errors.c
Examining data/yorick-2.2.04+dfsg1/play/x11/events.c
Examining data/yorick-2.2.04+dfsg1/play/x11/feep.c
Examining data/yorick-2.2.04+dfsg1/play/x11/fills.c
Examining data/yorick-2.2.04+dfsg1/play/x11/images.c
Examining data/yorick-2.2.04+dfsg1/play/x11/lines.c
Examining data/yorick-2.2.04+dfsg1/play/x11/pals.c
Examining data/yorick-2.2.04+dfsg1/play/x11/playwin.h
Examining data/yorick-2.2.04+dfsg1/play/x11/playx.h
Examining data/yorick-2.2.04+dfsg1/play/x11/points.c
Examining data/yorick-2.2.04+dfsg1/play/x11/pwin.c
Examining data/yorick-2.2.04+dfsg1/play/x11/rect.c
Examining data/yorick-2.2.04+dfsg1/play/x11/resource.c
Examining data/yorick-2.2.04+dfsg1/play/x11/rgbread.c
Examining data/yorick-2.2.04+dfsg1/play/x11/textout.c
Examining data/yorick-2.2.04+dfsg1/play/x11/fonts.c
Examining data/yorick-2.2.04+dfsg1/play/play.h
Examining data/yorick-2.2.04+dfsg1/play/pstdio.h
Examining data/yorick-2.2.04+dfsg1/play/yversion.h
Examining data/yorick-2.2.04+dfsg1/regexp/yfnmatch.c
Examining data/yorick-2.2.04+dfsg1/regexp/yregexp.c
Examining data/yorick-2.2.04+dfsg1/regexp/yregexp.h
Examining data/yorick-2.2.04+dfsg1/regexp/yfnmatch.h
Examining data/yorick-2.2.04+dfsg1/win/makeidef.c
Examining data/yorick-2.2.04+dfsg1/win/makewdef.c
Examining data/yorick-2.2.04+dfsg1/yorick/array.c
Examining data/yorick-2.2.04+dfsg1/yorick/autold.c
Examining data/yorick-2.2.04+dfsg1/yorick/bcast.c
Examining data/yorick-2.2.04+dfsg1/yorick/bcast.h
Examining data/yorick-2.2.04+dfsg1/yorick/binio.c
Examining data/yorick-2.2.04+dfsg1/yorick/binio.h
Examining data/yorick-2.2.04+dfsg1/yorick/binobj.c
Examining data/yorick-2.2.04+dfsg1/yorick/binpdb.c
Examining data/yorick-2.2.04+dfsg1/yorick/binstd.c
Examining data/yorick-2.2.04+dfsg1/yorick/cache.c
Examining data/yorick-2.2.04+dfsg1/yorick/convrt.c
Examining data/yorick-2.2.04+dfsg1/yorick/defmem.c
Examining data/yorick-2.2.04+dfsg1/yorick/defmem.h
Examining data/yorick-2.2.04+dfsg1/yorick/dlsym.c
Examining data/yorick-2.2.04+dfsg1/yorick/graph0.c
Examining data/yorick-2.2.04+dfsg1/yorick/hash.h
Examining data/yorick-2.2.04+dfsg1/yorick/list.c
Examining data/yorick-2.2.04+dfsg1/yorick/mdigest.h
Examining data/yorick-2.2.04+dfsg1/yorick/nonc.c
Examining data/yorick-2.2.04+dfsg1/yorick/ops0.c
Examining data/yorick-2.2.04+dfsg1/yorick/ops1.c
Examining data/yorick-2.2.04+dfsg1/yorick/ops2.c
Examining data/yorick-2.2.04+dfsg1/yorick/opsv.c
Examining data/yorick-2.2.04+dfsg1/yorick/parse.c
Examining data/yorick-2.2.04+dfsg1/yorick/parse.h
Examining data/yorick-2.2.04+dfsg1/yorick/parsre.c
Examining data/yorick-2.2.04+dfsg1/yorick/pathfun.c
Examining data/yorick-2.2.04+dfsg1/yorick/range.c
Examining data/yorick-2.2.04+dfsg1/yorick/spawn.c
Examining data/yorick-2.2.04+dfsg1/yorick/std0.c
Examining data/yorick-2.2.04+dfsg1/yorick/style.c
Examining data/yorick-2.2.04+dfsg1/yorick/yasync.h
Examining data/yorick-2.2.04+dfsg1/yorick/ydata.c
Examining data/yorick-2.2.04+dfsg1/yorick/ydata.h
Examining data/yorick-2.2.04+dfsg1/yorick/yhash.c
Examining data/yorick-2.2.04+dfsg1/yorick/yio.h
Examining data/yorick-2.2.04+dfsg1/yorick/yrdwr.c
Examining data/yorick-2.2.04+dfsg1/yorick/ystr.c
Examining data/yorick-2.2.04+dfsg1/yorick/debug.c
Examining data/yorick-2.2.04+dfsg1/yorick/mdigest.c
Examining data/yorick-2.2.04+dfsg1/yorick/oxy.c
Examining data/yorick-2.2.04+dfsg1/yorick/std1.c
Examining data/yorick-2.2.04+dfsg1/yorick/yapi.c
Examining data/yorick-2.2.04+dfsg1/yorick/ascio.c
Examining data/yorick-2.2.04+dfsg1/yorick/clog.c
Examining data/yorick-2.2.04+dfsg1/yorick/codger.c
Examining data/yorick-2.2.04+dfsg1/yorick/fnctn.c
Examining data/yorick-2.2.04+dfsg1/yorick/fortrn.c
Examining data/yorick-2.2.04+dfsg1/yorick/funcdef.c
Examining data/yorick-2.2.04+dfsg1/yorick/fwrap.c
Examining data/yorick-2.2.04+dfsg1/yorick/graph.c
Examining data/yorick-2.2.04+dfsg1/yorick/ops.c
Examining data/yorick-2.2.04+dfsg1/yorick/ops3.c
Examining data/yorick-2.2.04+dfsg1/yorick/socky.c
Examining data/yorick-2.2.04+dfsg1/yorick/std2.c
Examining data/yorick-2.2.04+dfsg1/yorick/task.c
Examining data/yorick-2.2.04+dfsg1/yorick/yapi.h
Examining data/yorick-2.2.04+dfsg1/yorick/yinput.c
Examining data/yorick-2.2.04+dfsg1/yorick/yio.c
Examining data/yorick-2.2.04+dfsg1/yorick/yorick.c

FINAL RESULTS:

data/yorick-2.2.04+dfsg1/play/unix/files.c:267:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat(old, u_pathname(unix_old), P_WKSIZ);
data/yorick-2.2.04+dfsg1/play/unix/slinks.c:40:13:  [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.
      len = readlink(p_wkspc.c, link, P_WKSIZ);
data/yorick-2.2.04+dfsg1/play/win/files.c:222:3:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat(old, w_pathname(unix_old), P_WKSIZ);
data/yorick-2.2.04+dfsg1/gist/bench.c:44:22:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define PRINTF1(f,x) sprintf(p_wkspc.c,f,x);p_stdout(p_wkspc.c)
data/yorick-2.2.04+dfsg1/gist/bench.c:45:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define PRINTF2(f,x,y) sprintf(p_wkspc.c,f,x,y);p_stdout(p_wkspc.c)
data/yorick-2.2.04+dfsg1/gist/bench.c:46:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define PRINTF3(f,x,y,z) sprintf(p_wkspc.c,f,x,y,z);p_stdout(p_wkspc.c)
data/yorick-2.2.04+dfsg1/gist/bench.c:296:16:  [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.
  double user, system, wall, user0, system0, wall0;
data/yorick-2.2.04+dfsg1/gist/bench.c:323:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:341:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:357:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:375:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:393:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:689:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:704:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:719:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:735:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:751:22:  [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.
    get_time(&user, &system, &wall);
data/yorick-2.2.04+dfsg1/gist/bench.c:1085: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(line, noKeyTest[no_key++]);
data/yorick-2.2.04+dfsg1/gist/browser.c:507: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(line+len, *command);
data/yorick-2.2.04+dfsg1/gist/browser.c:590: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).
  if (name) strcpy(outNames[device], name);
data/yorick-2.2.04+dfsg1/gist/browser.c:924:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(msg, "%3d    %s %s %s  ", i, yorn[outDraw[i]], yorn[outSend[i]],
data/yorick-2.2.04+dfsg1/gist/cgm.c:187: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(gistError, msg);
data/yorick-2.2.04+dfsg1/gist/cgm.c:234: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(description+7, st? st : "\n");
data/yorick-2.2.04+dfsg1/gist/cgm.c:1465: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(cgmEngine->filename, file);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:294: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(cgm->name, name);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:608:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(msg, "At page %d out of %s%d in CGM file ",
data/yorick-2.2.04+dfsg1/gist/draw.h:244:31:  [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.
PLUG_API int GdScan(GeSystem *system);
data/yorick-2.2.04+dfsg1/gist/draw0.c:16:14:  [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).
extern char *strcpy(char *, const char *);
data/yorick-2.2.04+dfsg1/gist/engine.c:65: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(name? engine->name : "", name);
data/yorick-2.2.04+dfsg1/gist/gist.c:23:14:  [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).
extern char *strcpy(char *, const char *);
data/yorick-2.2.04+dfsg1/gist/gread.c:117: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(place, gistPath);
data/yorick-2.2.04+dfsg1/gist/gread.c:121: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(place, gistPathDefault);
data/yorick-2.2.04+dfsg1/gist/gread.c:164: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(now, home);
data/yorick-2.2.04+dfsg1/gist/gread.c:181: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(now, name);
data/yorick-2.2.04+dfsg1/gist/gread.c:220: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(gistError, id);
data/yorick-2.2.04+dfsg1/gist/hlevel.h:116:59:  [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.
PLUG2_API int GxPointClick(Engine *engine, int style, int system,
data/yorick-2.2.04+dfsg1/gist/hlevel.h:117:64:  [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.
                           int (*CallBack)(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/gist/ps.c:108: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(line, st? st : "\n");
data/yorick-2.2.04+dfsg1/gist/ps.c:251: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+nchars, s);
data/yorick-2.2.04+dfsg1/gist/ps.c:555:9:  [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(line, psFontNames[i]);
data/yorick-2.2.04+dfsg1/gist/ps.c:690:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(line, smooth? "%ld LS" : "%ld L", np);
data/yorick-2.2.04+dfsg1/gist/ps.c:786:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(line, type<32? "%ld MS" : "%ld M", n);
data/yorick-2.2.04+dfsg1/gist/ps.c:819:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(line, "%s %s JUS", psHCommands[h-1], psVCommands[v-1]);
data/yorick-2.2.04+dfsg1/gist/ps.c:1073:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(line, nlines>1? "] %d %d TA" : "%d %d T", ix, iy);
data/yorick-2.2.04+dfsg1/gist/ps.c:1384: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(psEngine->filename, file);
data/yorick-2.2.04+dfsg1/gist/tick.c:64:14:  [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).
extern char *strcpy(char *, const char *);
data/yorick-2.2.04+dfsg1/gist/tick.c:872:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(label, fixedFormat, iValue);
data/yorick-2.2.04+dfsg1/gist/tick.c:888:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(label, fixedFormat, iValue);
data/yorick-2.2.04+dfsg1/gist/tick.c:895: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(label, niceDecs[3+(int)iValue]);
data/yorick-2.2.04+dfsg1/gist/tick.c:898:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(label, gtDoEscapes? nicedFormat:decadeFormat, iValue);
data/yorick-2.2.04+dfsg1/gist/tick.c:901:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(label, integerFormat, iValue);
data/yorick-2.2.04+dfsg1/gist/tick.c:914:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(scratch, format, value);
data/yorick-2.2.04+dfsg1/gist/tick.c:992:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        else sprintf(label, fixedFormat, value);
data/yorick-2.2.04+dfsg1/gist/tick.c:998:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          if (!niceDecades) sprintf(label, fixedFormat, value);
data/yorick-2.2.04+dfsg1/gist/tick.c:1083:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        else sprintf(label, fixedFormat, value);
data/yorick-2.2.04+dfsg1/gist/tick.c:1089:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          if (!niceDecades) sprintf(label, fixedFormat, value);
data/yorick-2.2.04+dfsg1/gist/tick60.c:131:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(label, "%s%02d:%02d", (neg?"-":""), hh, mm);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:17:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int sprintf(char *s, const char *format, ...);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:61:34:  [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.
                      GeSystem **system, GpReal *xr, GpReal *yr);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:63:50:  [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.
                        int x, int y, GeSystem **system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:66:31:  [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.
static int FindAxis(GeSystem *system, GpReal x, GpReal y);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:67:39:  [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.
static void FindCoordinates(GeSystem *system, GpReal xNDC, GpReal yNDC,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:416:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fxe->msgText, "%s%2d", iSystem>=0?"=":":",
data/yorick-2.2.04+dfsg1/gist/xfancy.c:458:13:  [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.
  GeSystem *system;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:465:47:  [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.
    Find1System(fxe, drawing, iSystem, x, y, &system, &xWC, &yWC);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:466:10:  [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) iSystem = 0;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:470:47:  [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.
    iSystem = FindSystem(fxe, drawing, x, y, &system, &xWC, &yWC);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:475:9:  [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) {
data/yorick-2.2.04+dfsg1/gist/xfancy.c:487:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(format, "%%s%%2d (%s, %s)", f1, f2);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:488:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(fxe->msgText, format, locked? "=" : ":", iSystem, xWC, yWC);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:503:48:  [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.
static int (*PtClCallBack)(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:528:17:  [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.
      GeSystem *system;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:532:31:  [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.
                             &system, &fxe->zoomX, &fxe->zoomY);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:533:25:  [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.
        axis = FindAxis(system, fxe->zoomX, fxe->zoomY);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:537:22:  [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.
                    &system, &fxe->zoomX, &fxe->zoomY);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:538:14:  [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) iSystem = ptClSystem = 0;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:598:9:  [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 &&
data/yorick-2.2.04+dfsg1/gist/xfancy.c:600:63:  [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.
        (!(system->rescan || system->unscanned>=0) || !GdScan(system))) {
data/yorick-2.2.04+dfsg1/gist/xfancy.c:601:23:  [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.
      FindCoordinates(system, xNDC, yNDC, &x, &y);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:680:36:  [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.
  int (*cback)(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:733:34:  [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.
                      GeSystem **system, GpReal *xr, GpReal *yr)
data/yorick-2.2.04+dfsg1/gist/xfancy.c:798:50:  [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.
                        int x, int y, GeSystem **system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:831:31:  [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.
static int FindAxis(GeSystem *system, GpReal x, GpReal y)
data/yorick-2.2.04+dfsg1/gist/xfancy.c:833: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) {
data/yorick-2.2.04+dfsg1/gist/xfancy.c:842:39:  [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.
static void FindCoordinates(GeSystem *system, GpReal xNDC, GpReal yNDC,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:945:49:  [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.
int GxPointClick(Engine *engine, int style, int system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:946:54:  [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.
                 int (*CallBack)(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/gist/xfancy.c:957: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<0) ptClSystem= -1;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:958:20:  [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.
  else ptClSystem= system;
data/yorick-2.2.04+dfsg1/gist/xfancy.h:67:58:  [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.
PLUG_API int GxPointClick(Engine *engine, int style, int system,
data/yorick-2.2.04+dfsg1/gist/xfancy.h:68:63:  [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.
                          int (*CallBack)(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/matrix/cxerbla.c:21:4:  [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, form, argptr);
data/yorick-2.2.04+dfsg1/mpy/mpy.c:28:40:  [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 DBG_MSG(p,m) if (mp_dbstate>p) printf("%d: " m, mpy_rank)
data/yorick-2.2.04+dfsg1/mpy/mpy.c:29:43:  [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 DBG_MSG1(p,m,n) if (mp_dbstate>p) printf("%d: " m, mpy_rank,n)
data/yorick-2.2.04+dfsg1/mpy/mpy.c:30:47:  [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 DBG_MSG2(p,m,n1,n2) if (mp_dbstate>p) printf("%d: " m, mpy_rank,n1,n2)
data/yorick-2.2.04+dfsg1/mpy/mpy.c:31:50:  [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 DBG_MSG3(p,m,n1,n2,n3) if (mp_dbstate>p) printf("%d: " m, mpy_rank,n1,n2,n3)
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:205: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(txt, filename);
data/yorick-2.2.04+dfsg1/play/any/pstrcpy.c:20: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(d, s);
data/yorick-2.2.04+dfsg1/play/any/pstrncat.c:25: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).
    if (s1) strcpy(d, s1);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:281:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p_wkspc.c, "test2d received signal %s\n", sig_name[signal]);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:284:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(p_wkspc.c, "  with errmsg = %s\n", errmsg);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:474: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(p_wkspc.c, dirname);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:483:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p_wkspc.c, "%s %-20s %ld\n", "FIL", name, len);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:485:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(p_wkspc.c, "%s %s\n", "DIR", name);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1181:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p_wkspc.c, "test2d: using %s colormap\n",
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1199:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p_wkspc.c, "test2d: using %s colormap\n",
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1259:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(p_wkspc.c, "test2d: wrote %s\n", path);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1683:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p_wkspc.c, "test2d: on_panic called on screen %s\n",
data/yorick-2.2.04+dfsg1/play/unix/dir.c:81: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(pdir->dirname, name);
data/yorick-2.2.04+dfsg1/play/unix/dir.c:110: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_wkspc.c, dir->dirname);
data/yorick-2.2.04+dfsg1/play/unix/files.c:83:14:  [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 *fp = popen(command, mode[0]=='w'? "w" : "r");
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:60: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(p_wkspc.c, env);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:71: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(p_wkspc.c, name);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:97: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_wkspc.c, home);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:100:27:  [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).
  if (strlen(name)<=left) strcpy(p_wkspc.c+len, name);
data/yorick-2.2.04+dfsg1/play/unix/slinks.c:137:13:  [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.
  int err = access(path, X_OK);
data/yorick-2.2.04+dfsg1/play/unix/usernm.c:27:16:  [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.
  char *user = getlogin();
data/yorick-2.2.04+dfsg1/play/unix/usernm.c:37:14:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
extern char *cuserid(char *);
data/yorick-2.2.04+dfsg1/play/unix/usernm.c:41:16:  [4] (misc) cuserid:
  Exactly what cuserid() does is poorly defined (e.g., some systems use the
  effective uid, like Linux, while others like System V use the real uid).
  Thus, you can't trust what it does. It's certainly not portable (The
  cuserid function was included in the 1988 version of POSIX, but removed
  from the 1990 version). Also, if passed a non-null parameter, there's a
  risk of a buffer overflow if the passed-in buffer is not at least L_cuserid
  characters long (CWE-120). Use getpwuid(geteuid()) and extract the desired
  information instead.
  char *user = cuserid((char *)0);
data/yorick-2.2.04+dfsg1/play/unix/uspawn.c:51:10:  [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.
  return system(cmdline);
data/yorick-2.2.04+dfsg1/play/unix/uspawn.c:141:5:  [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(name, argv);
data/yorick-2.2.04+dfsg1/play/win/pathnm.c:67:33:  [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).
  if ((long)strlen(name)<=left) strcpy(p_wkspc.c+len, name);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:22:10:  [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.
  return system(cmdline);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:124: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(cmdline+1, name);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:129: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(cmdline, name);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:136: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(cmdline+cmdlen+1, argv[nargs]);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:141: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(cmdline+cmdlen, argv[nargs]);
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:104: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(pnm+n, name);
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:107: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(nm, tmp_fonts[0]);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1174:12:  [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(buf, p);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:226:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(message, "cannot open file %.100s%s (mode %.6s)",
data/yorick-2.2.04+dfsg1/yorick/ascio.c:978:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(text, "%s text stream at:", txStatus[ts->permissions&3]);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1139:8:  [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.
    i= sscanf(*text, format, &v, &n); \
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1188:8:  [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.
    i= sscanf(*text, format, v, &n);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1233: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.
  i = sscanf(text, format, pv, pn);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1242:11:  [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.
      i = sscanf(text, format, pv, pn);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1265:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, format, v); \
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1280:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, format, v? v : "");
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1290:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, format, v); \
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1302:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(text, format, v); \
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:355:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(nextByte, "%s\012", HEADTOK);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2136:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(nextByte, "%s %s", typeName, mNames[j]);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2178:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(nextByte, odimFormat[firstPass],
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2183:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(nextByte, dimFormat[firstPass], dims->number);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2194:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(nextByte, "%s\001%ld\001", FlopIntegerAndInt(name), size);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2351:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(nextByte, "\001%s\001%ld\001%ld\001", typeName, number, address);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2424:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(nextByte, "Version:%d|%s\012", y__pdb_version,
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2429:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(nextByte, "Major-Order:%s\012", (yPDBclose&1)? "102" : "101");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2451: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(nextByte, names[j]);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2513:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(nextByte, "%s\001%ld\001%d\001%d\001",
data/yorick-2.2.04+dfsg1/yorick/clog.c:1408:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(p_wkspc.c, "%s\"", identifier);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1415:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(p_wkspc.c, "%s", identifier);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1425:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p_wkspc.c, "%s", idScratch);
data/yorick-2.2.04+dfsg1/yorick/codger.c:546: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(tmp, dirs[i]);
data/yorick-2.2.04+dfsg1/yorick/codger.c:548: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(tmp+n, name);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:21:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int sprintf(char *s, const char *format, ...);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:474:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(header, "%ld\001%s\001%ld\001%d\001\n", 0L, "char", -1L, 0);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:507:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(header, "%ld\001%s\001%ld\001%d\001\n",
data/yorick-2.2.04+dfsg1/yorick/debug.c:431:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:448:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:451:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:456:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:460:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:465:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:470:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:474:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:482:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:486:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:492:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/debug.c:496:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(lineBuf, vmMeaning[iAction].fullFormat, ipc, stack,
data/yorick-2.2.04+dfsg1/yorick/graph.c:309:15:  [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).
    if (func) strcat(tmpLegend, func);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2980:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(line, "%s%2d: ", gistD.hidden?"(H)":"", i+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3017:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(line, "legend= \"%s%.104s\",", marker,
data/yorick-2.2.04+dfsg1/yorick/graph.c:3323: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(gistD.legend, legend);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3918:46:  [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.
static int MouseCallBack(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/yorick/graph.c:3957:50:  [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 (DISPLAY_MOUSE(ghDevices[n].display, style, system, &MouseCallBack)) {
data/yorick-2.2.04+dfsg1/yorick/graph.c:3979:46:  [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.
static int MouseCallBack(Engine *engine, int system,
data/yorick-2.2.04+dfsg1/yorick/graph.c:4001:38:  [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.
    mouse_array->value.d[8]= (double)system;
data/yorick-2.2.04+dfsg1/yorick/ops.c:710: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).
            strcpy(ptr[i], str[i]);
data/yorick-2.2.04+dfsg1/yorick/std0.c:2106:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(line, "origin_status: index origins %s",
data/yorick-2.2.04+dfsg1/yorick/yio.c:132: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(line, prev);
data/yorick-2.2.04+dfsg1/yorick/yio.c:378: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(&printBuf[printNow], s);
data/yorick-2.2.04+dfsg1/yorick/yio.c:523:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ unsigned char *pv= at->value; sprintf(nBuffer, yCharFormat, (int)*pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:528:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ short *pv= at->value; sprintf(nBuffer, yShortFormat, (int)*pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:533:23:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ int *pv= at->value; sprintf(nBuffer, yIntFormat, *pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:538:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ long *pv= at->value; sprintf(nBuffer, yLongFormat, *pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:543:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ float *pv= at->value; sprintf(nBuffer, yFloatFormat, (double)*pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:548:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ double *pv= at->value; sprintf(nBuffer, yDoubleFormat, *pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:553:26:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ double *pv= at->value; sprintf(nBuffer, yComplexFormat, pv[0], pv[1]);
data/yorick-2.2.04+dfsg1/yorick/yio.c:558:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
{ void **pv= at->value; sprintf(nBuffer, yPointerFormat, *pv);
data/yorick-2.2.04+dfsg1/yorick/yio.c:803: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(nBuffer, GetRFName(range->rf));
data/yorick-2.2.04+dfsg1/yorick/yio.c:941:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(text, "%s binary stream: ", ioStatus[file->permissions&3]);
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1486: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).
  if (ns) strcpy(n_w, s);
data/yorick-2.2.04+dfsg1/gist/gread.c:103:22:  [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 *gistPath = getenv("GISTPATH");
data/yorick-2.2.04+dfsg1/gist/gread.c:161: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 *home= getenv("HOME");
data/yorick-2.2.04+dfsg1/play/unix/config.c:60:21:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getcwd(x,y) getwd(x)
data/yorick-2.2.04+dfsg1/play/unix/dir.c:60:21:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#define getcwd(x,y) getwd(x)
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:31: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.
  return getenv(name);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:55: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.
      env = getenv(p_wkspc.c);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:81: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.
      home = getenv("HOME");
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:91:30:  [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.
    home = p_wkspc.c[0]? 0 : getenv("HOME");
data/yorick-2.2.04+dfsg1/play/unix/slinks.c:84: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 *path = getenv("PATH");
data/yorick-2.2.04+dfsg1/play/unix/usernm.c:45: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(char *);
data/yorick-2.2.04+dfsg1/play/unix/usernm.c:49: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.
  char *user = getenv("LOGNAME");
data/yorick-2.2.04+dfsg1/play/win/wdl.c:33:14:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    handle = LoadLibrary(name);
data/yorick-2.2.04+dfsg1/play/win/wpopen.c:186:11:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
   return CreateProcess(NULL, 
data/yorick-2.2.04+dfsg1/play/win/wpopen.c:186:11:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
   return CreateProcess(NULL, 
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:147:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  len = CreateProcess(NULL, cmdline, NULL, NULL, TRUE,
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:147:9:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  len = CreateProcess(NULL, cmdline, NULL, NULL, TRUE,
data/yorick-2.2.04+dfsg1/yorick/std1.c:1087:32:  [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.
static void NextRandom(double *random, long n);
data/yorick-2.2.04+dfsg1/yorick/std1.c:1093:11:  [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.
  double *random;
data/yorick-2.2.04+dfsg1/yorick/std1.c:1108:14:  [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.
  NextRandom(random, n);
data/yorick-2.2.04+dfsg1/yorick/std1.c:1171:32:  [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.
static void NextRandom(double *random, long n)
data/yorick-2.2.04+dfsg1/yorick/yorick.c:2017: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.
    extern char *getenv();
data/yorick-2.2.04+dfsg1/yorick/yorick.c:2019:40:  [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 (!(last_state&0x6000) && (yys = getenv("YYDEBUG")))
data/yorick-2.2.04+dfsg1/drat/ydrat.c:564: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[96];
data/yorick-2.2.04+dfsg1/drat/ydrat.c:568: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(line, "Drat mesh: %ld-by-%ld, zsym=%d",
data/yorick-2.2.04+dfsg1/gist/bench.c:1084: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 line[24];
data/yorick-2.2.04+dfsg1/gist/browser.c:84: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 *outNames[8];
data/yorick-2.2.04+dfsg1/gist/browser.c:496: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[80], **command= commandList;
data/yorick-2.2.04+dfsg1/gist/browser.c:498:5:  [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(line, "  Available commands are:  ");
data/yorick-2.2.04+dfsg1/gist/browser.c:514: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(line+len, ", ");
data/yorick-2.2.04+dfsg1/gist/browser.c:518:7:  [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(line, "     ");
data/yorick-2.2.04+dfsg1/gist/browser.c:541: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[256];
data/yorick-2.2.04+dfsg1/gist/browser.c:903: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 *yorn[2]= { "No  ", "Yes " };
data/yorick-2.2.04+dfsg1/gist/browser.c:904: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 *tname[3]= { "CGM", "PS ", "X  " };
data/yorick-2.2.04+dfsg1/gist/browser.c:923: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 msg[80];
data/yorick-2.2.04+dfsg1/gist/browser.c:1094: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 msg[80];
data/yorick-2.2.04+dfsg1/gist/browser.c:1095: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(msg, "gist: n%c command syntax:\n     n%c\n",
data/yorick-2.2.04+dfsg1/gist/cgm.c:206: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 *cgmFontNames[N_CGMFONTS];
data/yorick-2.2.04+dfsg1/gist/cgm.c:207: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 *cgmFontNames[N_CGMFONTS]= {
data/yorick-2.2.04+dfsg1/gist/cgm.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 description[88];
data/yorick-2.2.04+dfsg1/gist/cgm.c:233: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(description, "Gist;  ");
data/yorick-2.2.04+dfsg1/gist/cgm.c:235: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(description+31, ";  For: ");
data/yorick-2.2.04+dfsg1/gist/cgm.c:255:5:  [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(gistError, "memory manager failed in BeginMetafile");
data/yorick-2.2.04+dfsg1/gist/cgm.c:262:5:  [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(gistError, "unable to create CGM output");
data/yorick-2.2.04+dfsg1/gist/cgm.c:420: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 page[30];
data/yorick-2.2.04+dfsg1/gist/cgm.c:450: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(page, "Page %d", cgmEngine->currentPage);
data/yorick-2.2.04+dfsg1/gist/cgm.c:1460:5:  [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(gistError, "memory manager failed in GpCGMEngine");
data/yorick-2.2.04+dfsg1/gist/cgmin.c:87: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 metafileName[256];                    /* from BEGIN METAFILE */
data/yorick-2.2.04+dfsg1/gist/cgmin.c:88: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 pictureName[256];          /* from most recent BEGIN PICTURE */
data/yorick-2.2.04+dfsg1/gist/cgmin.c:89: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 metafileDescription[256];       /* from METAFILE DESCRIPTION */
data/yorick-2.2.04+dfsg1/gist/cgmin.c:606: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 msg[80];
data/yorick-2.2.04+dfsg1/gist/cgmin.c:649:11:  [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, buf, nbytes);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:654: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(out, buf, n);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:757:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (out) memcpy(out, buf, nbytes);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:762:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          if (out) memcpy(out, buf, n), out+=n;
data/yorick-2.2.04+dfsg1/gist/cgmin.c:929: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 fontName[256];
data/yorick-2.2.04+dfsg1/gist/cgmin.c:968: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(paramList+nTot, currentCmd, n);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1108:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if (nChars>0) memcpy(text, pasctxt, nChars);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1156: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 cgmText[256];
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1620: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(cmdString, paramList, nOctets);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1798: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.
          char msg[80];
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1800:11:  [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(msg,
data/yorick-2.2.04+dfsg1/gist/draw.c:695: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 levelLegend[32];
data/yorick-2.2.04+dfsg1/gist/draw.c:802:11:  [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(curLegend, "\001: %.4g", *levelValue);
data/yorick-2.2.04+dfsg1/gist/draw.c:915:5:  [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(gistError, "memory manager failed in Gd function");
data/yorick-2.2.04+dfsg1/gist/draw.c:917:5:  [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(gistError, "currentDr not set in Gd function");
data/yorick-2.2.04+dfsg1/gist/draw.c:927:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  else if (orig) memcpy(px, orig, size);
data/yorick-2.2.04+dfsg1/gist/draw.c:1262: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(el->colors, colors, len);
data/yorick-2.2.04+dfsg1/gist/draw.c:1267: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(newcols, colors, rowSize);
data/yorick-2.2.04+dfsg1/gist/draw.c:1309: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(el->colors, colors, ncol);
data/yorick-2.2.04+dfsg1/gist/draw0.c:977:5:  [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(gistError, "memory manager failed in Gd log function");
data/yorick-2.2.04+dfsg1/gist/draw0.c:994:5:  [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(gistError, "memory manager failed in Gd_log function");
data/yorick-2.2.04+dfsg1/gist/eps.c:29: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[256];
data/yorick-2.2.04+dfsg1/gist/eps.c:72: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(line, "%%%%BoundingBox: %d %d %d %d\n", xll, yll, xur, yur);
data/yorick-2.2.04+dfsg1/gist/gist.c:58: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 gistError[128]= ""; /* most recent error message */
data/yorick-2.2.04+dfsg1/gist/gist.c:260: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(gistError, "memory manager failed in gist.c function");
data/yorick-2.2.04+dfsg1/gist/gist.c:448: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 markText[2];
data/yorick-2.2.04+dfsg1/gist/gist.c:542: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 text[2];
data/yorick-2.2.04+dfsg1/gist/gist.h:33: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.
PLUG_API char gistError[128];  /* most recent error message */
data/yorick-2.2.04+dfsg1/gist/gread.c:211:5:  [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(gistError, "unable to open file ");
data/yorick-2.2.04+dfsg1/gist/gread.c:221:3:  [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(gistError, " file format error in ");
data/yorick-2.2.04+dfsg1/gist/gread.c:225: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[137];  /* longest allowed line is 136 characters */
data/yorick-2.2.04+dfsg1/gist/gread.c:372: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(gistError, "memory manager failed to get space for palette");
data/yorick-2.2.04+dfsg1/gist/gread.c:471: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 legendString[41];
data/yorick-2.2.04+dfsg1/gist/ps.c:27: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[80];  /* no lines longer than 78 characters! */
data/yorick-2.2.04+dfsg1/gist/ps.c:118:14:  [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 (!psps) strcpy(gistError, "unable to open PostScript prolog ps.ps");
data/yorick-2.2.04+dfsg1/gist/ps.c:119:14:  [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 (!file) strcpy(gistError, "unable to create PostScript output file");
data/yorick-2.2.04+dfsg1/gist/ps.c:128: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(gistError, "bad PostScript prolog format in ps.ps??");
data/yorick-2.2.04+dfsg1/gist/ps.c:231:5:  [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(gistError, "p_fputs failed writing PostScript file");
data/yorick-2.2.04+dfsg1/gist/ps.c:272: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(line, "%%%%Page: %d %d", currentPage, currentPage);
data/yorick-2.2.04+dfsg1/gist/ps.c:296: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(line, "%d CT", nColors);
data/yorick-2.2.04+dfsg1/gist/ps.c:300: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(line, "%06lx", color);
data/yorick-2.2.04+dfsg1/gist/ps.c:364: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(line, "%d %d %d %d CLON", xur-xll, yur-yll, xll, yll);
data/yorick-2.2.04+dfsg1/gist/ps.c:404: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(line, "%%%%PageBoundingBox: %d %d %d %d", xll, yll, xur, yur);
data/yorick-2.2.04+dfsg1/gist/ps.c:414: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 hexChar[17]= "0123456789abcdef";
data/yorick-2.2.04+dfsg1/gist/ps.c:512: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 *psFontNames[N_PSFONTS]= {
data/yorick-2.2.04+dfsg1/gist/ps.c:534: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(line, "%%%%Pages: %d", psEngine->currentPage-1);
data/yorick-2.2.04+dfsg1/gist/ps.c:548: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(line, "%%%%BoundingBox: %d %d %d %d", xll, yll, xur, yur);
data/yorick-2.2.04+dfsg1/gist/ps.c:552:5:  [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(line, "%%DocumentFonts: ");
data/yorick-2.2.04+dfsg1/gist/ps.c:558: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(line, "%%+ ");
data/yorick-2.2.04+dfsg1/gist/ps.c:585: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 *colorCommands[14]= {
data/yorick-2.2.04+dfsg1/gist/ps.c:612: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(line, "%ld C", c);
data/yorick-2.2.04+dfsg1/gist/ps.c:619: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(line, "16#%lx C", color);
data/yorick-2.2.04+dfsg1/gist/ps.c:636: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(line, "%d LW", lwidth);
data/yorick-2.2.04+dfsg1/gist/ps.c:650: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(line, "%d DSH", ltype-1);
data/yorick-2.2.04+dfsg1/gist/ps.c:686: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(line, "%%%%BeginData: %ld ASCII Lines", nLines+1);
data/yorick-2.2.04+dfsg1/gist/ps.c:721: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 *psFontCommands[N_PSFONTS]= {
data/yorick-2.2.04+dfsg1/gist/ps.c:737: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(line, "%d %d FNT", ptSz, lnSp);
data/yorick-2.2.04+dfsg1/gist/ps.c:755: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 typeString[8];
data/yorick-2.2.04+dfsg1/gist/ps.c:775: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(typeString, "%d", type-1);
data/yorick-2.2.04+dfsg1/gist/ps.c:781: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(line, "%%%%BeginData: %ld ASCII Lines", nLines+1);
data/yorick-2.2.04+dfsg1/gist/ps.c:807: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 *psHCommands[3]= { "/LF", "/CN", "/RT" };
data/yorick-2.2.04+dfsg1/gist/ps.c:808: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 *psVCommands[5]= { "/TP", "/CP", "/HF", "/BA", "/BT" };
data/yorick-2.2.04+dfsg1/gist/ps.c:981: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.
            strcpy(now, "\\024");  /* DC4 is ps.ps escape char */
data/yorick-2.2.04+dfsg1/gist/ps.c:996:15:  [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(now, "\\021");  /* DC1 is ps.ps escape char */
data/yorick-2.2.04+dfsg1/gist/ps.c:1004:15:  [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(now, "\\021\\022");  /* DC1DC2 is ps.ps escape seq */
data/yorick-2.2.04+dfsg1/gist/ps.c:1017:15:  [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(now, "\\021");  /* DC1 is ps.ps escape char */
data/yorick-2.2.04+dfsg1/gist/ps.c:1025:15:  [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(now, "\\021\\023");  /* DC1DC3 is ps.ps escape seq */
data/yorick-2.2.04+dfsg1/gist/ps.c:1051:11:  [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(now, "\\%03o", (int)((unsigned char)c));
data/yorick-2.2.04+dfsg1/gist/ps.c:1061:7:  [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(now, "\\021");  /* DC1 is ps.ps escape char */
data/yorick-2.2.04+dfsg1/gist/ps.c:1079: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(line, "] %d %d %d TR", angle, ix, iy);
data/yorick-2.2.04+dfsg1/gist/ps.c:1118: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(line, "%%%%BeginData: %ld ASCII Lines", nLines+1);
data/yorick-2.2.04+dfsg1/gist/ps.c:1122:29:  [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.
  if (gistA.e.type==L_NONE) sprintf(line, "%ld F", n);
data/yorick-2.2.04+dfsg1/gist/ps.c:1123: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.
  else sprintf(line, "%ld E", n);
data/yorick-2.2.04+dfsg1/gist/ps.c:1240: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(line, "%d %d %d %d %d %d",
data/yorick-2.2.04+dfsg1/gist/ps.c:1244: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(line, "%d %d %d %d %d %d %d",
data/yorick-2.2.04+dfsg1/gist/ps.c:1262: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(line, "%%%%BeginData: %ld ASCII Lines", nLines+1);
data/yorick-2.2.04+dfsg1/gist/ps.c:1331: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(line, "%%%%BeginData: %ld ASCII Lines", nLines+1);
data/yorick-2.2.04+dfsg1/gist/ps.c:1335: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(line, "%ld D", n);
data/yorick-2.2.04+dfsg1/gist/ps.c:1379:5:  [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(gistError, "memory manager failed in GpPSEngine");
data/yorick-2.2.04+dfsg1/gist/ps.h:71: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[80];   /* buffer in which to build current output line */
data/yorick-2.2.04+dfsg1/gist/tick.c:760: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 overflow[32];
data/yorick-2.2.04+dfsg1/gist/tick.c:761: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 fixedFormat[16];   /* e.g.- " %+05.0f" */
data/yorick-2.2.04+dfsg1/gist/tick.c:787: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(exponent, "E%+.0f", itick0-1.0);
data/yorick-2.2.04+dfsg1/gist/tick.c:824: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(exponent, "E%+d", xPower);
data/yorick-2.2.04+dfsg1/gist/tick.c:825: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(fixedFormat, " %%+0%d.0f", 2+iPower);
data/yorick-2.2.04+dfsg1/gist/tick.c:844: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(fixedFormat, " %%+0%d.0f", 2+iDigits);
data/yorick-2.2.04+dfsg1/gist/tick.c:850: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(fixedFormat, "%%+0%d.0f", 2+iPower);
data/yorick-2.2.04+dfsg1/gist/tick.c:855: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(overflow, "x0= %+.0fE%+d", origin, xPower);
data/yorick-2.2.04+dfsg1/gist/tick.c:912: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 *src, *dst, scratch[32];
data/yorick-2.2.04+dfsg1/gist/tick.c:950: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 label[32], expspace[16], *exponent;
data/yorick-2.2.04+dfsg1/gist/tick.c:969:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    altflag= !altlabel((char *)0, ticks[i]);
data/yorick-2.2.04+dfsg1/gist/tick.c:985: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(fixedFormat, "%%.%df", -subPower[j]);
data/yorick-2.2.04+dfsg1/gist/tick.c:1033: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 label[32], expspace[16], *exponent;
data/yorick-2.2.04+dfsg1/gist/tick.c:1055:5:  [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(exponent, "y0+?");
data/yorick-2.2.04+dfsg1/gist/tick.c:1060:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    altflag= !altlabel((char *)0, ticks[i]);
data/yorick-2.2.04+dfsg1/gist/tick.c:1076: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(fixedFormat, "%%.%df", -subPower[j]);
data/yorick-2.2.04+dfsg1/gist/tick60.c:111: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(label, "%d", val-180);
data/yorick-2.2.04+dfsg1/gist/xbasic.c:1379:5:  [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(gistError, "memory manager failed in GxEngine");
data/yorick-2.2.04+dfsg1/gist/xbasic.c:1706: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 msg[80];
data/yorick-2.2.04+dfsg1/gist/xfancy.c:136: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(fxe->msgText, "Press 1, 2, 3 to zoom in, pan, zoom out");
data/yorick-2.2.04+dfsg1/gist/xfancy.c:455: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 format[24];  /* e.g.- "%s%2d (%11.3e, %11.3e)" */
data/yorick-2.2.04+dfsg1/gist/xfancy.c:456: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 xFormat[16], yFormat[16], *f1, *f2;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:893: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(format, "%%%d.%de", 8+n, n);
data/yorick-2.2.04+dfsg1/gist/xfancy.c:904: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(format, "%%%d.%df", pre+post+3, post);
data/yorick-2.2.04+dfsg1/gist/xfancy.h:32: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 msgText[96]; /* current text displayed in message window */
data/yorick-2.2.04+dfsg1/hex/yhex.c:318: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[96];
data/yorick-2.2.04+dfsg1/hex/yhex.c:320: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(line, "hex mesh: %ld blocks, %ld nodes", yhx->mesh.nblks,
data/yorick-2.2.04+dfsg1/matrix/dgels.c:542: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          transt, side_trans[3];
data/yorick-2.2.04+dfsg1/matrix/dgels.c:1328: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 side_trans[3];
data/yorick-2.2.04+dfsg1/matrix/dgesv.c:802: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        c2[3], c4[3];
data/yorick-2.2.04+dfsg1/matrix/dgesv.c:803: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        c3[4];
data/yorick-2.2.04+dfsg1/matrix/dgesv.c:804: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        subnam[6];
data/yorick-2.2.04+dfsg1/matrix/dgesv2.c:75: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 job_u_vt[3];
data/yorick-2.2.04+dfsg1/matrix/dgesvd.c:193: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 job_u_vt[3];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:80: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 mperr_msg[MAX_ERR_MSG];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:348:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (type == MPY_STRING) buf = ((char **)buf)[0] = p_malloc((long)n);
data/yorick-2.2.04+dfsg1/mpy/mpy.c:362:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (type == MPY_STRING) buf = ((char **)buf)[0] = p_malloc((long)n);
data/yorick-2.2.04+dfsg1/mpy/mpy.c:710: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.
      arg = ((char **)arg)[0];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:719:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          arg = ((char **)arg)[0];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:829: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 yuck[16];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:1114: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.
  static char msg_boss[MAX_ERR_MSG];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:1137: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.
  static char msg_staff[32];
data/yorick-2.2.04+dfsg1/mpy/mpy.c:1184: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 t[2*sizeof(long)];
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:27: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 *mpy_fake_argv[3] = {"--no-paths", "-batch", 0};
data/yorick-2.2.04+dfsg1/play/any/bitrev.c:14: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 p_bit_rev[256] = {
data/yorick-2.2.04+dfsg1/play/any/hashtest.c:30: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[120];
data/yorick-2.2.04+dfsg1/play/any/hashtest.c:31: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).
    FILE *f = fopen(argv[1], "r");
data/yorick-2.2.04+dfsg1/play/any/mminit.c:31: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[MM_MIN_ALIGNMENT];
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:77:35:  [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).
    else if (argv[1][0]!='-') f = fopen(argv[1], "w");
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:79: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("numfmt.h", "w");
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:135:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    struct { char x; char y[1]; }               align_c;
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:141:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    struct { char x; char *y[1]; }              align_p;
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:151: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 c[600];
data/yorick-2.2.04+dfsg1/play/any/numfmt.c:190: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 c[8];
data/yorick-2.2.04+dfsg1/play/any/pmemcpy.c:29:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (n) memcpy(d, s, n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:171: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(p_wkspc.c, "\non_quit called, returning %d\n", app_quit);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:253:7:  [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_wkspc.c, "doing: ");
data/yorick-2.2.04+dfsg1/play/any/test2d.c:263:5:  [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_wkspc.c, "\ntest2d command not recognized: ");
data/yorick-2.2.04+dfsg1/play/any/test2d.c:301: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(p_wkspc.c, "SIGFPE handling broken: 1.0/%d = %g\n",
data/yorick-2.2.04+dfsg1/play/any/test2d.c:363: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(p_wkspc.c, "test2d: screen shape %d X %d pixels\n", sw, sh);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:391: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(p_wkspc.c, "test2d: ERROR cancelled alarm #%d rang\n", n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:398: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(p_wkspc.c,
data/yorick-2.2.04+dfsg1/play/any/test2d.c:433: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(p_wkspc.c,
data/yorick-2.2.04+dfsg1/play/any/test2d.c:452: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(p_wkspc.c, "test2d: clr alarm #%d\n", n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1010: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 cells[1200];
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1076: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 palno[8];
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1229: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(p_wkspc.c, "test2d: %d pixels X %d pixels\n", w, h);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1333: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 txt[8];
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1377: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 txt[64];
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1397: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(txt, "%03o %03o", md&0370, 1<<(b+2));
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1430: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.
        sprintf(p_wkspc.c, "test2d: menu item %d\n", win3_hi);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1454:11:  [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(p_wkspc.c, "test2d: submenu item %d\n", win4_hi);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1469: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 txt[64];
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1476: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(txt, "% 4d,% 4d  ", x, y);
data/yorick-2.2.04+dfsg1/play/play.h:210:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
PLUG_API unsigned char p_bit_rev[256];
data/yorick-2.2.04+dfsg1/play/pstdlib.h:47: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[P_WKSIZ+8];
data/yorick-2.2.04+dfsg1/play/unix/config.c:58: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 dirbuf[1024];
data/yorick-2.2.04+dfsg1/play/unix/config.c:130: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 text[1025];
data/yorick-2.2.04+dfsg1/play/unix/files.c:63: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).
  FILE *fp = fopen(u_pathname(unix_name), mode);
data/yorick-2.2.04+dfsg1/play/unix/files.c:265: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 old[P_WKSIZ+1];
data/yorick-2.2.04+dfsg1/play/unix/fpuset.c:205: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 pstate[528], *state;
data/yorick-2.2.04+dfsg1/play/unix/slinks.c:35: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[P_WKSIZ+1];
data/yorick-2.2.04+dfsg1/play/unix/usock.c:132: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 sport[NI_MAXSERV];
data/yorick-2.2.04+dfsg1/play/unix/usock.c:136: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(sport, "%d", port);
data/yorick-2.2.04+dfsg1/play/unix/usock.c:177: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 sport[NI_MAXSERV];
data/yorick-2.2.04+dfsg1/play/unix/usock.c:203: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 host[NI_MAXHOST];
data/yorick-2.2.04+dfsg1/play/win/conterm.c:71: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[256];
data/yorick-2.2.04+dfsg1/play/win/cursors.c:33: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 amsk[32], xmsk[32];
data/yorick-2.2.04+dfsg1/play/win/cygapp.c:88: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 module_name[1028];
data/yorick-2.2.04+dfsg1/play/win/files.c:51: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).
  FILE *fp = fopen(w_pathname(unix_name), mode);
data/yorick-2.2.04+dfsg1/play/win/files.c:131: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[1026];
data/yorick-2.2.04+dfsg1/play/win/files.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 old[P_WKSIZ+1];
data/yorick-2.2.04+dfsg1/play/win/getdc.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.
      static char *names[5] = { "Courier", "Times New Roman", "Helvetica",
data/yorick-2.2.04+dfsg1/play/win/mfcapp.cpp:256:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR wmodule_name[1028];
data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp:195:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR wline[16];
data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp:201:9:  [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).
    n = atoi(line)-1;
data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp:782:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR ws[80];
data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp:802:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR ws[80];
data/yorick-2.2.04+dfsg1/play/win/mfcterm.cpp:834:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR ws[1076];
data/yorick-2.2.04+dfsg1/play/win/pathnm.c:50: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 env_name[1024];
data/yorick-2.2.04+dfsg1/play/win/pathnm.c:52:7:  [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(env_name, "HOME");
data/yorick-2.2.04+dfsg1/play/win/pscr.c:131: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 *sys_cursor[P_NONE] = {
data/yorick-2.2.04+dfsg1/play/win/wsock.c:274: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 sport[NI_MAXSERV];
data/yorick-2.2.04+dfsg1/play/win/wsock.c:285: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(sport, "%d", port);
data/yorick-2.2.04+dfsg1/play/win/wsock.c:326: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 sport[NI_MAXSERV];
data/yorick-2.2.04+dfsg1/play/win/wsock.c:352: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 host[NI_MAXHOST];
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:34: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[SPAWN_MAXMSG+4];        /* i/o buffer for pipe */
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:355: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(msg, proc->o[i].buf, n);
data/yorick-2.2.04+dfsg1/play/x11/connect.c:284: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 bits[2];
data/yorick-2.2.04+dfsg1/play/x11/cursors.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 hbits[32], mbits[32], *hptr, *mptr;
data/yorick-2.2.04+dfsg1/play/x11/errors.c:18: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 x11_errmsg[90];
data/yorick-2.2.04+dfsg1/play/x11/errors.c:25:5:  [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(x11_errmsg, "Xlib: ");
data/yorick-2.2.04+dfsg1/play/x11/events.c:344: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[16];
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:57: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 nm[128], *name;
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:103: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(pnm, "%d%n", pixsize, &n);
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:196: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 *pattern[5] = {
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:251: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 nm[128], *pnm = nm;
data/yorick-2.2.04+dfsg1/play/x11/lines.c:103: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 dash[6];
data/yorick-2.2.04+dfsg1/play/x11/pals.c:124: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 used[256];
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1104: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.
  static char buf[50];
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1148: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(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1160: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(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/yorick-2.2.04+dfsg1/regexp/yregexp.h:9: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 *startp[NSUBEXP];
data/yorick-2.2.04+dfsg1/regexp/yregexp.h:10: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 *endp[NSUBEXP];
data/yorick-2.2.04+dfsg1/regexp/yregexp.h:15: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 program[1];     /* Unwarranted chumminess with compiler. */
data/yorick-2.2.04+dfsg1/yorick/ascio.c:169: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, *fmode, *fullname, filemode[8];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:224: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 message[140];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:283: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 message[80];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:284: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(message, "%d outstanding references to closed file",
data/yorick-2.2.04+dfsg1/yorick/ascio.c:428: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 *format, *keyNames[3];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:482: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 *format, *keyNames[2];
data/yorick-2.2.04+dfsg1/yorick/ascio.c: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 *keyNames[2], *q;
data/yorick-2.2.04+dfsg1/yorick/ascio.c: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 *format, *keyNames[3];
data/yorick-2.2.04+dfsg1/yorick/ascio.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 *format, *keyNames[2];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:977: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[32];
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1482:16:  [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.
  if (got_one) strcat(part, "%n");
data/yorick-2.2.04+dfsg1/yorick/autold.c:83: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 msg[120];
data/yorick-2.2.04+dfsg1/yorick/autold.c:99:5:  [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(msg, "autoload defined before triggered include: ");
data/yorick-2.2.04+dfsg1/yorick/binio.h:331: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 c[1];
data/yorick-2.2.04+dfsg1/yorick/binio.h:337: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 *q[1];  /* string */
data/yorick-2.2.04+dfsg1/yorick/binobj.c:323: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(s, t, n*base->size);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:364: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(nextByte, "%ld\001%ld\001\012",
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2011: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((char *)buf, "%ld\001%ld\001\012",
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2247: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 recordName[8];
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2249: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.
        sprintf(recordName, "__%05ld", dmiFirst+i);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2356: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.
        sprintf(nextByte, "%ld\001%ld\001", dims->origin, dims->number);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2372: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(nextByte, "%ld\001%ld\001", dims->origin, dims->number);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2397: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(nextByte, "Offset:%ld\012", 1L);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2401: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(nextByte, "Alignment:");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2416: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(nextByte, "Struct-Alignment:%d\012",
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2431: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(nextByte, "Has-Directories:%d\012",
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2436: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(nextByte, "Blocks:\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2454:11:  [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(nextByte, "@history");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2457: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.
        sprintf(nextByte, "\001%ld", dmiNumber);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2462:11:  [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(nextByte, " %ld %ld", addrs[i]+offset[j], number);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2472: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(nextByte, "__@history\001%ld", dmiNumber);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2476: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.
        sprintf(nextByte, " %ld 1", addrs[i]);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2483: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(nextByte, "\002\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2487: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(nextByte, "Casts:\012\002\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2492: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(nextByte, "Primitive-Types:\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2519:7:  [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(nextByte, "ORDER\001");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2526:13:  [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(nextByte, "%d\001", w+b);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2535:13:  [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(nextByte, "%d\001", w+b);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2542:7:  [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(nextByte, "DEFORDER\001");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2548:7:  [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(nextByte, "NO-CONV\001");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2552:7:  [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(nextByte, "FLOAT\001");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2554: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(nextByte, "%d\001", (int)((size<<3)&0xff));
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2556: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(nextByte, "%d\001", (fpLayout->expSize)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2558: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(nextByte, "%d\001", (fpLayout->manSize)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2560: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(nextByte, "%d\001", (fpLayout->sgnAddr)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2562: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(nextByte, "%d\001", (fpLayout->expAddr)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2564: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(nextByte, "%d\001", (fpLayout->manAddr)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2566: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(nextByte, "%d\001", (fpLayout->manNorm)&0xff);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2568: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(nextByte, "%ld\001", fpLayout->expBias);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2572:7:  [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(nextByte, "FIX\001");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2584: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(nextByte, "Struct-Align:%d\012",
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2627: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(buffer, "%ld\001%ld\001\012", newChart, newSymtab);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2642: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 recordName[8];
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2672: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(recordName, "__%05ld", dmiFirst);
data/yorick-2.2.04+dfsg1/yorick/cache.c:205: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(prevBuffer,
data/yorick-2.2.04+dfsg1/yorick/cache.c:333: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(&((char *)prevBlock+CACHE_HEADER)[addr-prevBlock->address],
data/yorick-2.2.04+dfsg1/yorick/clog.c:1270: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(p_wkspc.c, "\"Contents Log\"\n"); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1271: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(p_wkspc.c, "+align variable [%d]\n+align struct [%d]\n",
data/yorick-2.2.04+dfsg1/yorick/clog.c:1291: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(p_wkspc.c, "+struct "); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1293: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(p_wkspc.c, " {\n"); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1304: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(p_wkspc.c, "}\n"); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1308: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(p_wkspc.c, "+define "); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1312: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(p_wkspc.c, " standard\n"); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1314: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(p_wkspc.c, " [%ld][%d]", base->size, base->alignment);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1317:41:  [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.
        if (base->Convert!=&PDBconvert) sprintf(p_wkspc.c, "[sequential]");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1318:14:  [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.
        else sprintf(p_wkspc.c, "[pdbpointer]");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1320: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.
        sprintf(p_wkspc.c, "[%d]", base->order);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1325: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.
        sprintf(p_wkspc.c,
data/yorick-2.2.04+dfsg1/yorick/clog.c:1346:17:  [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.
  if (indent) { sprintf(p_wkspc.c, "  "); p_fputs(stream, p_wkspc.c); }
data/yorick-2.2.04+dfsg1/yorick/clog.c:1352: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(p_wkspc.c, "[%ld:%ld]",
data/yorick-2.2.04+dfsg1/yorick/clog.c:1355: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(p_wkspc.c, "[%ld]", dims->number);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1359:19:  [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.
  if (address>=0) sprintf(p_wkspc.c, "@%ld\n", address);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1378: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.
    c= (unsigned char )identifier[0];
data/yorick-2.2.04+dfsg1/yorick/clog.c:1380:20:  [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.
      if (c=='\"') sprintf(p_wkspc.c, "\\\"");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1381:25:  [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.
      else if (c=='\\') sprintf(p_wkspc.c, "\\\\");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1382:35:  [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.
      else if (c<0x20 || c>=0x7f) sprintf(p_wkspc.c, "\\%o", (int)c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1383:12:  [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.
      else sprintf(p_wkspc.c, "%c", (int)c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1390:11:  [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(p_wkspc.c, "\\\"");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1395:11:  [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(p_wkspc.c, "\\\\");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1400:11:  [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(p_wkspc.c, "\\%o", (int)c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1435: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(p_wkspc.c, "+record begin\n"); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1446:15:  [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.
    if (ncyc) sprintf(p_wkspc.c, "+record {%.9e,%ld} @%ld\n",
data/yorick-2.2.04+dfsg1/yorick/clog.c:1448: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.
    else sprintf(p_wkspc.c, "+record {%.9e,} @%ld\n", time[rec], addr[rec]);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1450:15:  [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.
    if (ncyc) sprintf(p_wkspc.c,
data/yorick-2.2.04+dfsg1/yorick/clog.c:1452: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.
    else sprintf(p_wkspc.c, "+record {,} @%ld\n", addr[rec]);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1464: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(p_wkspc.c, "+eod @%ld\n", address); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/codger.c:148: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).
  out = fopen(outname? outname : "yinit.c", "w");
data/yorick-2.2.04+dfsg1/yorick/codger.c:237: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[4];
data/yorick-2.2.04+dfsg1/yorick/codger.c:520: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).
  FILE *out = fopen(name, "w");
data/yorick-2.2.04+dfsg1/yorick/codger.c:536: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).
  FILE *in = fopen(name, "r");
data/yorick-2.2.04+dfsg1/yorick/codger.c:538: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 tmp[2048];
data/yorick-2.2.04+dfsg1/yorick/codger.c:549: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).
      in = fopen(tmp, "r");
data/yorick-2.2.04+dfsg1/yorick/codger.c:695: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.
  static char line[4096];
data/yorick-2.2.04+dfsg1/yorick/codger.c:1005: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 *proto_types[11] = {
data/yorick-2.2.04+dfsg1/yorick/codger.c:1008: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_types[11] = {
data/yorick-2.2.04+dfsg1/yorick/codger.c:1013: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 *push_result[11] = {
data/yorick-2.2.04+dfsg1/yorick/codger.c:1016: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 *push_finish[11] = {
data/yorick-2.2.04+dfsg1/yorick/codger.c:1018: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 *yarg_char[11] = {
data/yorick-2.2.04+dfsg1/yorick/codger.c:1043: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 proto[256], delim;
data/yorick-2.2.04+dfsg1/yorick/convrt.c:99:11:  [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(bd+off, md+moff, subTotal*subBase->model->size);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:101:11:  [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(md+moff, bd+off, subTotal*subBase->model->size);
data/yorick-2.2.04+dfsg1/yorick/convrt.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 foreign[160];  /* never need to read more than 10 at a time
data/yorick-2.2.04+dfsg1/yorick/convrt.c:747: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 foreign[192];  /* never need to write more than 12 at a time
data/yorick-2.2.04+dfsg1/yorick/convrt.c:852: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(dst, src, n);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:1059:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (drop==0) memcpy(dst, src, n*dstSize);
data/yorick-2.2.04+dfsg1/yorick/debug.c:340: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 lineBuf[256];
data/yorick-2.2.04+dfsg1/yorick/debug.c:341: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 stringBuf[32];
data/yorick-2.2.04+dfsg1/yorick/debug.c:718: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(lineBuf, "now at pc= %ld (of %ld), failed at pc= %ld",
data/yorick-2.2.04+dfsg1/yorick/debug.c:791: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(lineBuf, "now at pc= %ld (of %ld)",
data/yorick-2.2.04+dfsg1/yorick/debug.c:941: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(lineBuf, "Current debug level is: %d", yDebugLevel);
data/yorick-2.2.04+dfsg1/yorick/debug.c:994: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(lineBuf, "***the error occurred near pc= %ld", dbg->pcerr);
data/yorick-2.2.04+dfsg1/yorick/debug.c:1036: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(lineBuf, "[%ld]", f? (long)(pc-f->code)-2L : 0L);
data/yorick-2.2.04+dfsg1/yorick/debug.c:1052: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(lineBuf, "[%ld]", f? (long)(stack->value.pc-f->code)-2L : 0L);
data/yorick-2.2.04+dfsg1/yorick/fortrn.c:99: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 mess[128];
data/yorick-2.2.04+dfsg1/yorick/fortrn.c:108: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 mess[128];
data/yorick-2.2.04+dfsg1/yorick/fwrap.c:105: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 msg[80];
data/yorick-2.2.04+dfsg1/yorick/fwrap.c:106: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(msg, "wrapped args, %d positionals, %d keywords",
data/yorick-2.2.04+dfsg1/yorick/graph.c:89: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 *hcpNames[GH_NDEVS+1];
data/yorick-2.2.04+dfsg1/yorick/graph.c:314:9:  [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(tmpLegend+len0, ", ");
data/yorick-2.2.04+dfsg1/yorick/graph.c:318:11:  [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(tmpLegend+len0, ", ");
data/yorick-2.2.04+dfsg1/yorick/graph.c:322:13:  [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(tmpLegend+len0, ", ");
data/yorick-2.2.04+dfsg1/yorick/graph.c:465: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 *plgKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:592: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 *plmKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:646: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 *meshKeys[N_KEYWORDS+1]= { "triangle", 0 };
data/yorick-2.2.04+dfsg1/yorick/graph.c:849: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 *plcKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1050: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 *plvKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1139: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 *plfKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1295: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 *pliKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1386: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 *plfpKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1493: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 *pltKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1564: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 *pldjKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1633: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 *limKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:1837: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.
  static char buffer[20];
data/yorick-2.2.04+dfsg1/yorick/graph.c:1838: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(buffer, "Yorick %d", n);
data/yorick-2.2.04+dfsg1/yorick/graph.c:1846: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 hcpName[16];
data/yorick-2.2.04+dfsg1/yorick/graph.c:1847:22:  [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 (!hcpPSdefault) strcpy(hcpName, "Aa00.cgm");
data/yorick-2.2.04+dfsg1/yorick/graph.c:1848: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.
  else strcpy(hcpName, "Aa00.ps");
data/yorick-2.2.04+dfsg1/yorick/graph.c:1943: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 *windowKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:2306: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 *hcpKeys[N_KEYWORDS+1]= { "dump", "ps", 0 };
data/yorick-2.2.04+dfsg1/yorick/graph.c:2401: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 *paletteKeys[N_KEYWORDS+1]= { "ntsc", "query", 0 };
data/yorick-2.2.04+dfsg1/yorick/graph.c:2606: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 specialMarkers[5]= ".+*ox";
data/yorick-2.2.04+dfsg1/yorick/graph.c:2650: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 line[120];
data/yorick-2.2.04+dfsg1/yorick/graph.c:2654: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.
        sprintf(line, "<no such object>  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2657:11:  [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(line, "  contour# %d", n_contour+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2663: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.
        sprintf(line, "plg  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2666:11:  [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(line, "  contour# %d", n_contour+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2669:11:  [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(line, "  at level value %g", gistD.levels[n_contour]);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2677: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.
        sprintf(line, "rays= %d,", gistA.dl.rays);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2680: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.
        sprintf(line,
data/yorick-2.2.04+dfsg1/yorick/graph.c:2686: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.
        sprintf(line, "smooth= %d,  closed= %d",
data/yorick-2.2.04+dfsg1/yorick/graph.c:2692: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.
        sprintf(line, "pldj  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2700: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.
        sprintf(line, "plt  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2705: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.
        sprintf(line, "text= %.80s", gistD.text);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2710: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.
        sprintf(line, "plm  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2717: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.
        sprintf(line, "boundary= %d, inhibit= %d", gistD.boundary,
data/yorick-2.2.04+dfsg1/yorick/graph.c:2723: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.
        sprintf(line, "plf  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2727: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.
        sprintf(line, "edges= %d, e", gistA.e.type!=L_NONE);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2730: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.
        sprintf(line, "ewidth= %.2f", Safe_dbl(gistA.e.width));
data/yorick-2.2.04+dfsg1/yorick/graph.c:2736: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.
        sprintf(line, "plv  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2741: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.
        sprintf(line, "width= %.2f,", Safe_dbl(gistA.l.width));
data/yorick-2.2.04+dfsg1/yorick/graph.c:2744: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.
        sprintf(line, "hollow= %d,  aspect= %.4f,", gistA.vect.hollow,
data/yorick-2.2.04+dfsg1/yorick/graph.c:2749: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.
        sprintf(line, "scale= %g", gistD.scale);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2755: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.
        sprintf(line, "plc  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2762: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.
        sprintf(line, "smooth= %d,", gistA.dl.smooth);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2766: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.
        sprintf(line, "%d contour levels, levs=", gistD.nLevels);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2772:13:  [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(line, "%g", gistD.levels[i]);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2783: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.
        sprintf(line, "pli  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2787: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.
        sprintf(line, "x0= %g,  y0= %g,  x1= %g,  y1= %g",
data/yorick-2.2.04+dfsg1/yorick/graph.c:2793: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.
        sprintf(line, "plfp  element# %d", n_element+1);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2797: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.
        sprintf(line, "%d polygons", gistD.n);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2826: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.
        legend= (char **)p[1];
data/yorick-2.2.04+dfsg1/yorick/graph.c:2966: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[16];
data/yorick-2.2.04+dfsg1/yorick/graph.c:2985: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 marker[2];
data/yorick-2.2.04+dfsg1/yorick/graph.c:3005: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 marker[5];
data/yorick-2.2.04+dfsg1/yorick/graph.c:3007: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(line, "hide= %d,", gistD.hidden);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3026: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(line, "color= %d,", color);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3053: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(line, ",  width= %.2f", Safe_dbl(gistA.l.width));
data/yorick-2.2.04+dfsg1/yorick/graph.c:3060: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(line, "marks= %d,  mcolor= 0x%02lx,  ",
data/yorick-2.2.04+dfsg1/yorick/graph.c:3064: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(line, "marker= '\\%o',", gistA.m.type);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3066: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(line, "marker= '%c',", gistA.m.type);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3069: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(line,
data/yorick-2.2.04+dfsg1/yorick/graph.c:3079: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(line, "region= %d", gistD.region);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3111: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 *editKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:3334: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 *dfltKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:3456: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 *gridKeys[N_KEYWORDS+1]= {
data/yorick-2.2.04+dfsg1/yorick/graph.c:3659: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 *bsKeys[N_KEYWORDS+1]= { "top", "cmin", "cmax", 0 };
data/yorick-2.2.04+dfsg1/yorick/graph.c:3702: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 *cntrKeys[N_KEYWORDS+1]= { "triangle", "region", 0 };
data/yorick-2.2.04+dfsg1/yorick/graph.c:3921: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 *defaultPrompts[2]= {
data/yorick-2.2.04+dfsg1/yorick/mdigest.c:232: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(&ctx->buffer[j], data, i);
data/yorick-2.2.04+dfsg1/yorick/mdigest.c:244:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  if (nbytes) memcpy(&ctx->buffer[j], data, nbytes);
data/yorick-2.2.04+dfsg1/yorick/mdigest.h:26: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 buffer[64];
data/yorick-2.2.04+dfsg1/yorick/oxy.c:102: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 msg[256];
data/yorick-2.2.04+dfsg1/yorick/oxy.c:104: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(msg, "object [%ld]: ", count);
data/yorick-2.2.04+dfsg1/yorick/spawn.c:94: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 *argv[1];
data/yorick-2.2.04+dfsg1/yorick/std0.c:115: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(p_wkspc.c, "memory manager failed to allocate %ld bytes", n);
data/yorick-2.2.04+dfsg1/yorick/std0.c:272:7:  [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(path+i+1, "i0/std.i");
data/yorick-2.2.04+dfsg1/yorick/std0.c:2105: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[80];
data/yorick-2.2.04+dfsg1/yorick/std1.c:1363: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 *histKeys[N_KEYWORDS+1]= { "top", 0 };
data/yorick-2.2.04+dfsg1/yorick/std2.c:739: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 *wrtKeys[2]= { "as", 0 };
data/yorick-2.2.04+dfsg1/yorick/std2.c:1583: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 *crc_names[5] = { "pkzip", "cksum", "crc24", "arc", "kermit" };
data/yorick-2.2.04+dfsg1/yorick/task.c:63: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 yErrorMsg[192+12];
data/yorick-2.2.04+dfsg1/yorick/task.c:64: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 yWarningMsg[192];
data/yorick-2.2.04+dfsg1/yorick/task.c:1197:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (nbytes) memcpy(((y_vopen_t *)file)->array->value.c+i, buf, nbytes);
data/yorick-2.2.04+dfsg1/yorick/task.c:1618: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(yWarningMsg, "WARNING ");
data/yorick-2.2.04+dfsg1/yorick/task.c:1746:5:  [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(yErrorMsg, "ERROR (");
data/yorick-2.2.04+dfsg1/yorick/task.c:1748:5:  [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(yErrorMsg, "Up to (");
data/yorick-2.2.04+dfsg1/yorick/task.c:1751: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 relpc[32];
data/yorick-2.2.04+dfsg1/yorick/task.c:1752: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(relpc, "[%ld]", (long)(pcDebug-func->code));
data/yorick-2.2.04+dfsg1/yorick/task.c:1755:3:  [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(yErrorMsg, ") ");
data/yorick-2.2.04+dfsg1/yorick/task.c:2038: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 tmsg[144];
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1246: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[8];
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1284: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(ops, &y_uo_ops, sizeof(Operations));
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1311: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(ops, &y_uo_ops, sizeof(Operations));
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1485: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(&obj->uot, &y_scratch_obj, sizeof(y_userobj_t));
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1623: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 msg[192];
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1639: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(msg+nmsg, "%ld", n);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1654: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 msg[192];
data/yorick-2.2.04+dfsg1/yorick/ydata.c:52: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(result->value.c, array->value.c, number*base->size);
data/yorick-2.2.04+dfsg1/yorick/ydata.c:202: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 warning[72];
data/yorick-2.2.04+dfsg1/yorick/ydata.c:207: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(warning, "freeing builtin function ");
data/yorick-2.2.04+dfsg1/yorick/yhash.c:181: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.
  table->names= p_malloc(sizeof(char *)*hashCutoff[i]);
data/yorick-2.2.04+dfsg1/yorick/yinput.c:645: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 pErrorMsg[128];
data/yorick-2.2.04+dfsg1/yorick/yinput.c:657: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.
  else sprintf(pErrorMsg, "  LINE: %ld  FILE: ", lineNumber);
data/yorick-2.2.04+dfsg1/yorick/yinput.c:669: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(pErrorMsg, "SYNTAX: ");
data/yorick-2.2.04+dfsg1/yorick/yio.c:224: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 nBuffer[120];   /* buffer to hold numbers from sprintf */
data/yorick-2.2.04+dfsg1/yorick/yio.c:347: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 savec[2];
data/yorick-2.2.04+dfsg1/yorick/yio.c:444: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(nBuffer, "builtin ");
data/yorick-2.2.04+dfsg1/yorick/yio.c:446:15:  [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 (len>64) strcpy(nBuffer+72, "...");
data/yorick-2.2.04+dfsg1/yorick/yio.c:447:3:  [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(nBuffer, "()");
data/yorick-2.2.04+dfsg1/yorick/yio.c:457: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(nBuffer, "Object of type: ");
data/yorick-2.2.04+dfsg1/yorick/yio.c:459:15:  [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 (len>56) strcpy(nBuffer+72, "...");
data/yorick-2.2.04+dfsg1/yorick/yio.c:505: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 *typeDefault[8]= {
data/yorick-2.2.04+dfsg1/yorick/yio.c:562: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 **typeFormat[8]= {
data/yorick-2.2.04+dfsg1/yorick/yio.c:653:18:  [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 (esc=='\\') strcpy(s, "\\\\");
data/yorick-2.2.04+dfsg1/yorick/yio.c:654:23:  [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.
  else if (esc=='\"') strcpy(s, "\\\"");
data/yorick-2.2.04+dfsg1/yorick/yio.c:655:23:  [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.
  else if (esc=='\n') strcpy(s, "\\n");
data/yorick-2.2.04+dfsg1/yorick/yio.c:656:23:  [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.
  else if (esc=='\t') strcpy(s, "\\t");
data/yorick-2.2.04+dfsg1/yorick/yio.c:657:23:  [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.
  else if (esc=='\a') strcpy(s, "\\a");
data/yorick-2.2.04+dfsg1/yorick/yio.c:658:23:  [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.
  else if (esc=='\f') strcpy(s, "\\f");
data/yorick-2.2.04+dfsg1/yorick/yio.c:659:23:  [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.
  else if (esc=='\r') strcpy(s, "\\r");
data/yorick-2.2.04+dfsg1/yorick/yio.c:660:23:  [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.
  else if (esc=='\v') strcpy(s, "\\v");
data/yorick-2.2.04+dfsg1/yorick/yio.c:661:23:  [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.
  else if (esc=='\b') strcpy(s, "\\b");
data/yorick-2.2.04+dfsg1/yorick/yio.c:662: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.
  else { sprintf(s, "\\%03o", esc&0xff); n= 4; }
data/yorick-2.2.04+dfsg1/yorick/yio.c:806:5:  [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(nBuffer, "+:");
data/yorick-2.2.04+dfsg1/yorick/yio.c:809:5:  [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(nBuffer, "-:");
data/yorick-2.2.04+dfsg1/yorick/yio.c:825: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(nBuffer+len, ":%ld", range->max);
data/yorick-2.2.04+dfsg1/yorick/yio.c:828: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(nBuffer+len, "%ld:", range->min);
data/yorick-2.2.04+dfsg1/yorick/yio.c:830: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(nBuffer+len, "%ld:%ld", range->min, range->max);
data/yorick-2.2.04+dfsg1/yorick/yio.c:834: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(nBuffer+len, ":%ld", range->inc);
data/yorick-2.2.04+dfsg1/yorick/yio.c:857: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(nBuffer+len, "%ld:%ld",
data/yorick-2.2.04+dfsg1/yorick/yio.c:861: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(nBuffer+len, "%ld", dims->number);
data/yorick-2.2.04+dfsg1/yorick/yio.c:876:7:  [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(nBuffer+len, "...");
data/yorick-2.2.04+dfsg1/yorick/yio.c:928: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 text[80];
data/yorick-2.2.04+dfsg1/yorick/yio.c:944:5:  [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(text, "binary stream <closed>: ");
data/yorick-2.2.04+dfsg1/yorick/yio.c:965: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(text, "  Current record is number %ld of %ld",
data/yorick-2.2.04+dfsg1/yorick/yio.c:979:11:  [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(text, "  Time, cycle of current record: %.6e, %ld",
data/yorick-2.2.04+dfsg1/yorick/yio.c:982:11:  [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(text, "  Time of current record: %.6e",
data/yorick-2.2.04+dfsg1/yorick/yio.c:987:11:  [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(text, "  Cycle of current record: %ld",
data/yorick-2.2.04+dfsg1/yorick/yio.c:990:11:  [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(text, "  <No time or cycle available>");
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1898: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 errorMsg[81];
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1911:5:  [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(msg, " near ");
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1916:7:  [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(msg, "<EOF>");
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1918:7:  [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(msg, "<EOL>");
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1920:7:  [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(msg, "\"...\"");
data/yorick-2.2.04+dfsg1/yorick/ystr.c:51: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 ys_table[256] =
data/yorick-2.2.04+dfsg1/yorick/ystr.c:77:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    t = (unsigned char *)q[0];
data/yorick-2.2.04+dfsg1/yorick/ystr.c:619: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 is_delim[256];
data/yorick-2.2.04+dfsg1/yorick/ystr.c:1043: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 msg[80], *errmsg;
data/yorick-2.2.04+dfsg1/yorick/ystr.c:1044:7:  [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(msg, "strgrep: pattern failed to compile: ");
data/yorick-2.2.04+dfsg1/gist/browser.c:502: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 (len+strlen(*command) > 72) {
data/yorick-2.2.04+dfsg1/gist/browser.c:503:11:  [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(line+len, "\n");
data/yorick-2.2.04+dfsg1/gist/browser.c:508: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).
        len+= strlen(*command++);
data/yorick-2.2.04+dfsg1/gist/browser.c:510:11:  [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(line+len, "\n");
data/yorick-2.2.04+dfsg1/gist/browser.c:549: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(line, lin, 255);
data/yorick-2.2.04+dfsg1/gist/browser.c:578: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).
  len= name? (int)strlen(name) : 0;
data/yorick-2.2.04+dfsg1/gist/cgm.c:152: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).
  len= len>=0? len : (text? strlen(text) : 0);
data/yorick-2.2.04+dfsg1/gist/cgm.c:230: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).
  lcmnd= cgm->e.name? strlen(cgm->e.name) : 0;
data/yorick-2.2.04+dfsg1/gist/cgm.c:236: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(description, p_getuser(), 50L);
data/yorick-2.2.04+dfsg1/gist/cgm.c:237: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).
  lpart= strlen(description);
data/yorick-2.2.04+dfsg1/gist/cgm.c:240: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).
    lfonts+= lfont[i]= strlen(cgmFontNames[i]);
data/yorick-2.2.04+dfsg1/gist/cgm.c:451: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).
  lpage= strlen(page);
data/yorick-2.2.04+dfsg1/gist/cgm.c:1421: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).
  int i, len= filename? strlen(filename) : 0;
data/yorick-2.2.04+dfsg1/gist/cgm.c:1444: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).
  long flen= file? strlen(file) : 0;
data/yorick-2.2.04+dfsg1/gist/cgmin.c:264: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).
  int i, len= filename? strlen(filename) : 0;
data/yorick-2.2.04+dfsg1/gist/cgmin.c:283: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).
  CGM *cgm= (CGM *)p_malloc(sizeof(CGM)+strlen(name)+1);
data/yorick-2.2.04+dfsg1/gist/cgmin.c:1182: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).
    long len= strlen(cgmText);
data/yorick-2.2.04+dfsg1/gist/draw.c:805: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).
          nRemaining= strlen(curLegend);
data/yorick-2.2.04+dfsg1/gist/draw.c:858:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(legendText+lenLegends, curLegend, nc);
data/yorick-2.2.04+dfsg1/gist/draw.c:982: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).
    element->legend= Copy1(gistD.legend, strlen(gistD.legend)+1);
data/yorick-2.2.04+dfsg1/gist/draw.c:1206: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).
  el->text= Copy1(text, strlen(text)+1);
data/yorick-2.2.04+dfsg1/gist/draw.c:1715: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).
    sys->el.legend= Copy1(gistD.legend, strlen(gistD.legend)+1);
data/yorick-2.2.04+dfsg1/gist/engine.c:50: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).
  long lname= name? strlen(name) : 0;
data/yorick-2.2.04+dfsg1/gist/gread.c:104: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).
    int len = gistPath? strlen(gistPath) : 0;
data/yorick-2.2.04+dfsg1/gist/gread.c:105: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).
    int len0 = g_argv0? strlen(g_argv0) : 0;
data/yorick-2.2.04+dfsg1/gist/gread.c:106: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).
    int lend = gistPathDefault? strlen(gistPathDefault) : 0;
data/yorick-2.2.04+dfsg1/gist/gread.c:129:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(place, g_argv0, ++len);
data/yorick-2.2.04+dfsg1/gist/gread.c:131: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(place, "g");
data/yorick-2.2.04+dfsg1/gist/gread.c:142: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).
  int nlen= strlen(name);
data/yorick-2.2.04+dfsg1/gist/gread.c:163: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 (home && (hlen= strlen(home))<1024) {
data/yorick-2.2.04+dfsg1/gist/gread.c:178:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(now, gistPath, len);
data/yorick-2.2.04+dfsg1/gist/gread.c:212:5:  [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(gistError, name, 100);
data/yorick-2.2.04+dfsg1/gist/gread.c:222: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(gistError, name, 127-strlen(gistError));
data/yorick-2.2.04+dfsg1/gist/gread.c:222: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).
  strncat(gistError, name, 127-strlen(gistError));
data/yorick-2.2.04+dfsg1/gist/gread.c:483:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(legendString, input, nc);
data/yorick-2.2.04+dfsg1/gist/ps.c:93:5:  [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(line, titleIs, 60L);
data/yorick-2.2.04+dfsg1/gist/ps.c:94: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(line, "\n");
data/yorick-2.2.04+dfsg1/gist/ps.c:99:5:  [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(line, p_getuser(), 60L);
data/yorick-2.2.04+dfsg1/gist/ps.c:100: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(line, "\n");
data/yorick-2.2.04+dfsg1/gist/ps.c:241: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).
  long len= s? strlen(s) : 0;
data/yorick-2.2.04+dfsg1/gist/ps.c:1363: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).
  long flen= file? strlen(file) : 0;
data/yorick-2.2.04+dfsg1/gist/xfancy.c:428: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).
    int len= (int)strlen(msg);
data/yorick-2.2.04+dfsg1/mpy/mpy.c:416: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).
        for (i=0 ; i<nq ; i++) cdims[1] += 1 + (q[i]? strlen(q[i]) : 0);
data/yorick-2.2.04+dfsg1/mpy/mpy.c:712: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).
      n = strlen(arg) + 1;
data/yorick-2.2.04+dfsg1/mpy/mpy.c:721: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).
          n = strlen(arg) + 1;
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:29: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).
#define STRLEN_P_1(s) ((s)?strlen(s):0)+1
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:31:64:  [1] (buffer) strlen:
  Does not handle 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 STRGET_TXT(s,t) if(!t[0])t++,s=0;else s=p_strcpy(t),t+=strlen(t)+1
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:199: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).
    if (file) len = strlen(filename);
data/yorick-2.2.04+dfsg1/mpy/mpyfile.c:222: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(filename);
data/yorick-2.2.04+dfsg1/play/any/hashtest.c:38: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).
      i = strlen(line);
data/yorick-2.2.04+dfsg1/play/any/hashtest.c:88:53:  [1] (buffer) strlen:
  Does not handle 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&1)? strlen(syms[i]) : 0);
data/yorick-2.2.04+dfsg1/play/any/pstrcpy.c:19: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).
    char *d = p_malloc(strlen(s)+1);
data/yorick-2.2.04+dfsg1/play/any/pstrncat.c:19: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).
    size_t n1 = strlen(s2);
data/yorick-2.2.04+dfsg1/play/any/pstrncat.c:23: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).
    n1 = s1? strlen(s1) : 0;
data/yorick-2.2.04+dfsg1/play/any/pstrncat.c:27:12:  [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.
    if (n) strncat(d+n1, s2, n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:254:7:  [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(p_wkspc.c, input_line, n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:255:7:  [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(p_wkspc.c, "\n");
data/yorick-2.2.04+dfsg1/play/any/test2d.c:264:5:  [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(p_wkspc.c, input_line, n);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:265: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(p_wkspc.c, "\n");
data/yorick-2.2.04+dfsg1/play/any/test2d.c:470: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).
    long len = strlen(path);
data/yorick-2.2.04+dfsg1/play/any/test2d.c:475:9:  [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(p_wkspc.c, name, strlen(name));
data/yorick-2.2.04+dfsg1/play/any/test2d.c:475: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).
        strncat(p_wkspc.c, name, strlen(name));
data/yorick-2.2.04+dfsg1/play/any/test2d.c:1477: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).
    p_text(w, xmotion, ygui, txt, strlen(txt));
data/yorick-2.2.04+dfsg1/play/unix/dir.c:78: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 len = strlen(name);
data/yorick-2.2.04+dfsg1/play/unix/dir.c:111:5:  [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(p_wkspc.c+dir->namelen, name, P_WKSIZ-dir->namelen);
data/yorick-2.2.04+dfsg1/play/unix/files.c:156:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long n = read(file->fd, buf, nbytes);
data/yorick-2.2.04+dfsg1/play/unix/files.c:171:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(file->fd, cbuf+nb, nbytes-nb);
data/yorick-2.2.04+dfsg1/play/unix/fpuset.c:451:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#error <read play/unix/README.fpu for help>
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:49: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 (!tmp) tmp = name+strlen(name);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:54:7:  [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(p_wkspc.c, name, len);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:57: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).
      len = strlen(env);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:69: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).
      len = strlen(name);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:76:16:  [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.
      if (len) strncat(p_wkspc.c, name, len);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:94: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(home);
data/yorick-2.2.04+dfsg1/play/unix/pathnm.c:100: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(name)<=left) strcpy(p_wkspc.c+len, name);
data/yorick-2.2.04+dfsg1/play/unix/stdinit.c:83: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).
    n = strlen(line);
data/yorick-2.2.04+dfsg1/play/unix/ugetc.c:40:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return getc(stream);
data/yorick-2.2.04+dfsg1/play/unix/uspawn.c:289:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read(proc->fdout, msg, len);
data/yorick-2.2.04+dfsg1/play/unix/uspawn.c:292:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read(proc->fderr, msg, len);
data/yorick-2.2.04+dfsg1/play/win/pathnm.c:55:7:  [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(env_name, name, len);
data/yorick-2.2.04+dfsg1/play/win/pathnm.c:67: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).
  if ((long)strlen(name)<=left) strcpy(p_wkspc.c+len, name);
data/yorick-2.2.04+dfsg1/play/win/wpopen.c:37:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
child process's input and read the child process's output. The handles
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:86: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).
  if (name[len]) cmdlen += 2 + strlen(name+len);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:89: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 (name[len] || !len) len += 2 + strlen(argv[nargs]+len);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:125: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).
    cmdlen += 2 + strlen(name+len);
data/yorick-2.2.04+dfsg1/play/win/wspawn.c:137: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).
      len += 2 + strlen(argv[nargs]+len);
data/yorick-2.2.04+dfsg1/play/x11/fonts.c:224: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).
    if (!pixsize && strlen(tmp_fonts[i])>120) continue;
data/yorick-2.2.04+dfsg1/play/x11/textout.c:30: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).
  int len = strlen(text);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:268: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 (OP(scan) == EXACTLY && (int)strlen(OPERAND(scan)) >= len) {
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:270: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).
          len = strlen(OPERAND(scan));
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:839: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).
        len = strlen(opnd);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1000: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).
    count = strlen(scan);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1106:10:  [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.
  (void) strcpy(buf, ":");
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1148: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).
    sprintf(buf+strlen(buf), "OPEN%d", OP(op)-OPEN);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1160: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).
    sprintf(buf+strlen(buf), "CLOSE%d", OP(op)-CLOSE);
data/yorick-2.2.04+dfsg1/regexp/yregexp.c:1216:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      (void) strncpy(dst, prog->startp[no], len);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:182:5:  [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(filemode, "r");
data/yorick-2.2.04+dfsg1/yorick/ascio.c:186:5:  [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(filemode, fmode, 7);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:223: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).
    char *dots= strlen(filename)>100? "..." : "";
data/yorick-2.2.04+dfsg1/yorick/ascio.c:574: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).
    i= strlen(fmtList[nArgs].format);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:833: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 (q[i] && (len= strlen(q[i]))>fmtWidth) fmtWidth= len;
data/yorick-2.2.04+dfsg1/yorick/ascio.c:883: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).
      nChars= (int)strlen(text);  /* can't rely on sprintf to return this */
data/yorick-2.2.04+dfsg1/yorick/ascio.c:902: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).
        nLine= strlen(outBuf);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1142: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).
    } else {         *text+= strlen(*text);     i= 1; \
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1168: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).
    } else {         *text+= strlen(*text);     i= 1; \
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1186: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).
    long len= strlen(*text);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1208: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).
    *text+= strlen(*text);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1400: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).
  char *part= CheckBuf(strlen(format));
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1410:5:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1421:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1429:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1439:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1448:7:  [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(part, format, n);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1461:7:  [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(part, format, n);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1491: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).
  char *part= CheckBuf(strlen(format));
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1503:5:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1529:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1538:7:  [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(part, format, n);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1552:7:  [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(part, format, n);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1561:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1568:7:  [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(part, format, i);
data/yorick-2.2.04+dfsg1/yorick/ascio.c:1579: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).
  fmtWidth+= strlen(fmtBuf);
data/yorick-2.2.04+dfsg1/yorick/autold.c:100:5:  [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(msg, globalTable.names[autl->isymbol], 64);
data/yorick-2.2.04+dfsg1/yorick/binio.c:1072: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).
  len= tailName? strlen(tailName) : 0;
data/yorick-2.2.04+dfsg1/yorick/binio.c:1091: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).
  lenN= strlen(name);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:356: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:366: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).
  headLen= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1160: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).
      long i, len= strlen(dataName)-1;
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1191: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).
    long i, len= strlen(blocksTable.names[0])-1;
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1321: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).
      long i, len= strlen(dataName)-1;
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1589: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).
        long i, len= strlen(dataName)-1;
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1672: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).
  dmiDigits= strlen(dmiName);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:1799: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(token)!=5) return -1;
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2014: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).
  return (char *)buf + strlen((char *)buf);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2132: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 (CheckBuffer(5+strlen(typeName)+strlen(mNames[j]))) {
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2132: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 (CheckBuffer(5+strlen(typeName)+strlen(mNames[j]))) {
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2137: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).
    nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2180: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).
    nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2184: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).
    nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2190: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).
  if (CheckBuffer(25+strlen(name))) {
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2195: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2341: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).
  if (!nlen) nlen = strlen(name);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2344: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 (CheckBuffer(45+nlen+strlen(typeName))) {
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2349:5:  [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(nextByte, name, nlen);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2352: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).
    nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2357: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).
        nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2373: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2398: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2418: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2426: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2450: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).
        CheckBuffer(strlen(names[j])+29);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2452: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).
        nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2458: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).
        nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2463: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).
          nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2465:9:  [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(nextByte, "\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2473: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2477: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).
        nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2479: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(nextByte, "\012");
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2508: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).
    if (CheckBuffer(68+strlen(typeName))) {
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2515: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).
    nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2527: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).
            nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2536: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).
            nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2555: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2557: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2559: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2561: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2563: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2565: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2567: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2569: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).
      nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2586: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).
  nextByte+= strlen(nextByte);
data/yorick-2.2.04+dfsg1/yorick/binpdb.c:2628: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).
    YcWrite(file, buffer, headerAddress, strlen(buffer));
data/yorick-2.2.04+dfsg1/yorick/clog.c:1329:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(p_wkspc.c, "\n");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1348:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  sprintf(p_wkspc.c, " "); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1360:8:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  else sprintf(p_wkspc.c, "\n");
data/yorick-2.2.04+dfsg1/yorick/clog.c:1375:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(p_wkspc.c, "\""); p_fputs(stream, p_wkspc.c);
data/yorick-2.2.04+dfsg1/yorick/clog.c:1424: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(idScratch, identifier, n);
data/yorick-2.2.04+dfsg1/yorick/codger.c:127: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).
      n = strlen(argv[0]);
data/yorick-2.2.04+dfsg1/yorick/codger.c:259:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(node->name, name, ldata);
data/yorick-2.2.04+dfsg1/yorick/codger.c:539: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).
    long i, n, len = strlen(name);
data/yorick-2.2.04+dfsg1/yorick/codger.c:541: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).
      n = strlen(dirs[i]);
data/yorick-2.2.04+dfsg1/yorick/codger.c:547:31:  [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.
      if (n && tmp[n-1]!='/') strcpy(tmp+n, "/");
data/yorick-2.2.04+dfsg1/yorick/codger.c:970:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(var->cname, pos, len);
data/yorick-2.2.04+dfsg1/yorick/codger.c:1107: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 = 8+strlen(c_types[ret])+strlen(var_last->cname);
data/yorick-2.2.04+dfsg1/yorick/codger.c:1107: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).
  len = 8+strlen(c_types[ret])+strlen(var_last->cname);
data/yorick-2.2.04+dfsg1/yorick/codger.c:1118: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).
    len += strlen(c_types[arg]) + star + 2;
data/yorick-2.2.04+dfsg1/yorick/codger.c:1133: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 = 2+strlen(push_result[ret])+strlen(var_last->cname);
data/yorick-2.2.04+dfsg1/yorick/codger.c:1133: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).
  len = 2+strlen(push_result[ret])+strlen(var_last->cname);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:146: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).
        length= strlen(*modelP);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:475: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).
    headLen= strlen(header);
data/yorick-2.2.04+dfsg1/yorick/convrt.c:504: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).
  header= PDBinitScratch(72+strlen(typeName));
data/yorick-2.2.04+dfsg1/yorick/convrt.c:509: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).
  headLen= strlen(header);
data/yorick-2.2.04+dfsg1/yorick/debug.c:350:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(stringBuf+i, q, n);
data/yorick-2.2.04+dfsg1/yorick/debug.c:355:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(stringBuf+i, q, s-q);
data/yorick-2.2.04+dfsg1/yorick/graph.c:244: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 (s) return strlen(s);
data/yorick-2.2.04+dfsg1/yorick/graph.c:2073: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).
      long len= strlen(hcp);
data/yorick-2.2.04+dfsg1/yorick/graph.c:3322: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).
    gistD.legend= p_malloc(strlen(legend)+1);
data/yorick-2.2.04+dfsg1/yorick/ops.c:705: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).
            len= strlen(str[i]);
data/yorick-2.2.04+dfsg1/yorick/oxy.c:105:5:  [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(msg, ops->type_name, 255);
data/yorick-2.2.04+dfsg1/yorick/pathfun.c:118: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).
    path = head+strlen(head)-1;   /* guaranteed to point to DIR_SEP */
data/yorick-2.2.04+dfsg1/yorick/pathfun.c:137: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).
  nm += strlen(nm);
data/yorick-2.2.04+dfsg1/yorick/pathfun.c:150: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).
  nm += strlen(nm);
data/yorick-2.2.04+dfsg1/yorick/pathfun.c:161: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).
  long n = head? strlen(head) : 0;
data/yorick-2.2.04+dfsg1/yorick/spawn.c:207: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 (msg && p_send(proc->proc, msg, strlen(msg)))
data/yorick-2.2.04+dfsg1/yorick/std0.c:206: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 (i=0 ; i<nYpPrefixes ; i++) len += strlen(ypPrefixes[i])+1;
data/yorick-2.2.04+dfsg1/yorick/std0.c:262: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).
    long i = yLaunchDir? strlen(yLaunchDir) : 0;
data/yorick-2.2.04+dfsg1/yorick/std0.c:271:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(path, yLaunchDir, i+1);
data/yorick-2.2.04+dfsg1/yorick/std0.c:409: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).
    long len = strlen(ylaunch);
data/yorick-2.2.04+dfsg1/yorick/std0.c:419: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).
  if (path2[strlen(path2)-1] == '/') path2[strlen(path2)-1] = '\0';
data/yorick-2.2.04+dfsg1/yorick/std0.c:419: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 (path2[strlen(path2)-1] == '/') path2[strlen(path2)-1] = '\0';
data/yorick-2.2.04+dfsg1/yorick/std2.c:1628: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).
          crc = crc_compute(table, q[i], q[i]?strlen(q[i]):0, init, crc);
data/yorick-2.2.04+dfsg1/yorick/std2.c:1734: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).
      for (i=0 ; i<len ; i++) update(state, q[i], q[i]?strlen(q[i]):0);
data/yorick-2.2.04+dfsg1/yorick/task.c:1619: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(yWarningMsg, msg, 120);
data/yorick-2.2.04+dfsg1/yorick/task.c:1749: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(yErrorMsg, name, 40);
data/yorick-2.2.04+dfsg1/yorick/task.c:1753:5:  [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(yErrorMsg, relpc, 12);
data/yorick-2.2.04+dfsg1/yorick/task.c:1757:5:  [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(yErrorMsg, msg, 140);
data/yorick-2.2.04+dfsg1/yorick/task.c:2044:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmsg, msg, 140);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1629: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).
    if (!fmt) fmt = msg_format + strlen(msg_format);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1635:5:  [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(msg+nmsg, msg_format, len);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1640: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).
    nmsg += strlen(msg+nmsg);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1645:5:  [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(msg+nmsg, fmt, nmax-nmsg);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1659: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).
    fmt = msg_format + strlen(msg_format);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1664:5:  [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(msg+nmsg, msg_format, len);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1668:5:  [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(msg+nmsg, q, nmax-nmsg);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1669: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).
    nmsg += strlen(msg+nmsg);
data/yorick-2.2.04+dfsg1/yorick/yapi.c:1673:5:  [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(msg+nmsg, fmt, nmax-nmsg);
data/yorick-2.2.04+dfsg1/yorick/ydata.c:208: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(warning,
data/yorick-2.2.04+dfsg1/yorick/yinput.c:670: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(pErrorMsg, msg, 110);
data/yorick-2.2.04+dfsg1/yorick/yio.c:120: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).
  n = strlen(line);
data/yorick-2.2.04+dfsg1/yorick/yio.c:144: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).
    n += strlen(&line[n]);   /* faster than n= strlen(line) */
data/yorick-2.2.04+dfsg1/yorick/yio.c:343: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).
  long len= strlen(s);
data/yorick-2.2.04+dfsg1/yorick/yio.c:360:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&printBuf[printNow], s, nhere);
data/yorick-2.2.04+dfsg1/yorick/yio.c:366: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(&printBuf[printLength-1], "\\");
data/yorick-2.2.04+dfsg1/yorick/yio.c:443: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(name);
data/yorick-2.2.04+dfsg1/yorick/yio.c:445: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(nBuffer+8, name, 64);
data/yorick-2.2.04+dfsg1/yorick/yio.c:456: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(name);
data/yorick-2.2.04+dfsg1/yorick/yio.c:458: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(nBuffer+16, name, 64);
data/yorick-2.2.04+dfsg1/yorick/yio.c:613: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).
      if (string && strlen(string)) *typeFormat[i]= p_strcpy(string);
data/yorick-2.2.04+dfsg1/yorick/yio.c:679:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(part, s, esc-s);
data/yorick-2.2.04+dfsg1/yorick/yio.c:804: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(nBuffer);
data/yorick-2.2.04+dfsg1/yorick/yio.c:823: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(nBuffer+len, ":");
data/yorick-2.2.04+dfsg1/yorick/yio.c:833: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(nBuffer);
data/yorick-2.2.04+dfsg1/yorick/yio.c:863: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(nBuffer+len);
data/yorick-2.2.04+dfsg1/yorick/yio.c:864:16:  [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.
  if (!last) { strcpy(nBuffer+len, ","); len++; }
data/yorick-2.2.04+dfsg1/yorick/yio.c:874:5:  [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(nBuffer, "(");
data/yorick-2.2.04+dfsg1/yorick/yio.c:879:5:  [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(nBuffer+len, ")");
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1488:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  if (nt) strncpy(n_w+ns, t, nt);
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1507: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).
    len= quote? strlen(quote) : 0;
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1680: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).
    len= quote? strlen(quote) : 0;
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1685: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).
    n= strlen(nextChar);
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1903: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).
  n= strlen(msg);
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1904:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(errorMsg, msg, 80);
data/yorick-2.2.04+dfsg1/yorick/yorick.c:1922:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(msg, prevToken, n);
data/yorick-2.2.04+dfsg1/yorick/ystr.c:40: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).
    for (i=0 ; i<n ; i++) lens[i] = q[i]? strlen(q[i]) : 0;
data/yorick-2.2.04+dfsg1/yorick/ystr.c:42: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).
    ypush_long(q[0]? (long)strlen(q[0]) : 0L);
data/yorick-2.2.04+dfsg1/yorick/ystr.c:100: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 (q[i]) dims[1] += strlen(q[i]);
data/yorick-2.2.04+dfsg1/yorick/ystr.c:422: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).
        len = strlen(inp);
data/yorick-2.2.04+dfsg1/yorick/ystr.c:467: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).
      len = inp? strlen(inp) : 0;
data/yorick-2.2.04+dfsg1/yorick/ystr.c:552: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).
      len = strlen(inp);
data/yorick-2.2.04+dfsg1/yorick/ystr.c:1047:9:  [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(msg+36, errmsg? errmsg : "(unknown reason)", 79-36);

ANALYSIS SUMMARY:

Hits = 977
Lines analyzed = 123956 in approximately 3.55 seconds (34943 lines/second)
Physical Source Lines of Code (SLOC) = 88034
Hits@level = [0]  85 [1] 260 [2] 502 [3]  22 [4] 190 [5]   3
Hits@level+ = [0+] 1062 [1+] 977 [2+] 717 [3+] 215 [4+] 193 [5+]   3
Hits/KSLOC@level+ = [0+] 12.0635 [1+] 11.098 [2+] 8.14458 [3+] 2.44224 [4+] 2.19233 [5+] 0.0340777
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.