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/survex-1.2.42/src/getopt1.c
Examining data/survex-1.2.42/src/readval.c
Examining data/survex-1.2.42/src/export.cc
Examining data/survex-1.2.42/src/diffpos.c
Examining data/survex-1.2.42/src/aventreectrl.cc
Examining data/survex-1.2.42/src/whichos.h
Examining data/survex-1.2.42/src/hash.c
Examining data/survex-1.2.42/src/gla.h
Examining data/survex-1.2.42/src/moviemaker.cc
Examining data/survex-1.2.42/src/z_getopt.c
Examining data/survex-1.2.42/src/strftime.c
Examining data/survex-1.2.42/src/avenprcore.cc
Examining data/survex-1.2.42/src/glbitmapfont.cc
Examining data/survex-1.2.42/src/buttontaghandler.cc
Examining data/survex-1.2.42/src/sorterr.c
Examining data/survex-1.2.42/src/cavern.c
Examining data/survex-1.2.42/src/printing.h
Examining data/survex-1.2.42/src/extend.c
Examining data/survex-1.2.42/src/message.c
Examining data/survex-1.2.42/src/aboutdlg.cc
Examining data/survex-1.2.42/src/vector3.cc
Examining data/survex-1.2.42/src/netartic.c
Examining data/survex-1.2.42/src/useful.h
Examining data/survex-1.2.42/src/network.h
Examining data/survex-1.2.42/src/netskel.h
Examining data/survex-1.2.42/src/osalloc.h
Examining data/survex-1.2.42/src/gpx.h
Examining data/survex-1.2.42/src/commands.h
Examining data/survex-1.2.42/src/img_hosted.h
Examining data/survex-1.2.42/src/dump3d.c
Examining data/survex-1.2.42/src/json.h
Examining data/survex-1.2.42/src/ostypes.h
Examining data/survex-1.2.42/src/mainfrm.cc
Examining data/survex-1.2.42/src/gllogerror.h
Examining data/survex-1.2.42/src/validate.h
Examining data/survex-1.2.42/src/model.h
Examining data/survex-1.2.42/src/pos.cc
Examining data/survex-1.2.42/src/netbits.h
Examining data/survex-1.2.42/src/listpos.c
Examining data/survex-1.2.42/src/moviemaker.h
Examining data/survex-1.2.42/src/str.h
Examining data/survex-1.2.42/src/aventypes.h
Examining data/survex-1.2.42/src/log.h
Examining data/survex-1.2.42/src/gfxcore.cc
Examining data/survex-1.2.42/src/json.cc
Examining data/survex-1.2.42/src/listpos.h
Examining data/survex-1.2.42/src/osdepend.c
Examining data/survex-1.2.42/src/netbits.c
Examining data/survex-1.2.42/src/wx.h
Examining data/survex-1.2.42/src/cavernlog.h
Examining data/survex-1.2.42/src/commands.c
Examining data/survex-1.2.42/src/useful.c
Examining data/survex-1.2.42/src/thgeomagdata.h
Examining data/survex-1.2.42/src/date.h
Examining data/survex-1.2.42/src/cmdline.h
Examining data/survex-1.2.42/src/aboutdlg.h
Examining data/survex-1.2.42/src/matrix.c
Examining data/survex-1.2.42/src/img.h
Examining data/survex-1.2.42/src/kml.cc
Examining data/survex-1.2.42/src/aven.h
Examining data/survex-1.2.42/src/debug.h
Examining data/survex-1.2.42/src/thgeomag.h
Examining data/survex-1.2.42/src/matrix.h
Examining data/survex-1.2.42/src/filename.c
Examining data/survex-1.2.42/src/kml.h
Examining data/survex-1.2.42/src/glbitmapfont.h
Examining data/survex-1.2.42/src/survexport.cc
Examining data/survex-1.2.42/src/img.c
Examining data/survex-1.2.42/src/out.h
Examining data/survex-1.2.42/src/printing.cc
Examining data/survex-1.2.42/src/pos.h
Examining data/survex-1.2.42/src/namecompare.cc
Examining data/survex-1.2.42/src/message.h
Examining data/survex-1.2.42/src/netskel.c
Examining data/survex-1.2.42/src/avenpal.h
Examining data/survex-1.2.42/src/exportfilter.h
Examining data/survex-1.2.42/src/strcasecmp.c
Examining data/survex-1.2.42/src/osdepend.h
Examining data/survex-1.2.42/src/aven.cc
Examining data/survex-1.2.42/src/model.cc
Examining data/survex-1.2.42/src/avenprcore.h
Examining data/survex-1.2.42/src/aventreectrl.h
Examining data/survex-1.2.42/src/str.c
Examining data/survex-1.2.42/src/datain.c
Examining data/survex-1.2.42/src/gfxcore.h
Examining data/survex-1.2.42/src/cmdline.c
Examining data/survex-1.2.42/src/log.cc
Examining data/survex-1.2.42/src/getopt.c
Examining data/survex-1.2.42/src/namecompare.h
Examining data/survex-1.2.42/src/date.c
Examining data/survex-1.2.42/src/gla-gl.cc
Examining data/survex-1.2.42/src/namecmp.c
Examining data/survex-1.2.42/src/thgeomag.c
Examining data/survex-1.2.42/src/imgtest.c
Examining data/survex-1.2.42/src/vector3.h
Examining data/survex-1.2.42/src/cavernlog.cc
Examining data/survex-1.2.42/src/moviemaker-legacy.cc
Examining data/survex-1.2.42/src/validate.c
Examining data/survex-1.2.42/src/hash.h
Examining data/survex-1.2.42/src/readval.h
Examining data/survex-1.2.42/src/namecmp.h
Examining data/survex-1.2.42/src/labelinfo.h
Examining data/survex-1.2.42/src/guicontrol.h
Examining data/survex-1.2.42/src/img_hosted.c
Examining data/survex-1.2.42/src/cavern.h
Examining data/survex-1.2.42/src/img2aven.h
Examining data/survex-1.2.42/src/export.h
Examining data/survex-1.2.42/src/filename.h
Examining data/survex-1.2.42/src/filelist.h
Examining data/survex-1.2.42/src/netartic.h
Examining data/survex-1.2.42/src/datain.h
Examining data/survex-1.2.42/src/hpgl.cc
Examining data/survex-1.2.42/src/guicontrol.cc
Examining data/survex-1.2.42/src/gpx.cc
Examining data/survex-1.2.42/src/network.c
Examining data/survex-1.2.42/src/mainfrm.h
Examining data/survex-1.2.42/src/hpgl.h
Examining data/survex-1.2.42/src/getopt.h
Examining data/survex-1.2.42/lib/preload_font.h

