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/xplanet-1.3.0/src/sphericalToPixel.h
Examining data/xplanet-1.3.0/src/ssec.cpp
Examining data/xplanet-1.3.0/src/Options.h
Examining data/xplanet-1.3.0/src/readOriginFile.h
Examining data/xplanet-1.3.0/src/Ring.cpp
Examining data/xplanet-1.3.0/src/setPositions.cpp
Examining data/xplanet-1.3.0/src/libplanet/Planet.h
Examining data/xplanet-1.3.0/src/libplanet/Planet.cpp
Examining data/xplanet-1.3.0/src/createMap.h
Examining data/xplanet-1.3.0/src/findFile.h
Examining data/xplanet-1.3.0/src/ParseGeom.c
Examining data/xplanet-1.3.0/src/parse.h
Examining data/xplanet-1.3.0/src/libmultiple/libmultiple.h
Examining data/xplanet-1.3.0/src/libmultiple/drawEllipsoid.cpp
Examining data/xplanet-1.3.0/src/libmultiple/RayleighScattering.h
Examining data/xplanet-1.3.0/src/libmultiple/drawRings.cpp
Examining data/xplanet-1.3.0/src/libmultiple/drawSphere.cpp
Examining data/xplanet-1.3.0/src/libmultiple/drawSunGlare.cpp
Examining data/xplanet-1.3.0/src/libmultiple/addOrbits.cpp
Examining data/xplanet-1.3.0/src/libmultiple/drawStars.cpp
Examining data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp
Examining data/xplanet-1.3.0/src/drawMultipleBodies.cpp
Examining data/xplanet-1.3.0/src/Satellite.h
Examining data/xplanet-1.3.0/src/parseColor.cpp
Examining data/xplanet-1.3.0/src/xpUtil.h
Examining data/xplanet-1.3.0/src/PlanetProperties.h
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp_time.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp4sdp4.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp_math.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/main.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp_obs.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/solar.c
Examining data/xplanet-1.3.0/src/libsgp4sdp4/sgp4sdp4.h
Examining data/xplanet-1.3.0/src/findBodyXYZ.h
Examining data/xplanet-1.3.0/src/ParseGeom.h
Examining data/xplanet-1.3.0/src/libimage/Image.cpp
Examining data/xplanet-1.3.0/src/libimage/pnm.c
Examining data/xplanet-1.3.0/src/libimage/WriteImage.cpp
Examining data/xplanet-1.3.0/src/libimage/bmp.c
Examining data/xplanet-1.3.0/src/libimage/tiff.c
Examining data/xplanet-1.3.0/src/libimage/Image.h
Examining data/xplanet-1.3.0/src/libimage/jpeg.c
Examining data/xplanet-1.3.0/src/libimage/gif.c
Examining data/xplanet-1.3.0/src/libimage/ReadImage.cpp
Examining data/xplanet-1.3.0/src/libimage/png.c
Examining data/xplanet-1.3.0/src/Ring.h
Examining data/xplanet-1.3.0/src/View.cpp
Examining data/xplanet-1.3.0/src/Separation.h
Examining data/xplanet-1.3.0/src/parseColor.h
Examining data/xplanet-1.3.0/src/xplanet.cpp
Examining data/xplanet-1.3.0/src/printVersion.cpp
Examining data/xplanet-1.3.0/src/Map.h
Examining data/xplanet-1.3.0/src/libannotate/drawArc.cpp
Examining data/xplanet-1.3.0/src/libannotate/Symbol.h
Examining data/xplanet-1.3.0/src/libannotate/Symbol.cpp
Examining data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp
Examining data/xplanet-1.3.0/src/libannotate/arrangeMarkers.cpp
Examining data/xplanet-1.3.0/src/libannotate/Icon.cpp
Examining data/xplanet-1.3.0/src/libannotate/Text.h
Examining data/xplanet-1.3.0/src/libannotate/LineSegment.cpp
Examining data/xplanet-1.3.0/src/libannotate/drawCircle.h
Examining data/xplanet-1.3.0/src/libannotate/libannotate.h
Examining data/xplanet-1.3.0/src/libannotate/drawCircle.cpp
Examining data/xplanet-1.3.0/src/libannotate/Annotation.h
Examining data/xplanet-1.3.0/src/libannotate/Annotation.cpp
Examining data/xplanet-1.3.0/src/libannotate/drawArc.h
Examining data/xplanet-1.3.0/src/libannotate/LineSegment.h
Examining data/xplanet-1.3.0/src/libannotate/Text.cpp
Examining data/xplanet-1.3.0/src/libannotate/Icon.h
Examining data/xplanet-1.3.0/src/libannotate/addArcs.cpp
Examining data/xplanet-1.3.0/src/libannotate/addMarkers.cpp
Examining data/xplanet-1.3.0/src/libannotate/addSatellites.cpp
Examining data/xplanet-1.3.0/src/body.h
Examining data/xplanet-1.3.0/src/setPositions.h
Examining data/xplanet-1.3.0/src/findFile.cpp
Examining data/xplanet-1.3.0/src/readOriginFile.cpp
Examining data/xplanet-1.3.0/src/PlanetProperties.cpp
Examining data/xplanet-1.3.0/src/satrings.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionBonne.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionOrthographic.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionHemisphere.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionMollweide.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAzimutEqualArea.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionRectangular.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionMollweide.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionPolyconic.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionTSC.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAncient.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionLambert.cpp
Examining data/xplanet-1.3.0/src/libprojection/getProjection.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionMercator.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionGnomonic.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionPolyconic.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionBase.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionHemisphere.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionOrthographic.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionIcosagnomonic.h
Examining data/xplanet-1.3.0/src/libprojection/libprojection.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionBase.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionPeters.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAzimutEqualArea.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionLambert.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionPeters.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAncient.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionBonne.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionMercator.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAzimuthal.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionTSC.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionRectangular.cpp
Examining data/xplanet-1.3.0/src/libprojection/ProjectionGnomonic.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionAzimuthal.h
Examining data/xplanet-1.3.0/src/libprojection/ProjectionIcosagnomonic.cpp
Examining data/xplanet-1.3.0/src/drawProjection.cpp
Examining data/xplanet-1.3.0/src/Map.cpp
Examining data/xplanet-1.3.0/src/libephemeris/jpleph.h
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/saturn.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/libmoons.h
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/tass17.h
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/earth.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/pluto.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/uranus.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/mars.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/jupiter.cpp
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/elp82b.h
Examining data/xplanet-1.3.0/src/libephemeris/libmoons/neptune.cpp
Examining data/xplanet-1.3.0/src/libephemeris/Ephemeris.cpp
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisHigh.cpp
Examining data/xplanet-1.3.0/src/libephemeris/jpleph.cpp
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisLow.h
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisSpice.cpp
Examining data/xplanet-1.3.0/src/libephemeris/ephemerisWrapper.h
Examining data/xplanet-1.3.0/src/libephemeris/ephemerisWrapper.cpp
Examining data/xplanet-1.3.0/src/libephemeris/pluto.cpp
Examining data/xplanet-1.3.0/src/libephemeris/jpl_int.h
Examining data/xplanet-1.3.0/src/libephemeris/Ephemeris.h
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisLow.cpp
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisSpice.h
Examining data/xplanet-1.3.0/src/libephemeris/EphemerisHigh.h
Examining data/xplanet-1.3.0/src/View.h
Examining data/xplanet-1.3.0/src/buildPlanetMap.cpp
Examining data/xplanet-1.3.0/src/Separation.cpp
Examining data/xplanet-1.3.0/src/libdisplay/TimerMacAqua.h
Examining data/xplanet-1.3.0/src/libdisplay/DisplayX11.h
Examining data/xplanet-1.3.0/src/libdisplay/Timer.cpp
Examining data/xplanet-1.3.0/src/libdisplay/TimerX11.cpp
Examining data/xplanet-1.3.0/src/libdisplay/DisplayBase.h
Examining data/xplanet-1.3.0/src/libdisplay/TextRendererFT2.cpp
Examining data/xplanet-1.3.0/src/libdisplay/libdisplay.h
Examining data/xplanet-1.3.0/src/libdisplay/libtimer.h
Examining data/xplanet-1.3.0/src/libdisplay/TextRendererPangoFT2.h
Examining data/xplanet-1.3.0/src/libdisplay/DisplayOutput.cpp
Examining data/xplanet-1.3.0/src/libdisplay/getTimer.cpp
Examining data/xplanet-1.3.0/src/libdisplay/TimerX11.h
Examining data/xplanet-1.3.0/src/libdisplay/TimerMacAqua.cpp
Examining data/xplanet-1.3.0/src/libdisplay/DisplayMacAqua.cpp
Examining data/xplanet-1.3.0/src/libdisplay/DisplayMSWin.h
Examining data/xplanet-1.3.0/src/libdisplay/getDisplay.cpp
Examining data/xplanet-1.3.0/src/libdisplay/vroot.h
Examining data/xplanet-1.3.0/src/libdisplay/TextRenderer.cpp
Examining data/xplanet-1.3.0/src/libdisplay/TextRendererFT2.h
Examining data/xplanet-1.3.0/src/libdisplay/DisplayOutput.h
Examining data/xplanet-1.3.0/src/libdisplay/DisplayMSWin.cpp
Examining data/xplanet-1.3.0/src/libdisplay/Timer.h
Examining data/xplanet-1.3.0/src/libdisplay/DisplayMacAqua.h
Examining data/xplanet-1.3.0/src/libdisplay/TextRenderer.h
Examining data/xplanet-1.3.0/src/libdisplay/getTextRenderer.cpp
Examining data/xplanet-1.3.0/src/libdisplay/TextRendererPangoFT2.cpp
Examining data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp
Examining data/xplanet-1.3.0/src/libdisplay/DisplayX11.cpp
Examining data/xplanet-1.3.0/src/Satellite.cpp
Examining data/xplanet-1.3.0/src/getopt1.c
Examining data/xplanet-1.3.0/src/buildPlanetMap.h
Examining data/xplanet-1.3.0/src/Options.cpp
Examining data/xplanet-1.3.0/src/getopt.c
Examining data/xplanet-1.3.0/src/getopt.h
Examining data/xplanet-1.3.0/src/xpGetopt.h
Examining data/xplanet-1.3.0/src/createMap.cpp
Examining data/xplanet-1.3.0/src/parse.cpp
Examining data/xplanet-1.3.0/src/sphericalToPixel.cpp
Examining data/xplanet-1.3.0/src/keywords.h
Examining data/xplanet-1.3.0/src/xpUtil.cpp
Examining data/xplanet-1.3.0/src/findBodyXYZ.cpp
Examining data/xplanet-1.3.0/src/readConfig.cpp

