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/savi-1.5.1/src/axes.c
Examining data/savi-1.5.1/src/cones.c
Examining data/savi-1.5.1/src/coverage.c
Examining data/savi-1.5.1/src/coverage_vis.c
Examining data/savi-1.5.1/src/earth.c
Examining data/savi-1.5.1/src/fisheye.c
Examining data/savi-1.5.1/src/footprints.c
Examining data/savi-1.5.1/src/globals.c
Examining data/savi-1.5.1/src/gv_init.c
Examining data/savi-1.5.1/src/gv_utils.c
Examining data/savi-1.5.1/src/include/constants.h
Examining data/savi-1.5.1/src/include/coverage_vis.h
Examining data/savi-1.5.1/src/include/fisheye.h
Examining data/savi-1.5.1/src/include/globals.h
Examining data/savi-1.5.1/src/include/gv_file.h
Examining data/savi-1.5.1/src/include/gv_utils.h
Examining data/savi-1.5.1/src/include/int_types.h
Examining data/savi-1.5.1/src/include/orbit_utils.h
Examining data/savi-1.5.1/src/include/Satellite.h
Examining data/savi-1.5.1/src/include/sats.h
Examining data/savi-1.5.1/src/include/savi.h
Examining data/savi-1.5.1/src/include/stats_utils.h
Examining data/savi-1.5.1/src/include/tcl_utils.h
Examining data/savi-1.5.1/src/include/time.h
Examining data/savi-1.5.1/src/include/utils.h
Examining data/savi-1.5.1/src/logo.c
Examining data/savi-1.5.1/src/main.c
Examining data/savi-1.5.1/src/modules.c
Examining data/savi-1.5.1/src/orbits.c
Examining data/savi-1.5.1/src/orbit_utils.c
Examining data/savi-1.5.1/src/plane.c
Examining data/savi-1.5.1/src/satCmd.c
Examining data/savi-1.5.1/src/Satellite.c
Examining data/savi-1.5.1/src/satellites.c
Examining data/savi-1.5.1/src/sats.c
Examining data/savi-1.5.1/src/stars.c
Examining data/savi-1.5.1/src/stats_utils.c
Examining data/savi-1.5.1/src/sun.c
Examining data/savi-1.5.1/src/tcl_utils.c
Examining data/savi-1.5.1/src/time.c
Examining data/savi-1.5.1/src/utils.c

FINAL RESULTS:

data/savi-1.5.1/src/Satellite.c:81: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((char *)&s->name, name);
data/savi-1.5.1/src/coverage.c:610:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(&coverStr[strlen(coverStr)], "%3.0f%s", coverage, ((lat > -85) ? " " : "\n"));
data/savi-1.5.1/src/coverage.c:612: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, coverStr);
data/savi-1.5.1/src/coverage_vis.c:687:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cmd, format1, total_coverage(projection, TRUE, g));
data/savi-1.5.1/src/coverage_vis.c:689:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cmd, format2, mean_coverage(projection, g));
data/savi-1.5.1/src/fisheye.c:334:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cmd, "set fisheye_lat_lon \"%s\"", plotStr);
data/savi-1.5.1/src/fisheye.c:392:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cmd,"%s create oval %i %i %i %i -outline red -width 1 -tags mask_elevation", fisheye_widget, x_start, x_start, y_end, y_end);
data/savi-1.5.1/src/fisheye.c:430:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmd, "%s create line %i %i %i %i -fill %s -tags equator",
data/savi-1.5.1/src/fisheye.c:488:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(plotStr, "{%d %s}", sl->s->id, sl->s->name);
data/savi-1.5.1/src/fisheye.c:490:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(plotStr, "{%s}", sl->s->name);
data/savi-1.5.1/src/fisheye.c:506:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(plotStr, "{%d %s %.1f}", sl->s->id, sl->s->name, interval_time);
data/savi-1.5.1/src/fisheye.c:508:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(plotStr, "{%s %.1f}", sl->s->name, interval_time);
data/savi-1.5.1/src/fisheye.c:520:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf(plotStr, "{%d %s}", sl->s->id, sl->s->name);
data/savi-1.5.1/src/fisheye.c:522:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf(plotStr, "{%s}", sl->s->name);
data/savi-1.5.1/src/fisheye.c:539:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmd, "%s create text %i %i -text %s %s -font {%s} -tags labels",
data/savi-1.5.1/src/fisheye.c:560:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "%s create line %i %i %i %i -fill %s -tags crosses",
data/savi-1.5.1/src/fisheye.c:563:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "%s create line %i %i %i %i -fill %s -tags crosses",
data/savi-1.5.1/src/fisheye.c:596:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cmd, "%s create text %i %i -text {%s} -anchor ne -font {%s} -fill green -tags labels",
data/savi-1.5.1/src/fisheye.c:615:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(cmd, "%s create text %i %i %s -font {%s} -fill blue -tags labels",
data/savi-1.5.1/src/fisheye.c:622:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "%s create text %i %i -text {%s} -anchor sw -font {%s} -fill blue -tags labels",
data/savi-1.5.1/src/gv_init.c:114: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, "\n      Save the jpeg colour map then copy to " DETAILED_TEXTUREMAP_NAME);
data/savi-1.5.1/src/main.c:278:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:305:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:358:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:386:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:395:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:400:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:424:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:432:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:440:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:446:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:456:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:463:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:469:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:475:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:480:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:486:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:492:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:498:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:505:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(switches, temp_buffer);
data/savi-1.5.1/src/main.c:516:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(command_line, argv[0]);
data/savi-1.5.1/src/main.c:521:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(command_line, temp_switches);
data/savi-1.5.1/src/main.c:530:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command_line, " %s", script_filename);
data/savi-1.5.1/src/sats.c:554:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(result,
data/savi-1.5.1/src/sats.c:905: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(result, (char *) &s->name);
data/savi-1.5.1/src/tcl_utils.c:294:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cmd, "set auto_path [linsert $auto_path 0 %s]", path);
data/savi-1.5.1/src/time.c:58:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cmd, format, days, hours, mins, tensecs, secs);
data/savi-1.5.1/src/time.c:84:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cmd, format, days, hours, mins, tensecs, secs);
data/savi-1.5.1/src/time.c:110:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cmd, format, days, hours, mins, tensecs, secs);
data/savi-1.5.1/src/utils.c:196: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, format, msg);
data/savi-1.5.1/src/main.c:109: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("SAVI")) {
data/savi-1.5.1/src/main.c:114: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("TCL_LIBRARY")) {
data/savi-1.5.1/src/main.c:119: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("TK_LIBRARY")) {
data/savi-1.5.1/src/cones.c:327: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(name + 5, "%-10d", s->id);
data/savi-1.5.1/src/coverage.c:142: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 n = atoi(argv[2]);
data/savi-1.5.1/src/coverage.c:143:14:  [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 flag = atoi(argv[3]);
data/savi-1.5.1/src/coverage.c:477: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 t = atoi(argv[2]);
data/savi-1.5.1/src/coverage.c: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 coverStr[LENGTH_STRING_BUFFER] = "";
data/savi-1.5.1/src/coverage_vis.c:111:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char colors[60];
data/savi-1.5.1/src/coverage_vis.c:112:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char noaccess_colors[60];
data/savi-1.5.1/src/coverage_vis.c:394:20:  [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 (NULL == (f = fopen(name, "w"))) {
data/savi-1.5.1/src/coverage_vis.c:705:20:  [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 (NULL == (f = fopen(filename, "r"))) {
data/savi-1.5.1/src/coverage_vis.c:785: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(foreground, map_pointer, map_size);
data/savi-1.5.1/src/fisheye.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char plotStr[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/fisheye.c:95: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(plotStr, "%i %2.0f' %c %i %2.0f' %c", lat_deg, lat_min, latNS, lon_deg, lon_min, lonEW);
data/savi-1.5.1/src/fisheye.c:321:29:  [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).
  double new_lat = (double) atoi(argv[2]);
data/savi-1.5.1/src/fisheye.c:322:29:  [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).
  double new_lon = (double) atoi(argv[4]);	/* was 3 gjl */
data/savi-1.5.1/src/fisheye.c:353:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char attributes[30];
data/savi-1.5.1/src/fisheye.c:360: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(cmd, "fisheye(delete)");
data/savi-1.5.1/src/fisheye.c:379: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(cmd,"fisheye(resize)");
data/savi-1.5.1/src/fisheye.c:402: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(attributes, "-anchor ne -fill blue");
data/savi-1.5.1/src/fisheye.c:404: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(attributes, "-anchor nw -fill blue");
data/savi-1.5.1/src/fisheye.c:409: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(plotStr, "purple");
data/savi-1.5.1/src/fisheye.c:424: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(plotStr, "darkgray");
data/savi-1.5.1/src/fisheye.c:494:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(plotStr, "{%d}", sl->s->id);
data/savi-1.5.1/src/fisheye.c:497:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(plotStr, "{}");
data/savi-1.5.1/src/fisheye.c:512:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	        sprintf(plotStr, "{%d %.1f}", sl->s->id, interval_time);
data/savi-1.5.1/src/fisheye.c:514: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(plotStr, "{%.1f}", interval_time);
data/savi-1.5.1/src/fisheye.c:526:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	        sprintf(plotStr, "{%d}", sl->s->id);
data/savi-1.5.1/src/fisheye.c:529: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(plotStr, "{}");
data/savi-1.5.1/src/fisheye.c:548: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(plotStr, "pink");
data/savi-1.5.1/src/fisheye.c:550: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(plotStr, "red");
data/savi-1.5.1/src/fisheye.c:552: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(plotStr, "green");
data/savi-1.5.1/src/fisheye.c:595: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(plotStr, "%i in mask", sats_above_mask);
data/savi-1.5.1/src/fisheye.c:604:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(plotStr, "-text {%i in view} -anchor ne", sats_visible);
data/savi-1.5.1/src/fisheye.c:610: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(plotStr, "-text {%i in view} -anchor se", sats_visible);
data/savi-1.5.1/src/footprints.c:358: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(name + 10, "%-10d", s->id);
data/savi-1.5.1/src/gv_init.c:67: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(tname + 6, "%-10d", s->id);
data/savi-1.5.1/src/gv_init.c:175:26:  [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 (NULL == (f = fopen(DETAILED_TEXTUREMAP_NAME, "r"))) {
data/savi-1.5.1/src/gv_utils.c:159:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char version_str[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/gv_utils.c:332:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
gv_transform(const char *name, double m[4][4])
data/savi-1.5.1/src/include/Satellite.h:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[SATELLITE_NAME_LENGTH];      /*      name identifier        */
data/savi-1.5.1/src/include/globals.h:33:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char cmd[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/include/globals.h:35:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char command_switches[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/include/gv_utils.h:60:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void gv_transform(const char *, double [4][4]);
data/savi-1.5.1/src/main.c:136: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 temp_buffer[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/main.c:137: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 temp_switches[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/main.c:195: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.
	if (sscanf((char *) argv[i], "%i", &NUM_COLORS) == 1) {
data/savi-1.5.1/src/main.c:221: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.
	if (sscanf((char *) argv[i], "%i", &coverage_display_center_longitude) == 1) {
data/savi-1.5.1/src/main.c:234: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.
	if (sscanf((char *) argv[i], "%i", &map_view_height) != 1) {
data/savi-1.5.1/src/main.c:241:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        if (sscanf((char *) argv[i], "%i", &min_transmit_altitude) != 1) {
data/savi-1.5.1/src/main.c:248:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        if (sscanf((char *) argv[i], "%i", &max_transmit_altitude) != 1) {
data/savi-1.5.1/src/main.c:256:34:  [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 (NULL == (script_file = fopen(argv[i], "r"))) {
data/savi-1.5.1/src/main.c:277: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(temp_buffer," -version");
data/savi-1.5.1/src/main.c:304: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(temp_buffer," -help");
data/savi-1.5.1/src/main.c:357: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(temp_buffer," -fake-geomview");
data/savi-1.5.1/src/main.c:385: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(temp_buffer," -levels %i", NUM_COLORS);
data/savi-1.5.1/src/main.c:394: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(temp_buffer, " -orbit-model J0");
data/savi-1.5.1/src/main.c:399: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(temp_buffer, " -orbit-model J2");
data/savi-1.5.1/src/main.c:423: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(temp_buffer, " -min-transmit-altitude %i", min_transmit_altitude);
data/savi-1.5.1/src/main.c:431: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(temp_buffer, " -max-transmit-altitude %i", max_transmit_altitude);
data/savi-1.5.1/src/main.c:439: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(temp_buffer, " -redrawn-menus");
data/savi-1.5.1/src/main.c:445: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(temp_buffer, " -debug");
data/savi-1.5.1/src/main.c:455: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(temp_buffer," -map-view-height %i", map_view_height);
data/savi-1.5.1/src/main.c:462: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(temp_buffer," -large-map");
data/savi-1.5.1/src/main.c:468: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(temp_buffer, " -map-view-middle %i", coverage_display_center_longitude);
data/savi-1.5.1/src/main.c:474: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(temp_buffer, " -geomview");
data/savi-1.5.1/src/main.c:479: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(temp_buffer, " -dynamic-texture-with-map");
data/savi-1.5.1/src/main.c:485: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(temp_buffer, " -gzip-compressed-textures");
data/savi-1.5.1/src/main.c:491: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(temp_buffer, " -uncompressed");
data/savi-1.5.1/src/main.c:497: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(temp_buffer, " -no-logo");
data/savi-1.5.1/src/main.c:504: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(temp_buffer, " -sun-lighting");
data/savi-1.5.1/src/orbits.c:123: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 n = atoi(argv[2]);
data/savi-1.5.1/src/orbits.c:124:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  unsigned int flag = atoi(argv[3]);
data/savi-1.5.1/src/orbits.c:232: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(name + 6, "%-10d", s->id);
data/savi-1.5.1/src/satellites.c:365: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 n = atoi(argv[2]);
data/savi-1.5.1/src/satellites.c:366:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  unsigned int flag = atoi(argv[3]);
data/savi-1.5.1/src/sats.c:483:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[10];
data/savi-1.5.1/src/sats.c:498: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(result, "%d", s->id);
data/savi-1.5.1/src/sats.c:534: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:539:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[300];
data/savi-1.5.1/src/sats.c:540: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 altitude[15];
data/savi-1.5.1/src/sats.c:545: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(altitude,"%12.2f", s->oe.a);
data/savi-1.5.1/src/sats.c:547: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(altitude,"%11.2f", s->oe.a);
data/savi-1.5.1/src/sats.c:549: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(altitude,"%10.2f", s->oe.a);
data/savi-1.5.1/src/sats.c:551: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(altitude,"%9.2f", s->oe.a);
data/savi-1.5.1/src/sats.c:591: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:632:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(argv[9])) {
data/savi-1.5.1/src/sats.c:645: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).
    s->can_display_satellite = atoi(argv[9]) ? 1 : 0;
data/savi-1.5.1/src/sats.c:646:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    s->can_display_orbit = atoi(argv[10]) ? 1 : 0;
data/savi-1.5.1/src/sats.c:647:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    s->can_display_coverage = atoi(argv[11]) ? 1 : 0;
data/savi-1.5.1/src/sats.c:670: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:695: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:720: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:744:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[10];
data/savi-1.5.1/src/sats.c:745: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 n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:763: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(result, "%d", s->id);
data/savi-1.5.1/src/sats.c:784:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[20];
data/savi-1.5.1/src/sats.c:832:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[20];
data/savi-1.5.1/src/sats.c:857: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(result, "%d", n);
data/savi-1.5.1/src/sats.c:874:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:894:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[SATELLITE_NAME_LENGTH] = "                        ";
data/savi-1.5.1/src/sats.c:896:7:  [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).
  i = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:927:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char result[12] = "            ";
data/savi-1.5.1/src/sats.c:929:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  n = atoi(argv[2]);
data/savi-1.5.1/src/sats.c:933: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(result, "%d", s->id);
data/savi-1.5.1/src/sats.c:935: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(result, "%d", NOT_OK);
data/savi-1.5.1/src/sun.c:103: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[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/sun.c:124: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,"%f %f %f 0", x, y, z);
data/savi-1.5.1/src/sun.c:130: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(buf,"%f %f %f", x, y, z);
data/savi-1.5.1/src/sun.c:132: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(buf, " %f %f %f",2*x, 2*y, 2*z);
data/savi-1.5.1/src/tcl_utils.c:329: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.
  const char *argv[1];
data/savi-1.5.1/src/utils.c:46: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[LENGTH_STRING_BUFFER];
data/savi-1.5.1/src/utils.c:51:24:  [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 (NULL == (in_fp = fopen(filename, "r")))
data/savi-1.5.1/src/Satellite.c:78:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen(name);
data/savi-1.5.1/src/coverage.c:610: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).
        sprintf(&coverStr[strlen(coverStr)], "%3.0f%s", coverage, ((lat > -85) ? " " : "\n"));
data/savi-1.5.1/src/coverage_vis.c:723:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(f);
data/savi-1.5.1/src/coverage_vis.c:728:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(f);
data/savi-1.5.1/src/fisheye.c:606:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(plotStr, " ");
data/savi-1.5.1/src/gv_utils.c:170:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = fgetc(gv_in);
data/savi-1.5.1/src/gv_utils.c:176:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *p = (char) fgetc(gv_in);
data/savi-1.5.1/src/gv_utils.c:455:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = (char)fgetc(gv_in);
data/savi-1.5.1/src/main.c:261: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).
	length_filename = strlen(script_filename);
data/savi-1.5.1/src/main.c:279: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:306: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:359: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:387: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:396: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:401: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:425: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:433: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:441: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:447: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:457: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:464: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:470: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:476: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).
    switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:481: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:487: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:493: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:499: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:506: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).
      switches += strlen(temp_buffer);
data/savi-1.5.1/src/main.c:510: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).
  length_savi_name = strlen(argv[0]);
data/savi-1.5.1/src/sats.c:900:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen((char *)&s->name);
data/savi-1.5.1/src/utils.c:70:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getc(fp);
data/savi-1.5.1/src/utils.c:76:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getc(fp);
data/savi-1.5.1/src/utils.c:79:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    c = getc(fp);

ANALYSIS SUMMARY:

Hits = 197
Lines analyzed = 11418 in approximately 0.34 seconds (33353 lines/second)
Physical Source Lines of Code (SLOC) = 6935
Hits@level = [0]  98 [1]  33 [2] 111 [3]   3 [4]  50 [5]   0
Hits@level+ = [0+] 295 [1+] 197 [2+] 164 [3+]  53 [4+]  50 [5+]   0
Hits/KSLOC@level+ = [0+] 42.5379 [1+] 28.4066 [2+] 23.6482 [3+] 7.64239 [4+] 7.20981 [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.