FINAL RESULTS:

data/survex-1.2.42/src/aven.cc:472:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, sizeof(buf), msg(en), ap);
data/survex-1.2.42/src/aven.h:55:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int r = vsnprintf(buf, len, fmt, args);
data/survex-1.2.42/src/cavern.c:363:3:  [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.
	 printf(msg(/*CPU time used %5.2fs*/140), tmCPU);
data/survex-1.2.42/src/cavern.c:366:6:  [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.
	    printf(msg(/*Time used %5.2fs*/141), tmUser);
data/survex-1.2.42/src/cavern.c:371:3:  [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.
	 printf(msg(/*Time used %5.2fs (%5.2fs CPU time)*/143), tmUser, tmCPU);
data/survex-1.2.42/src/cavern.c:377:3:  [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.
	 printf(msg(/*There were %d warning(s) and %d error(s) - no output files produced.*/113),
data/survex-1.2.42/src/cavern.c:382:7:  [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.
      printf(msg(/*There were %d warning(s).*/16), msg_warnings);
data/survex-1.2.42/src/cavern.c:398:4:  [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.
   printf(msg(msgno), hi - lo, units, pfx_hi, hi, units, pfx_lo, lo, units);
data/survex-1.2.42/src/cavern.c:416:7:  [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.
      printf(msg(/*Survey contains %ld survey stations,*/173), cStns);
data/survex-1.2.42/src/cavern.c:422:7:  [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.
      printf(msg(/* joined by %ld legs.*/175), cLegs);
data/survex-1.2.42/src/cavern.c:430:7:  [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.
      printf(msg(/*There are %ld loops.*/139), cLoops);
data/survex-1.2.42/src/cavern.c:439:7:  [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.
      printf(msg(/*Survey has %ld connected components.*/178), cComponents);
data/survex-1.2.42/src/cavern.c:443:4:  [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.
   printf(msg(/*Total length of survey legs = %7.2f%s (%7.2f%s adjusted)*/132),
data/survex-1.2.42/src/cavern.c:446:4:  [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.
   printf(msg(/*Total plan length of survey legs = %7.2f%s*/133),
data/survex-1.2.42/src/cavern.c:449:4:  [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.
   printf(msg(/*Total vertical length of survey legs = %7.2f%s*/134),
data/survex-1.2.42/src/cmdline.c:128:4:  [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.
	  printf(msg(help->msg_no), help->arg);
data/survex-1.2.42/src/cmdline.c:147:4:  [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.
	  printf(msg(msg_extra), msg_extra_arg);
data/survex-1.2.42/src/cmdline.c:194:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr, msg(/*Try “%s --help” for more information.\n*/157),
data/survex-1.2.42/src/cmdline.c:203:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr, msg(msgno), optarg);
data/survex-1.2.42/src/datain.c:107:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(STDERR, msg(/*In file included from %s:%u:\n*/5), p->filename, p->line);
data/survex-1.2.42/src/datain.c:959:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(p, get_units_string(units));
data/survex-1.2.42/src/diffpos.c:159:7:  [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.
      printf(msg(/*Moved by (%3.2f,%3.2f,%3.2f): %s*/500),
data/survex-1.2.42/src/diffpos.c:196:3:  [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.
	 printf(msg(/*Added: %s*/501), names[i]);
data/survex-1.2.42/src/diffpos.c:219:7:  [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.
      printf(msg(/*Deleted: %s*/502), names[i]);
data/survex-1.2.42/src/export.cc:338:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(fh, fSurface ? "8\nSurface\n" : "8\nCentreLine\n"); /* Layer */
data/survex-1.2.42/src/export.cc:352:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(fh, fSurface ? "8\nSurfaceLabels\n" : "8\nLabels\n"); /* Layer */
data/survex-1.2.42/src/export.cc:365:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(fh, fSurface ? "8\nSurfaceStations\n" : "8\nStations\n"); /* Layer */
data/survex-1.2.42/src/extend.c:265:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	       printf(msg(/*Starting from station %s*/512),ln);
data/survex-1.2.42/src/extend.c:286:5:  [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.
		  printf(msg(/*Extending to the left from station %s*/513), ll);
data/survex-1.2.42/src/extend.c:307:7:  [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.
			   printf(msg(/*Extending to the left from leg %s → %s*/515), s->label, t->label);
data/survex-1.2.42/src/extend.c:333:5:  [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.
		  printf(msg(/*Extending to the right from station %s*/514), ll);
data/survex-1.2.42/src/extend.c:354:7:  [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.
			   printf(msg(/*Extending to the right from leg %s → %s*/516), s->label, t->label);
data/survex-1.2.42/src/extend.c:377:5:  [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.
		  printf(msg(/*Swapping extend direction from station %s*/519),ll);
data/survex-1.2.42/src/extend.c:398:7:  [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.
			   printf(msg(/*Swapping extend direction from leg %s → %s*/520), s->label, t->label);
data/survex-1.2.42/src/extend.c:421:5:  [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.
		  printf(msg(/*Breaking survey loop at station %s*/517), ll);
data/survex-1.2.42/src/extend.c:443:7:  [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.
			   printf(msg(/*Breaking survey loop at leg %s → %s*/518), s->label, t->label);
data/survex-1.2.42/src/extend.c:576: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(base_out, base_in);
data/survex-1.2.42/src/extend.c:682:7:  [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.
      printf(msg(/*Applying specfile: “%s”*/521), specfile);
data/survex-1.2.42/src/extend.c:706:4:  [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.
   printf(msg(/*Writing %s…*/522), fnm_out);
data/survex-1.2.42/src/filename.c:224:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(fnm, pth);
data/survex-1.2.42/src/filename.c:226:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(fnm + len, lf);
data/survex-1.2.42/src/filename.c:250:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(fnmNew, fnm);
data/survex-1.2.42/src/filename.c:254:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(fnmNew + len, ext);
data/survex-1.2.42/src/img.c:200: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 + 3, tz);
data/survex-1.2.42/src/img.c:2224:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(pimg->label, new_);
data/survex-1.2.42/src/img.c:2232:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(pimg->label, new_);
data/survex-1.2.42/src/img.c:2239: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(pimg->label, new_);
data/survex-1.2.42/src/json.cc:54:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf("date: %ld,\n", (long)datestamp_numeric);
data/survex-1.2.42/src/message.c:275: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.
# error Do not know operating system!
data/survex-1.2.42/src/message.c:1243: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, msg(en), ap);
data/survex-1.2.42/src/moviemaker-legacy.cc:175:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dummy_filename + 2, ext);
data/survex-1.2.42/src/moviemaker-legacy.cc:202: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(oc->filename, dummy_filename);
data/survex-1.2.42/src/moviemaker.cc:127:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(dummy_filename + 2, ext);
data/survex-1.2.42/src/netbits.c:623: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(buffer, ptr->ident);
data/survex-1.2.42/src/netskel.c:138:3:  [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.
	 printf(msg(/*Survey has no fixed points. Therefore I’ve fixed %s at (0,0,0)*/72),
data/survex-1.2.42/src/netskel.c:747:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(fhErrStat, msg(/*Original length %6.2fm (%3d legs), moved %6.2fm (%5.2fm/leg). */145),
data/survex-1.2.42/src/netskel.c:750:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	 fprintf(fhErrStat, msg(/*Error %6.2f%%*/146), 100 * sqrt_eTot / lenTrav);
data/survex-1.2.42/src/osdepend.h:42:52:  [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.
#  error Do not know what to do for this operating system
data/survex-1.2.42/src/out.h:20:54:  [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 out_current_action1(S,A) if(!fQuiet){putnl();printf(S,A);printf("...\n");}else(void)0
data/survex-1.2.42/src/strftime.c:169: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(savetz, tz);
data/survex-1.2.42/src/strftime.c:182:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(newsavetz, tz);
data/survex-1.2.42/src/strftime.c:188:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(savetz, tz);
data/survex-1.2.42/src/strftime.c:213: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(tbuf, days_a[timeptr->tm_wday]);
data/survex-1.2.42/src/strftime.c:220: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(tbuf, days_l[timeptr->tm_wday]);
data/survex-1.2.42/src/strftime.c:230: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(tbuf, months_a[timeptr->tm_mon]);
data/survex-1.2.42/src/strftime.c:237: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(tbuf, months_l[timeptr->tm_mon]);
data/survex-1.2.42/src/strftime.c:241:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tbuf, "%s %s %2d %02d:%02d:%02d %d",
data/survex-1.2.42/src/strftime.c:287: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(tbuf, ampm[0]);
data/survex-1.2.42/src/strftime.c:289: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(tbuf, ampm[1]);
data/survex-1.2.42/src/strftime.c:311:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tbuf, "%s %s %2d %d",
data/survex-1.2.42/src/strftime.c:338:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(tbuf, tzname[i]);
data/survex-1.2.42/src/strftime.c:407: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(s, tbuf);
data/survex-1.2.42/src/z_getopt.c:712:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	      fprintf (stderr, msg(/*%s: option “%s” is ambiguous\n*/300),
data/survex-1.2.42/src/z_getopt.c:749:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			  fprintf (stderr, msg(/*%s: option “--%s” doesn’t allow an argument\n*/303),
data/survex-1.2.42/src/z_getopt.c:762:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			  fprintf (stderr, msg(/*%s: option “%c%s” doesn’t allow an argument\n*/302),
data/survex-1.2.42/src/z_getopt.c:809:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		      fprintf (stderr,
data/survex-1.2.42/src/z_getopt.c:851:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  fprintf (stderr, msg(/*%s: unrecognized option “--%s”\n*/307),
data/survex-1.2.42/src/z_getopt.c:862:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		  fprintf (stderr, msg(/*%s: unrecognized option “%c%s”\n*/308),
data/survex-1.2.42/src/z_getopt.c:923:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf (stderr, msg(/*%s: invalid option -- %c\n*/310), argv[0], c);
data/survex-1.2.42/src/z_getopt.c:1181:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		    fprintf (stderr,
data/survex-1.2.42/src/cmdline.c:43:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long(ARGC, ARGV, STR, OPTS, PTR) getopt(ARGC, ARGV, STR)
data/survex-1.2.42/src/cmdline.c:43:50:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long(ARGC, ARGV, STR, OPTS, PTR) getopt(ARGC, ARGV, STR)
data/survex-1.2.42/src/cmdline.c:288:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   int opt = getopt_long(argc, argv, shortopts, longopts, longind);
data/survex-1.2.42/src/getopt.c:221:9:  [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.
#ifndef getenv
data/survex-1.2.42/src/getopt.c:224:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/survex-1.2.42/src/getopt.c:410:21:  [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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/survex-1.2.42/src/getopt.c:1204:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/survex-1.2.42/src/getopt.c:1234:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/survex-1.2.42/src/getopt.h:145:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts);
data/survex-1.2.42/src/getopt.h:147:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/survex-1.2.42/src/getopt.h:151:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *const *___argv,
data/survex-1.2.42/src/getopt.h:165:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/survex-1.2.42/src/getopt.h:167:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long ();
data/survex-1.2.42/src/getopt1.c:67:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (argc, argv, options, long_options, opt_index)
data/survex-1.2.42/src/getopt1.c:123:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/survex-1.2.42/src/img.c:162:21:  [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 * old_tz = getenv("TZ");
data/survex-1.2.42/src/message.c:187:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (getenv("SURVEX_UTF8")) return CHARSET_UTF8;
data/survex-1.2.42/src/message.c:205:20:  [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.
   const char *p = getenv("LC_ALL");
data/survex-1.2.42/src/message.c:207:11:  [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.
      p = getenv("LC_CTYPE");
data/survex-1.2.42/src/message.c:209:7:  [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.
	 p = getenv("LANG");
data/survex-1.2.42/src/message.c:927: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 *pth = getenv("srcdir");
data/survex-1.2.42/src/message.c:1004:15:  [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.
   msg_lang = getenv("SURVEXLANG");
data/survex-1.2.42/src/message.c:1012: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.
      msg_lang = getenv("LC_ALL");
data/survex-1.2.42/src/message.c:1015: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.
      msg_lang = getenv("LC_MESSAGES");
data/survex-1.2.42/src/message.c:1017: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.
	 msg_lang = getenv("LANG");
data/survex-1.2.42/src/strftime.c:50:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv();
data/survex-1.2.42/src/strftime.c:162:7:  [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.
	tz = getenv("TZ");
data/survex-1.2.42/src/z_getopt.c:221:9:  [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.
#ifndef getenv
data/survex-1.2.42/src/z_getopt.c:224:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/survex-1.2.42/src/z_getopt.c:412:21:  [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.
  posixly_correct = getenv ("POSIXLY_CORRECT");
data/survex-1.2.42/src/z_getopt.c:1204:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (argc, argv, optstring)
data/survex-1.2.42/src/z_getopt.c:1234:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/survex-1.2.42/src/aven.cc:150: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.
	utf8_argv = new char * [utf8_argc + 1];
data/survex-1.2.42/src/aven.cc:227: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 *dummy_argv[2] = { argv[0], NULL };
data/survex-1.2.42/src/aven.cc:471:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/survex-1.2.42/src/cavern.c:234:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 int v = atoi(optarg);
data/survex-1.2.42/src/cavern.h:199:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char compiletimeassert_reading[IgnoreAll < 32 ? 1 : -1];
data/survex-1.2.42/src/cavernlog.cc:80:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1000];
data/survex-1.2.42/src/cavernlog.cc:87: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 (len > 0) memcpy(e->buf, buf, len);
data/survex-1.2.42/src/cavernlog.cc:505:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(end, e.buf, n);
data/survex-1.2.42/src/cavernlog.h:55:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1024];
data/survex-1.2.42/src/commands.c:131: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(t - 1, s->Translate - 1, sizeof(short) * 257);
data/survex-1.2.42/src/commands.c:550:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p - 1, pcs->Translate - 1, sizeof(short) * 257);
data/survex-1.2.42/src/commands.c:2062: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(proj_str, "+init=epsg:%d +no_defs", cs_sub);
data/survex-1.2.42/src/commands.c:2066: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(proj_str, "+init=esri:%d +no_defs", cs_sub);
data/survex-1.2.42/src/commands.c:2106: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(proj_str, "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=%d +y_0=%d +ellps=airy +datum=OSGB36 +units=m +no_defs", x * 100000, y * 100000);
data/survex-1.2.42/src/commands.c:2115:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(proj_str, "+proj=utm +ellps=WGS84 +datum=WGS84 +units=m +zone=%d +no_defs", cs_sub);
data/survex-1.2.42/src/commands.c:2117:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(proj_str, "+proj=utm +ellps=WGS84 +datum=WGS84 +units=m +zone=%d +south +no_defs", -cs_sub);
data/survex-1.2.42/src/datain.c:945:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[64];
data/survex-1.2.42/src/datain.c:948:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buf, "%.2f", fabs(diff));
data/survex-1.2.42/src/date.c:37:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char lastday[13] = {
data/survex-1.2.42/src/export.cc: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 pending[1024];
data/survex-1.2.42/src/export.cc:183:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool fopen(const wxString& fnm_out);
data/survex-1.2.42/src/export.cc:207:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
DXF::fopen(const wxString& fnm_out)
data/survex-1.2.42/src/export.cc:422:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(pending, "10\n%6.2f\n20\n%6.2f\n30\n%6.2f\n"
data/survex-1.2.42/src/export.cc:555: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 data[sizeof(int) * 3];
data/survex-1.2.42/src/export.cc:586: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 data[sizeof(int) * 3];
data/survex-1.2.42/src/export.cc:608: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 pending[1024];
data/survex-1.2.42/src/export.cc:777:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(pending, "<path d=\"M%.3f %.3fL%.3f %.3f", x1, y1, x2, y2);
data/survex-1.2.42/src/export.cc:957:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[64];
data/survex-1.2.42/src/export.cc:1394:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if (!filt->fopen(fnm_out)) {
data/survex-1.2.42/src/exportfilter.h:39:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    virtual bool fopen(const wxString& fnm_out) {
data/survex-1.2.42/src/extend.c:577:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(base_out, "_extend");
data/survex-1.2.42/src/filename.c:54:8:  [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(fnm, mode);
data/survex-1.2.42/src/filename.c:101:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   return fopen(fnm, mode);
data/survex-1.2.42/src/filename.c:124:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(pth, fnm, lenpth);
data/survex-1.2.42/src/filename.c:145:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p, fnm, len);
data/survex-1.2.42/src/filename.c:172:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(q, p, len);
data/survex-1.2.42/src/gfxcore.cc:4179: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 b[128];
data/survex-1.2.42/src/gla-gl.cc:212:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    glpoint_sprite = (atoi((const char *)glGetString(GL_VERSION)) >= 2);
data/survex-1.2.42/src/gla-gl.cc:560:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const unsigned char crossteximage[128] = {
data/survex-1.2.42/src/gla-gl.cc:589:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const unsigned char blobteximage[128] = {
data/survex-1.2.42/src/gla-gl.cc:711:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char expected_cross[64 * 3] = {
data/survex-1.2.42/src/gla-gl.cc:731:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char expected_blob[64 * 3] = {
data/survex-1.2.42/src/gla-gl.cc:1662:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp_row, upper, 3 * width);
data/survex-1.2.42/src/gla-gl.cc:1663:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(upper, lower, 3 * width);
data/survex-1.2.42/src/gla-gl.cc:1664:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(lower, tmp_row, 3 * width);
data/survex-1.2.42/src/gla-gl.cc:1673: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 pixels[3 * 8 * 8];
data/survex-1.2.42/src/glbitmapfont.h:53: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 char_width[BITMAPFONT_MAX_CHAR];
data/survex-1.2.42/src/gpx.cc:118:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[32];
data/survex-1.2.42/src/img.c:71:21:  [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).
    ((*(X) = NULL), fopen(FNM,MODE))
data/survex-1.2.42/src/img.c:150:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(res, p, len);
data/survex-1.2.42/src/img.c:190:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, "TZ=", 3);
data/survex-1.2.42/src/img.c:191:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p + 3, tz, len);
data/survex-1.2.42/src/img.c:199:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, "TZ=", 3);
data/survex-1.2.42/src/img.c:306: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.
   if (p) memcpy(p, str, len);
data/survex-1.2.42/src/img.c:440:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[LITLEN(FILEID) + 9];
data/survex-1.2.42/src/img.c:509:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(pimg->survey, survey, len);
data/survex-1.2.42/src/img.c:960:28:  [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).
   return img_write_stream(fopen(fnm, "wb"), fclose, title, cs, flags);
data/survex-1.2.42/src/img.c:1028: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 date[256];
data/survex-1.2.42/src/img.c:1044:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 const unsigned char codelengths[32] = {
data/survex-1.2.42/src/img.c:1080:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char num[12];
data/survex-1.2.42/src/img.c:1081:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 6, 9);
data/survex-1.2.42/src/img.c:1084:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 15, 9);
data/survex-1.2.42/src/img.c:1086:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 24, 8);
data/survex-1.2.42/src/img.c:1094:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char num[12];
data/survex-1.2.42/src/img.c:1095:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 40, 10);
data/survex-1.2.42/src/img.c:1098:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 50, 10);
data/survex-1.2.42/src/img.c:1100:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 60, 9);
data/survex-1.2.42/src/img.c:1108:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char num[12];
data/survex-1.2.42/src/img.c:1109:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 15, 9);
data/survex-1.2.42/src/img.c:1112:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 24, 8);
data/survex-1.2.42/src/img.c:1115:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(num, line + 32, 8);
data/survex-1.2.42/src/img.c:1864:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	 char cmd[7];
data/survex-1.2.42/src/img.c:2033: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(pimg->label, line, len);
data/survex-1.2.42/src/img.c:2095:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		   memcpy(pimg->label + pimg->label_len + 1, q, len - 1);
data/survex-1.2.42/src/img.c:2097:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		   memcpy(pimg->label, q, len - 1);
data/survex-1.2.42/src/img.c:2190: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(pimg->label, line, 6);
data/survex-1.2.42/src/img.c:2202: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[8], new_[8];
data/survex-1.2.42/src/img.c:2209: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(old, line, 7);
data/survex-1.2.42/src/img.c:2214: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(new_, line + 7, 7);
data/survex-1.2.42/src/img.c:2240: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(pimg->label + 16, line, 70);
data/survex-1.2.42/src/img.c:2319:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(pimg->label_buf + len, s + len, n - len + 1);
data/survex-1.2.42/src/img.c:2368:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(pimg->label_buf + len, s + len, add + 1);
data/survex-1.2.42/src/mainfrm.cc:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/survex-1.2.42/src/mainfrm.cc:219: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, "%.21f", d);
data/survex-1.2.42/src/mainfrm.cc:419: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[4096];
data/survex-1.2.42/src/mainfrm.cc:1030:51:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    toolbar->AddTool(wxID_OPEN, wxT("Open"), TOOL(open), wxT("Open a survey file for viewing"));
data/survex-1.2.42/src/message.c:83: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 const char tombstone[TOMBSTONE_SIZE] = "012345\xfftombstone";
data/survex-1.2.42/src/message.c:102:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(p, tombstone, TOMBSTONE_SIZE);
data/survex-1.2.42/src/message.c:103:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(p + size - TOMBSTONE_SIZE, tombstone, TOMBSTONE_SIZE);
data/survex-1.2.42/src/message.c:137:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p, tombstone, TOMBSTONE_SIZE);
data/survex-1.2.42/src/message.c:138:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(p + size - TOMBSTONE_SIZE, tombstone, TOMBSTONE_SIZE);
data/survex-1.2.42/src/message.c:156:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(p, str, len);
data/survex-1.2.42/src/message.c:250:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  switch (atoi(chset)) {
data/survex-1.2.42/src/message.c:264:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	       switch (atoi(chset)) {
data/survex-1.2.42/src/message.c:797:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char header[20];
data/survex-1.2.42/src/message.c:833: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(fnm, "en");
data/survex-1.2.42/src/model.cc:385:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/survex-1.2.42/src/moviemaker-legacy.cc:173: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 dummy_filename[MAX_EXTENSION_LEN + 3] = "x.";
data/survex-1.2.42/src/moviemaker-legacy.cc:188:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(dummy_filename + 2, "mpg");
data/survex-1.2.42/src/moviemaker-legacy.cc:399:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(dest, src, len);
data/survex-1.2.42/src/moviemaker.cc:122: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 dummy_filename[MAX_EXTENSION_LEN + 3] = "x.";
data/survex-1.2.42/src/moviemaker.cc:343:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(dest, src, len);
data/survex-1.2.42/src/netbits.c:241:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(legOut->v, leg->v, sizeof(svar));
data/survex-1.2.42/src/netbits.c:637: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(buffer, "anonymous station");
data/survex-1.2.42/src/netskel.c:512: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(&err, &e, sizeof(delta));
data/survex-1.2.42/src/netskel.c:593: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(&err, &e, sizeof(delta));
data/survex-1.2.42/src/pos.cc:116: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(l->name, s, len + 1);
data/survex-1.2.42/src/pos.h:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[1];
data/survex-1.2.42/src/sorterr.c:143:32:  [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).
   if (argv[optind]) howmany = atoi(argv[optind]);
data/survex-1.2.42/src/sorterr.c:145: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).
   fh = fopen(fnm, "rb");
data/survex-1.2.42/src/str.c:48:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(*pstr + len, s, s_len);
data/survex-1.2.42/src/strftime.c:66: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 *tzname[2];
data/survex-1.2.42/src/strftime.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbuf[100];
data/survex-1.2.42/src/strftime.c:253:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/survex-1.2.42/src/strftime.c:258:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/survex-1.2.42/src/strftime.c:267:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/survex-1.2.42/src/strftime.c:271:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%03d", timeptr->tm_yday + 1);
data/survex-1.2.42/src/strftime.c:276:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i + 1);
data/survex-1.2.42/src/strftime.c:281:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/survex-1.2.42/src/strftime.c:294:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", i);
data/survex-1.2.42/src/strftime.c:298:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", weeknumber(timeptr, 0));
data/survex-1.2.42/src/strftime.c:303:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", i);
data/survex-1.2.42/src/strftime.c:307:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", weeknumber(timeptr, 1));
data/survex-1.2.42/src/strftime.c:319:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d:%02d:%02d",
data/survex-1.2.42/src/strftime.c:327:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", i);
data/survex-1.2.42/src/strftime.c:331:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%d", 1900 + timeptr->tm_year);
data/survex-1.2.42/src/strftime.c:357:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%2d", range(1, timeptr->tm_mday, 31));
data/survex-1.2.42/src/strftime.c:376:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%2d-%3.3s-%4d",
data/survex-1.2.42/src/strftime.c:389:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(tbuf, "%02d", (timeptr->tm_year + 1900) / 100);
data/survex-1.2.42/src/cmdline.c:102: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(longopt);
data/survex-1.2.42/src/commands.c:2350:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    goto read;
data/survex-1.2.42/src/commands.c:2372:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/survex-1.2.42/src/datain.c:189: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 (diag_flags & DIAG_BUF) caret_width = strlen(buffer);
data/survex-1.2.42/src/datain.c:200: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).
	 show_line(0, strlen(buffer));
data/survex-1.2.42/src/datain.c:251: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).
	 caret_width = strlen(p);
data/survex-1.2.42/src/datain.c:317: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).
      caret_width = strlen(p);
data/survex-1.2.42/src/datain.c:331: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).
   caret_width = strlen(s);
data/survex-1.2.42/src/datain.c:508: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(filename);
data/survex-1.2.42/src/datain.c:680:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if (strlen(buffer) >= 12 && buffer[11] == 'B') {
data/survex-1.2.42/src/extend.c:575: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).
      char * base_out = osmalloc(strlen(base_in) + 8);
data/survex-1.2.42/src/filename.c:169:49:  [1] (buffer) strlen:
  Does not handle 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) len = (const char *)q - p; else len = strlen(p);
data/survex-1.2.42/src/filename.c:202: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(pth);
data/survex-1.2.42/src/filename.c:203: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).
   len_total = len + strlen(lf) + 1;
data/survex-1.2.42/src/filename.c:240: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(fnm);
data/survex-1.2.42/src/filename.c:241: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).
   len_total = len + strlen(ext) + 1;
data/survex-1.2.42/src/getopt.c:247:51:  [1] (buffer) strlen:
  Does not handle 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 (!defined __STDC__ || !__STDC__) && !defined strlen
data/survex-1.2.42/src/getopt.c:250: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).
extern int strlen (const char *);
data/survex-1.2.42/src/getopt.c:441: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/survex-1.2.42/src/getopt.c:669: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).
		== (unsigned int) strlen (p->name))
data/survex-1.2.42/src/getopt.c:714: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).
	  nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:780: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).
		  nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:814: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).
		  nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:819: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).
	  nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:1009:51:  [1] (buffer) strlen:
  Does not handle 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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/survex-1.2.42/src/getopt.c:1049: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).
	    nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:1087: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).
		    nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:1119: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).
		    nextchar += strlen (nextchar);
data/survex-1.2.42/src/getopt.c:1123: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).
	    nextchar += strlen (nextchar);
data/survex-1.2.42/src/gfxcore.cc:3659: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).
    size_t len = q ? (q - p) : strlen(p);
data/survex-1.2.42/src/glbitmapfont.cc:151:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ssize_t n = read(fd, p, c);
data/survex-1.2.42/src/img.c:76:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define GETC(FH) getc(FH)
data/survex-1.2.42/src/img.c:146:49:  [1] (buffer) strlen:
  Does not handle 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) len = (const char *)q - p; else len = strlen(p);
data/survex-1.2.42/src/img.c:186: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).
	size_t len = strlen(old_tz) + 1;
data/survex-1.2.42/src/img.c:194: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).
    p = (char *)xosmalloc(strlen(tz) + 4);
data/survex-1.2.42/src/img.c:304: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 len = strlen(str) + 1;
data/survex-1.2.42/src/img.c:499: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(survey);
data/survex-1.2.42/src/img.c:534: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(fnm);
data/survex-1.2.42/src/img.c:645: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(line);
data/survex-1.2.42/src/img.c:827: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).
	   size_t real_len = strlen(title);
data/survex-1.2.42/src/img.c:855: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(pimg->title);
data/survex-1.2.42/src/img.c:1009: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).
      size_t len = strlen(title);
data/survex-1.2.42/src/img.c:1726: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(pimg->label);
data/survex-1.2.42/src/img.c:1791: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).
	 q = pimg->label_buf + strlen(pimg->label_buf) - 1;
data/survex-1.2.42/src/img.c:1866:7:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	 if (fscanf(pimg->fh, "%6s", cmd) < 1) return img_STOP;
data/survex-1.2.42/src/img.c:1963: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).
	 off += strlen(pimg->label_buf + off);
data/survex-1.2.42/src/img.c:2149: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).
	 pimg->label = pimg->label_buf + strlen(pimg->label_buf);
data/survex-1.2.42/src/img.c:2182: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(line);
data/survex-1.2.42/src/img.c:2302: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(s + len);
data/survex-1.2.42/src/img.c:2336: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).
   add = strlen(s + len);
data/survex-1.2.42/src/img.c:2677: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(s);
data/survex-1.2.42/src/mainfrm.cc:222: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).
    size_t l = strlen(buf);
data/survex-1.2.42/src/message.c:154: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(str) + 1;
data/survex-1.2.42/src/message.c:732: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).
	 p += strlen((char *)p) + 1;
data/survex-1.2.42/src/message.c:821: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).
   if (!fh && strlen(fnm) > 3 && fnm[2] == '_') {
data/survex-1.2.42/src/message.c:1137: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).
	 memmove(tmp + b, tmp + e, strlen(tmp + e) + 1);
data/survex-1.2.42/src/moviemaker-legacy.cc:174:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ext) <= MAX_EXTENSION_LEN) {
data/survex-1.2.42/src/moviemaker.cc:124:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ext) <= MAX_EXTENSION_LEN) {
data/survex-1.2.42/src/netbits.c:616: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).
      len = sprint_prefix_(ptr->up) + strlen(ptr->ident);
data/survex-1.2.42/src/netbits.c:622:32:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      if (ptr->up->up != NULL) strcat(buffer, ".");
data/survex-1.2.42/src/osdepend.c:69: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 (!fnm[0] || fnm[strlen(fnm) - 1] == FNM_SEP_LEV
data/survex-1.2.42/src/osdepend.c:71: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).
       || fnm[strlen(fnm) - 1] == FNM_SEP_LEV2
data/survex-1.2.42/src/pos.cc:109: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).
    size_t len = strlen(s);
data/survex-1.2.42/src/str.c:28: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).
   s_catlen(pstr, plen, s, strlen(s));
data/survex-1.2.42/src/str.c:39: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(*pstr);
data/survex-1.2.42/src/str.c:60:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len = strlen(*pstr);
data/survex-1.2.42/src/strftime.c:153:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strchr(format, '%') == NULL && strlen(format) + 1 >= maxsize)
data/survex-1.2.42/src/strftime.c:163: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).
	tzlen = strlen(tz);
data/survex-1.2.42/src/strftime.c:177: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).
		i = strlen(tz) + 1;
data/survex-1.2.42/src/strftime.c:211: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(tbuf, "?");
data/survex-1.2.42/src/strftime.c:218: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(tbuf, "?");
data/survex-1.2.42/src/strftime.c:228: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(tbuf, "?");
data/survex-1.2.42/src/strftime.c:235: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(tbuf, "?");
data/survex-1.2.42/src/strftime.c:404: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).
		i = strlen(tbuf);
data/survex-1.2.42/src/survexport.cc:261: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).
	 size_t len = strlen(optarg);