FINAL RESULTS:

data/xplanet-1.3.0/src/libdisplay/DisplayMacAqua.cpp:84:21:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    char *tmpFile = mktemp(templateFile);
data/xplanet-1.3.0/src/libimage/WriteImage.cpp:60: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(lowercase, extension);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:223:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buffer, 64, limbTemplate_.c_str(), (int) (phase_d[ip]));
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:295:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buffer, 64, diskTemplate_.c_str(), (int) (phase_d[ip]));
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:389:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(line, "TEMPLATES %s %s", templ1, templ2);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:462:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(line, format, &size) == 0) break;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:496:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(line, format, &value) == 0) break;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:693:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(buffer, 64, thisTemplate.c_str(), phase);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:728:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(buffer, 64, thisTemplate.c_str(), phase);
data/xplanet-1.3.0/src/xplanet.cpp:153:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            if (system(options->PrevCommand().c_str()) != 0)
data/xplanet-1.3.0/src/xplanet.cpp:232:17:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            if (system(options->PostCommand().c_str()) != 0)
data/xplanet-1.3.0/src/Options.cpp: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 *homeDir = getenv("HOME");
data/xplanet-1.3.0/src/Options.cpp:188:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom((unsigned int) tv_sec);
data/xplanet-1.3.0/src/Options.cpp:741:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            longitude_ = random() % 360;
data/xplanet-1.3.0/src/Options.cpp:745:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            latitude_ = (random() % 2000)/1000.0 - 1;
data/xplanet-1.3.0/src/Options.cpp:748:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            rotate0_ = random() % 360;
data/xplanet-1.3.0/src/getopt.c:214: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/xplanet-1.3.0/src/getopt.c:215: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/xplanet-1.3.0/src/getopt.c:400: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/xplanet-1.3.0/src/getopt.c:1169: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/xplanet-1.3.0/src/getopt.c:1199: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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/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/xplanet-1.3.0/src/libannotate/addMarkers.cpp:357:33:  [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 *tzEnv = getenv("TZ");
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:218:23:  [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 *tzEnv = getenv("TZ");
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:582:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                int j = random() % width;
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:583:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                int k = random() % height;
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:584:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                int brightness = random() % 256;
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:624:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *tmpdir = getenv("TMPDIR");
data/xplanet-1.3.0/src/libdisplay/vroot.h:97:26:  [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 *xss_id = getenv("XSCREENSAVER_WINDOW");
data/xplanet-1.3.0/src/libprojection/getProjection.cpp:57:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    int index = static_cast<int> (random() % projectionTypes.size());
data/xplanet-1.3.0/src/setPositions.cpp:106:35:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            body target = (body) (random() % RANDOM_BODY);
data/xplanet-1.3.0/src/setPositions.cpp:175:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            longitude =  random() % 360;
data/xplanet-1.3.0/src/setPositions.cpp:181:25:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            latitude = (random() % 2000)/1000.0 - 1;
data/xplanet-1.3.0/src/setPositions.cpp:186:23:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            rotate0 = random() % 360;
data/xplanet-1.3.0/src/setPositions.cpp:258:48:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            options->Origin(static_cast<body> (random() % RANDOM_BODY));
data/xplanet-1.3.0/src/xpUtil.cpp:303: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.
    char *get_tz = getenv("TZ");
data/xplanet-1.3.0/src/xpUtil.cpp:665:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                char *lang = getenv("LANG");
data/xplanet-1.3.0/src/xplanet.cpp:62:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char *lang = getenv("LANG");
data/xplanet-1.3.0/src/Map.cpp:42: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(color_, tp->Color(), 3);
data/xplanet-1.3.0/src/Map.cpp:46: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(dayData_ + i, color_, 3);
data/xplanet-1.3.0/src/Map.cpp:49: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(nightData_, dayData_, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:65: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(mapData_, dayData_, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:90: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(color_, tp->Color(), 3);
data/xplanet-1.3.0/src/Map.cpp:100: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(dayData_, day, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:111: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(nightData_, dayData_, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:117:13:  [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(nightData_, dayData_, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:125:13:  [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(nightData_, night, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:138: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(mapData_, dayData_, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:218: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 shaded[3];
data/xplanet-1.3.0/src/Map.cpp:373:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(new_clouds, clouds, 3 * area_);
data/xplanet-1.3.0/src/Map.cpp:798:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Map::GetPixel(const double lat, double lon, unsigned char pixel[3]) const
data/xplanet-1.3.0/src/Map.cpp:808:13:  [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(pixel, color_, 3);
data/xplanet-1.3.0/src/Map.cpp:826:13:  [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(pixel, color_, 3);
data/xplanet-1.3.0/src/Map.cpp:845: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[4];
data/xplanet-1.3.0/src/Map.cpp:865: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(dest + 3 * (width_ * j + x1), src + 3 * (width_ * j + x1), 
data/xplanet-1.3.0/src/Map.cpp:940:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(mapData_ + 3 * (start_row + ipos),
data/xplanet-1.3.0/src/Map.cpp:998:33:  [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(mapData_ + ipos, nightData_ + ipos, 3);
data/xplanet-1.3.0/src/Map.h:33:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 GetPixel(const double lat, double lon, unsigned char pixel[3]) const;
data/xplanet-1.3.0/src/Map.h:49: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 color_[3];
data/xplanet-1.3.0/src/Options.h:190: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 color_[3];
data/xplanet-1.3.0/src/PlanetProperties.cpp:81:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(arcColor_, p.arcColor_, 3);
data/xplanet-1.3.0/src/PlanetProperties.cpp:82: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(color_, p.color_, 3);
data/xplanet-1.3.0/src/PlanetProperties.cpp:83: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(gridColor_, p.gridColor_, 3);
data/xplanet-1.3.0/src/PlanetProperties.cpp:84: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(markerColor_, p.markerColor_, 3);
data/xplanet-1.3.0/src/PlanetProperties.cpp:85: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(orbitColor_, p.orbitColor_, 3);
data/xplanet-1.3.0/src/PlanetProperties.cpp:86: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(textColor_, p.textColor_, 3);
data/xplanet-1.3.0/src/PlanetProperties.h:19:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ArcColor(unsigned char color[3]) { memcpy(arcColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:19:45:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void ArcColor(unsigned char color[3]) { memcpy(arcColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:43: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 Color(unsigned char color[3]) { memcpy(color_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:43:42:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void Color(unsigned char color[3]) { memcpy(color_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:55:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 GridColor(unsigned char color[3]) { memcpy(gridColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:55:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void GridColor(unsigned char color[3]) { memcpy(gridColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:58:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 MarkerColor(unsigned char color[3]) { memcpy(markerColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:58:48:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void MarkerColor(unsigned char color[3]) { memcpy(markerColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:67: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.
    void OrbitColor(unsigned char color[3]) { memcpy(orbitColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:67:47:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void OrbitColor(unsigned char color[3]) { memcpy(orbitColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:70:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 TextColor(unsigned char color[3]) { memcpy(textColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:70:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    void TextColor(unsigned char color[3]) { memcpy(textColor_, color, 3); };
data/xplanet-1.3.0/src/PlanetProperties.h:158: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 arcColor_[3];
data/xplanet-1.3.0/src/PlanetProperties.h:171: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 color_[3];
data/xplanet-1.3.0/src/PlanetProperties.h:180: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 gridColor_[3];
data/xplanet-1.3.0/src/PlanetProperties.h:187: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 markerColor_[3];
data/xplanet-1.3.0/src/PlanetProperties.h:199: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 orbitColor_[3];
data/xplanet-1.3.0/src/PlanetProperties.h:219: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 textColor_[3];
data/xplanet-1.3.0/src/Satellite.cpp:15:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Satellite::Satellite(char tle_lines[3][80])
data/xplanet-1.3.0/src/Satellite.cpp:20: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(tle_entry, tle_lines, 240);
data/xplanet-1.3.0/src/Satellite.h:12:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    Satellite(char tle_line[3][80]);
data/xplanet-1.3.0/src/Satellite.h:28: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 tle_entry[3][80];
data/xplanet-1.3.0/src/drawMultipleBodies.cpp:92: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.
                char buffer[128];
data/xplanet-1.3.0/src/drawMultipleBodies.cpp:149:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[128];
data/xplanet-1.3.0/src/drawMultipleBodies.cpp:312:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[256];
data/xplanet-1.3.0/src/drawMultipleBodies.cpp:370: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.
            char buffer[256];
data/xplanet-1.3.0/src/drawProjection.cpp:145: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.
        unsigned char black[3] = { 0, 0, 0 };
data/xplanet-1.3.0/src/drawProjection.cpp:199:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3];
data/xplanet-1.3.0/src/keywords.h:33: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.
const char * const keyWordString[LAST_WORD] =
data/xplanet-1.3.0/src/libannotate/Annotation.cpp:10:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Annotation::Annotation(const unsigned char color[3]) : width_(0), height_(0)
data/xplanet-1.3.0/src/libannotate/Annotation.cpp:12: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(color_, color, 3);
data/xplanet-1.3.0/src/libannotate/Annotation.h:11:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    Annotation(const unsigned char color[3]);
data/xplanet-1.3.0/src/libannotate/Annotation.h:23: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 color_[3];
data/xplanet-1.3.0/src/libannotate/Icon.cpp:29:13:  [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(transparent_, transparent, 3);
data/xplanet-1.3.0/src/libannotate/LineSegment.cpp:8:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
LineSegment::LineSegment(const unsigned char color[3], const int thickness,  
data/xplanet-1.3.0/src/libannotate/LineSegment.h:9:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    LineSegment(const unsigned char color[3], const int thickness,
data/xplanet-1.3.0/src/libannotate/Symbol.cpp:12:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Symbol::Symbol(const unsigned char color[3], 
data/xplanet-1.3.0/src/libannotate/Symbol.cpp:26:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3])
data/xplanet-1.3.0/src/libannotate/Symbol.cpp: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 black[3] = { 0, 0, 0 };
data/xplanet-1.3.0/src/libannotate/Symbol.h:9: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.
    Symbol(const unsigned char color[3], 
data/xplanet-1.3.0/src/libannotate/Symbol.h:22:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		    const unsigned char color[3]);
data/xplanet-1.3.0/src/libannotate/Text.cpp:15: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.
Text::Text(const unsigned char color[3], 
data/xplanet-1.3.0/src/libannotate/Text.h:11: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.
    Text(const unsigned char color[3], 
data/xplanet-1.3.0/src/libannotate/addArcs.cpp:43: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 color[3];
data/xplanet-1.3.0/src/libannotate/addArcs.cpp:48: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(color, planetProperties->ArcColor(), 3);
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:63:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char transparent_pixel[3];
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:428:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3];
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:429:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(color, planetProperties->MarkerColor(), 3);
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:479:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3];
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:480:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(color, options->Color(), 3);
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:91: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 color[3];
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:92: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(color, planetProperties->MarkerColor(), 3);
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:115: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 transparent_pixel[3];
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:225:24:  [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).
            outputFile.open(returnString, ios::app);
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:378:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char line[128];
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:394: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.
            char line[128];
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:490: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.
            char lines[3][80];
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:99: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 color[3] = { 255, 0, 0 };
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:113: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 transparent_pixel[3];
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:396: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.
            char buffer[256];
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:397: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.
            char shortName[10];
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:398:13:  [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(shortName, name.c_str(), 9);
data/xplanet-1.3.0/src/libannotate/drawArc.cpp:14: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.
        const unsigned char color[3], const int thickness, 
data/xplanet-1.3.0/src/libannotate/drawArc.h:14: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.
        const unsigned char color[3], const int thickness, 
data/xplanet-1.3.0/src/libannotate/drawCircle.cpp:17:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                     const unsigned char color[3], const int thickness, 
data/xplanet-1.3.0/src/libannotate/drawCircle.cpp:54: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.
           const unsigned char color[3], const int thickness,
data/xplanet-1.3.0/src/libannotate/drawCircle.h:13: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.
           const unsigned char color[3], const int thickness, 
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:74:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3], const double opacity)
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:82:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3], 
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:208:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char timeBuffer[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:287:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char obsString[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:312: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.
            char sunString[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:336:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char fovCString[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:359:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char distString[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:384: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.
            char illumString[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:425:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3])
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:451:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
DisplayBase::setPixel(const int x, const int y, const unsigned char pixel[3])
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:457:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
DisplayBase::setPixel(const int x, const int y, const unsigned char p[3],
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:464: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 pixel[3];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:465: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(pixel, p, 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:487: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(background, pixel, 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:491:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
DisplayBase::setPixel(const int x, const int y, const unsigned char p[3],
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:498: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 pixel[3];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:499: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(pixel, p, 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:516: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(background, pixel, 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:520:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
DisplayBase::getPixel(const int x, const int y, unsigned char pixel[3]) const
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:524: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(pixel, rgb_data + 3*(y*width_ + x), 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:536: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.
        unsigned char color[3];
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:545:21:  [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(rgb + ipos++, &color[j], 1);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:568:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rgb, image->getRGBData(), 3 * width * height);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.cpp:666:13:  [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(trueP + 3 * trueX, windowP + 3 * windowX, 3);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:28:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  const unsigned char color[3]);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:30:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 setPixel(const int x, const int y, const unsigned char pixel[3]);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:31:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 setPixel(const int x, const int y, const unsigned char pixel[3],
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:33:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 setPixel(const int x, const int y, const unsigned char pixel[3],
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:35:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 getPixel(const int x, const int y, unsigned char pixel[3]) const;
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:47:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  const unsigned char color[3], const double opacity);
data/xplanet-1.3.0/src/libdisplay/DisplayBase.h:49:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3], const double opacity);
data/xplanet-1.3.0/src/libdisplay/DisplayMSWin.cpp:111:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char tmpdir[MAX_PATH];
data/xplanet-1.3.0/src/libdisplay/DisplayMacAqua.cpp:82: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 templateFile[16];
data/xplanet-1.3.0/src/libdisplay/DisplayOutput.cpp:57:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[64];
data/xplanet-1.3.0/src/libdisplay/TextRenderer.cpp:28:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       const unsigned char color[3], const double opacity)
data/xplanet-1.3.0/src/libdisplay/TextRenderer.cpp:46:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3], 
data/xplanet-1.3.0/src/libdisplay/TextRenderer.cpp:57:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char black[3] = { 0, 0, 0 }; 
data/xplanet-1.3.0/src/libdisplay/TextRenderer.cpp:275:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                       const unsigned char color[3])
data/xplanet-1.3.0/src/libdisplay/TextRenderer.h:17:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  const unsigned char color[3], 
data/xplanet-1.3.0/src/libdisplay/TextRenderer.h:22:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3], 
data/xplanet-1.3.0/src/libdisplay/TextRenderer.h:32:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3]);
data/xplanet-1.3.0/src/libdisplay/TextRendererFT2.cpp:107:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3])
data/xplanet-1.3.0/src/libdisplay/TextRendererFT2.h:27:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3]);
data/xplanet-1.3.0/src/libdisplay/TextRendererPangoFT2.cpp:83:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3])
data/xplanet-1.3.0/src/libdisplay/TextRendererPangoFT2.h:26:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 color[3]);
data/xplanet-1.3.0/src/libephemeris/jpleph.cpp:568: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 title[84];
data/xplanet-1.3.0/src/libephemeris/jpleph.cpp:569:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *ifile = fopen( ephemeris_filename, "rb");
data/xplanet-1.3.0/src/libephemeris/jpleph.cpp:593: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).
   de_version = atoi( title + 26);
data/xplanet-1.3.0/src/libephemeris/jpleph.cpp:641: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( rval, &temp_data, sizeof( struct jpl_eph_data));
data/xplanet-1.3.0/src/libimage/Image.cpp:30: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(rgbData_, rgb, 3 * area_);
data/xplanet-1.3.0/src/libimage/Image.cpp:39: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(pngAlpha_, alpha, area_);
data/xplanet-1.3.0/src/libimage/Image.cpp:89:13:  [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_rgb + ipos,
data/xplanet-1.3.0/src/libimage/Image.cpp:221:13:  [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_rgb + 3*ipos, rgbData_ + 3*iipos, 3);
data/xplanet-1.3.0/src/libimage/Image.cpp:278: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[4];
data/xplanet-1.3.0/src/libimage/Image.cpp:293: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.
        unsigned char pixels[4];
data/xplanet-1.3.0/src/libimage/ReadImage.cpp:46: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[4];
data/xplanet-1.3.0/src/libimage/ReadImage.cpp:52:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(filename, "rb");
data/xplanet-1.3.0/src/libimage/WriteImage.cpp:65: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).
    outfile = fopen(filename, "wb");
data/xplanet-1.3.0/src/libimage/bmp.c:27: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 bfType[2];       /* "BM" */
data/xplanet-1.3.0/src/libimage/bmp.c:83:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen (filename, "wb");
data/xplanet-1.3.0/src/libimage/jpeg.c:36: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).
    FILE *infile = fopen(filename, "rb");
data/xplanet-1.3.0/src/libimage/png.c:33: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).
    FILE *infile = fopen(filename, "rb");
data/xplanet-1.3.0/src/libimage/png.c:144:13:  [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(ptr, row_pointers[i], 3 * *width);
data/xplanet-1.3.0/src/libimage/pnm.c:29: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).
    FILE *infile = fopen(filename, "rb");
data/xplanet-1.3.0/src/libimage/pnm.c:55:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(argv[0], "loadimage");
data/xplanet-1.3.0/src/libimage/tiff.c:46:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        rgb[0] = (unsigned char *) realloc(rgb[0], 3 * *width * *height);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:222:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[64];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:294:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[64];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:337:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:387:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char templ1[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:388:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char templ2[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:445:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:480:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:531:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
RayleighScattering::doubleToARGB(double x, unsigned char argb[4])
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:545:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
RayleighScattering::ARGBToDouble(unsigned char argb[4])
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:564: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.
        unsigned char rgb[dim0 * 3 * area];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:565: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.
        unsigned char alpha[dim0 * area];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:569: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.
        unsigned char argb[4];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:580:21:  [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(rgb+3*(il * area + it*dim1 + ii), 
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:602:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        FILE *outfile = fopen(buffer, "wb");
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:629: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).
    FILE *inFile = fopen(filename, "rb");
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:692: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.
            char buffer[64];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:710: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.
        unsigned char argb[4];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:727: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.
            char buffer[64];
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.h:77:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 doubleToARGB(double x, unsigned char argb[4]);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.h:79:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    double ARGBToDouble(unsigned char argb[4]);
data/xplanet-1.3.0/src/libmultiple/addOrbits.cpp:17:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int numTimes, const unsigned char color[3],
data/xplanet-1.3.0/src/libmultiple/drawEllipsoid.cpp:19: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 color[3];
data/xplanet-1.3.0/src/libmultiple/drawRings.cpp:85: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 ring_color[3] = {255, 224, 209};
data/xplanet-1.3.0/src/libmultiple/drawRings.cpp:86: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 pixel[3];
data/xplanet-1.3.0/src/libmultiple/drawSphere.cpp:21: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 color[3];
data/xplanet-1.3.0/src/libmultiple/drawStars.cpp:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/libprojection/ProjectionBonne.cpp:37: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.
            char buffer[256];
data/xplanet-1.3.0/src/libprojection/ProjectionGnomonic.cpp:48: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.
            char buffer[256];
data/xplanet-1.3.0/src/libprojection/ProjectionMercator.cpp:26: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.
            char buffer[256];
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:63: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
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:72:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if( (fp = fopen( tle_file, "r")) == NULL )
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:133: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(ephem,"SDP4");
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:135: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(ephem,"SGP4");
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:169: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( sat_status, "Eclipsed" );
data/xplanet-1.3.0/src/libsgp4sdp4/main.c:171: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( sat_status, "In Sunlight" );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp4sdp4.h:40: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
data/xplanet-1.3.0/src/libsgp4sdp4/sgp4sdp4.h:173: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.
int     Get_Next_Tle_Set( char lines[3][80], tle_t *tle );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:81: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 buff[15];
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:87:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  tle->catnr = atoi(buff);
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:124:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  tle->elset = atoi(buff);
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:168:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Get_Next_Tle_Set( char line[3][80], tle_t *tle)
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:173: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 tle_set[139]; /* Two lines of a TLE set */
data/xplanet-1.3.0/src/parse.cpp:156: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.
        unsigned char RGB[3];
data/xplanet-1.3.0/src/parse.cpp:193: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.
        unsigned char RGB[3];
data/xplanet-1.3.0/src/parse.cpp:226: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.
        unsigned char RGB[3];
data/xplanet-1.3.0/src/parse.cpp:265: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.
        unsigned char RGB[3];
data/xplanet-1.3.0/src/parseColor.cpp:28:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[128], name[128];
data/xplanet-1.3.0/src/parseColor.cpp:55:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
parseColor(string color, unsigned char RGB[3], string &failed)
data/xplanet-1.3.0/src/parseColor.cpp:105:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
parseColor(string color, unsigned char RGB[3])
data/xplanet-1.3.0/src/parseColor.h:7:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
parseColor(std::string color, unsigned char RGB[3]);
data/xplanet-1.3.0/src/parseColor.h:10:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
parseColor(std::string color, unsigned char RGB[3], std::string &failed);
data/xplanet-1.3.0/src/readConfig.cpp:52:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readConfig.cpp:182:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readConfig.cpp:247:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readConfig.cpp:299:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readConfig.cpp:406:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readConfig.cpp:476:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char color[3] = { (unsigned char)(r & 0xff), (unsigned char)(g & 0xff), (unsigned char)(b & 0xff) };
data/xplanet-1.3.0/src/readOriginFile.cpp:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/xplanet-1.3.0/src/readOriginFile.cpp:99:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/xplanet-1.3.0/src/satrings.h:17:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const unsigned char ring_color[3] = {255, 224, 209};
data/xplanet-1.3.0/src/ssec.cpp:112:13:  [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(rgb + ipos, moll + 3 * (jj * image_width + ii), 3);
data/xplanet-1.3.0/src/xpUtil.cpp:276:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timeString[16];
data/xplanet-1.3.0/src/xpUtil.cpp:527: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(outBuf, inBuf, MAX_LINE_LENGTH);
data/xplanet-1.3.0/src/xpUtil.cpp:591:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer_UTF8[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/xpUtil.cpp:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer_native_format[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/xpUtil.cpp:601:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer_native[MAX_LINE_LENGTH];
data/xplanet-1.3.0/src/Options.cpp:562:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(name) < 5)
data/xplanet-1.3.0/src/Options.cpp:576:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(name) < 6)
data/xplanet-1.3.0/src/Options.cpp:662:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(optarg) < 5)
data/xplanet-1.3.0/src/Options.cpp:675:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(optarg) < 6)
data/xplanet-1.3.0/src/Options.cpp:838:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(optarg) < 5)
data/xplanet-1.3.0/src/Options.cpp:852:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(optarg) < 6)
data/xplanet-1.3.0/src/ParseGeom.c:51: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).
	int i, len = strlen (what);
data/xplanet-1.3.0/src/getopt.c:237: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/xplanet-1.3.0/src/getopt.c:240: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/xplanet-1.3.0/src/getopt.c:431: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/xplanet-1.3.0/src/getopt.c:659: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/xplanet-1.3.0/src/getopt.c:702: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/xplanet-1.3.0/src/getopt.c:764: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/xplanet-1.3.0/src/getopt.c:797: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/xplanet-1.3.0/src/getopt.c:802: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/xplanet-1.3.0/src/getopt.c:979: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/xplanet-1.3.0/src/getopt.c:1018: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/xplanet-1.3.0/src/getopt.c:1055: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/xplanet-1.3.0/src/getopt.c:1086: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/xplanet-1.3.0/src/getopt.c:1090: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/xplanet-1.3.0/src/libannotate/addArcs.cpp:37:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) return;
data/xplanet-1.3.0/src/libannotate/addArcs.cpp:66: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).
    while (static_cast<unsigned int> (i) < strlen(line))
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:40:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) return;
data/xplanet-1.3.0/src/libannotate/addMarkers.cpp:65: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).
    while (static_cast<unsigned int> (i) < strlen(line))
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:85:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) return;
data/xplanet-1.3.0/src/libannotate/addSatellites.cpp:117: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).
    while (static_cast<unsigned int> (i) < strlen(line))
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:90:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) return;
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:124: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).
    while (static_cast<unsigned int> (i) < strlen(line))
data/xplanet-1.3.0/src/libannotate/addSpiceObjects.cpp:533:58:  [1] (buffer) strlen:
  Does not handle 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 (static_cast<unsigned int> (ii) > strlen(line))
data/xplanet-1.3.0/src/libdisplay/DisplayMacAqua.cpp:83:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(templateFile, "Xplanet.XXXXXX", 16);
data/xplanet-1.3.0/src/libdisplay/TimerX11.cpp:102:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(100000);  // sleep for 1/10 second
data/xplanet-1.3.0/src/libimage/WriteImage.cpp:59:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lowercase = (char *) malloc(strlen(extension) + 1);
data/xplanet-1.3.0/src/libimage/bmp.c:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(bmph.bfType, "BM", 2);
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:382: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 (static_cast<unsigned int> (i) > strlen(line)) break;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:384:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) continue;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:456: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 (static_cast<unsigned int> (i) > strlen(line)) break;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:458:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) continue;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:491: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 (static_cast<unsigned int> (i) > strlen(line)) break;
data/xplanet-1.3.0/src/libmultiple/RayleighScattering.cpp:493:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) continue;
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:85:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[2],5 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:90:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( tle->idesg, &tle_set[9],8 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:94:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[18],14 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:99:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[33],10 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:104:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[44],1 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:106:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( &buff[2], &tle_set[45],5 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:108:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( &buff[8], &tle_set[50],2 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:113:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[53],1 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:115:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( &buff[2], &tle_set[54],5 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:117:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( &buff[8], &tle_set[59],2 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:122:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[64],4 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:128:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[77], 8 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:133:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[86], 8 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:139:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( &buff[1], &tle_set[95], 7 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:144:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[103], 8 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:149:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[112], 8 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:154:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[121], 10 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:159:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy( buff, &tle_set[132], 5 );
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:190:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tle_set, line[1], 70);
data/xplanet-1.3.0/src/libsgp4sdp4/sgp_in.c:193:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(&tle_set[69], line[2], 70);
data/xplanet-1.3.0/src/parse.cpp:64:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const unsigned int length = strlen(key);
data/xplanet-1.3.0/src/parse.cpp:71:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(returnstring, (line + istart), i - istart);
data/xplanet-1.3.0/src/parse.cpp:98:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const unsigned int length = strlen(key);
data/xplanet-1.3.0/src/parse.cpp:106:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(returnstring, (line + istart), i - istart);
data/xplanet-1.3.0/src/parse.cpp:117:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const unsigned int length = strlen(key);
data/xplanet-1.3.0/src/parse.cpp:124:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(returnstring, (line + istart), i - istart);
data/xplanet-1.3.0/src/parse.cpp:136: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).
    if (i >= (int) strlen(line)) return(ENDOFLINE);
data/xplanet-1.3.0/src/parse.cpp:320:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(returnString, (line + istart), i - istart);
data/xplanet-1.3.0/src/parse.cpp:337:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(returnString, (line + istart), i - istart);
data/xplanet-1.3.0/src/readConfig.cpp:30:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (static_cast<unsigned int> (i) > strlen(line)) return;
data/xplanet-1.3.0/src/readConfig.cpp:36: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).
    while (static_cast<unsigned int> (i) < strlen(line))
data/xplanet-1.3.0/src/xpUtil.cpp:539:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t inbytesleft = strlen(inBuf);
data/xplanet-1.3.0/src/xpUtil.cpp:593:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buffer_UTF8, timeString.c_str(), MAX_LINE_LENGTH);
data/xplanet-1.3.0/src/xpUtil.cpp:651:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(locale) == 0)
data/xplanet-1.3.0/src/xpUtil.cpp:661:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(locale) == 0)

ANALYSIS SUMMARY:

Hits = 345
Lines analyzed = 37662 in approximately 1.02 seconds (36797 lines/second)
Physical Source Lines of Code (SLOC) = 30428
Hits@level = [0] 243 [1]  74 [2] 227 [3]  33 [4]  11 [5]   0
Hits@level+ = [0+] 588 [1+] 345 [2+] 271 [3+]  44 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 19.3243 [1+] 11.3382 [2+] 8.90627 [3+] 1.44604 [4+] 0.361509 [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.