data/survex-1.2.42/src/survexport.cc:284: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).
	 size_t len = strlen(optarg);
data/survex-1.2.42/src/survexport.cc:381: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).
	 size_t len = strlen(fnm_out);
data/survex-1.2.42/src/survexport.cc:384: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 l = strlen(info.extension);
data/survex-1.2.42/src/z_getopt.c:247:51:  [1] (buffer) strlen:
  Does not handle 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 (!defined __STDC__ || !__STDC__) && !defined strlen
data/survex-1.2.42/src/z_getopt.c:250: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).
extern int strlen (const char *);
data/survex-1.2.42/src/z_getopt.c:443: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).
	      int len = nonoption_flags_max_len = strlen (orig_str);
data/survex-1.2.42/src/z_getopt.c:671: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).
		== (unsigned int) strlen (p->name))
data/survex-1.2.42/src/z_getopt.c:716: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).
	  nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:780: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).
		  nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:814: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).
		  nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:819: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).
	  nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:1009:51:  [1] (buffer) strlen:
  Does not handle 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 ((unsigned int) (nameend - nextchar) == strlen (p->name))
data/survex-1.2.42/src/z_getopt.c:1049: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).
	    nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:1087: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).
		    nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:1119: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).
		    nextchar += strlen (nextchar);
data/survex-1.2.42/src/z_getopt.c:1123: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).
	    nextchar += strlen (nextchar);

ANALYSIS SUMMARY:

Hits = 332
Lines analyzed = 47664 in approximately 1.30 seconds (36636 lines/second)
Physical Source Lines of Code (SLOC) = 35967
Hits@level = [0] 590 [1]  91 [2] 129 [3]  32 [4]  80 [5]   0
Hits@level+ = [0+] 922 [1+] 332 [2+] 241 [3+] 112 [4+]  80 [5+]   0
Hits/KSLOC@level+ = [0+] 25.6346 [1+] 9.23068 [2+] 6.70059 [3+] 3.11397 [4+] 2.22426 [5+]   0
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.