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/gyoto-1.4.4/bin/gyoto-mpi-worker.C
Examining data/gyoto-1.4.4/bin/gyoto.C
Examining data/gyoto-1.4.4/bin/optionparser.h
Examining data/gyoto-1.4.4/include/Gyoto.h
Examining data/gyoto-1.4.4/include/GyotoAstrobj.h
Examining data/gyoto-1.4.4/include/GyotoBlackBodySpectrum.h
Examining data/gyoto-1.4.4/include/GyotoBlob.h
Examining data/gyoto-1.4.4/include/GyotoChernSimons.h
Examining data/gyoto-1.4.4/include/GyotoComplexAstrobj.h
Examining data/gyoto-1.4.4/include/GyotoComplexSpectrometer.h
Examining data/gyoto-1.4.4/include/GyotoConverters.h
Examining data/gyoto-1.4.4/include/GyotoDeformedTorus.h
Examining data/gyoto-1.4.4/include/GyotoDefs.h
Examining data/gyoto-1.4.4/include/GyotoDirectionalDisk.h
Examining data/gyoto-1.4.4/include/GyotoDisk3D.h
Examining data/gyoto-1.4.4/include/GyotoDynamicalDisk.h
Examining data/gyoto-1.4.4/include/GyotoDynamicalDisk3D.h
Examining data/gyoto-1.4.4/include/GyotoDynamicalDiskBolometric.h
Examining data/gyoto-1.4.4/include/GyotoEquatorialHotSpot.h
Examining data/gyoto-1.4.4/include/GyotoError.h
Examining data/gyoto-1.4.4/include/GyotoFactory.h
Examining data/gyoto-1.4.4/include/GyotoFactoryMessenger.h
Examining data/gyoto-1.4.4/include/GyotoFixedStar.h
Examining data/gyoto-1.4.4/include/GyotoFlaredDiskSynchrotron.h
Examining data/gyoto-1.4.4/include/GyotoFunctors.h
Examining data/gyoto-1.4.4/include/GyotoGridData2D.h
Examining data/gyoto-1.4.4/include/GyotoHayward.h
Examining data/gyoto-1.4.4/include/GyotoHooks.h
Examining data/gyoto-1.4.4/include/GyotoInflateStar.h
Examining data/gyoto-1.4.4/include/GyotoJet.h
Examining data/gyoto-1.4.4/include/GyotoKappaDistributionSynchrotronSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoKerrBL.h
Examining data/gyoto-1.4.4/include/GyotoKerrKS.h
Examining data/gyoto-1.4.4/include/GyotoMetric.h
Examining data/gyoto-1.4.4/include/GyotoMinkowski.h
Examining data/gyoto-1.4.4/include/GyotoNeutronStar.h
Examining data/gyoto-1.4.4/include/GyotoNeutronStarAnalyticEmission.h
Examining data/gyoto-1.4.4/include/GyotoNeutronStarModelAtmosphere.h
Examining data/gyoto-1.4.4/include/GyotoNumericalMetricLorene.h
Examining data/gyoto-1.4.4/include/GyotoObject.h
Examining data/gyoto-1.4.4/include/GyotoOscilTorus.h
Examining data/gyoto-1.4.4/include/GyotoPageThorneDisk.h
Examining data/gyoto-1.4.4/include/GyotoPatternDisk.h
Examining data/gyoto-1.4.4/include/GyotoPatternDiskBB.h
Examining data/gyoto-1.4.4/include/GyotoPhoton.h
Examining data/gyoto-1.4.4/include/GyotoPolishDoughnut.h
Examining data/gyoto-1.4.4/include/GyotoPowerLawSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoPowerLawSynchrotronSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoProperty.h
Examining data/gyoto-1.4.4/include/GyotoRegister.h
Examining data/gyoto-1.4.4/include/GyotoRezzollaZhidenko.h
Examining data/gyoto-1.4.4/include/GyotoRotStar3_1.h
Examining data/gyoto-1.4.4/include/GyotoScenery.h
Examining data/gyoto-1.4.4/include/GyotoScreen.h
Examining data/gyoto-1.4.4/include/GyotoSmartPointer.h
Examining data/gyoto-1.4.4/include/GyotoSpectrometer.h
Examining data/gyoto-1.4.4/include/GyotoSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoStandardAstrobj.h
Examining data/gyoto-1.4.4/include/GyotoStar.h
Examining data/gyoto-1.4.4/include/GyotoStarTrace.h
Examining data/gyoto-1.4.4/include/GyotoThermalBremsstrahlungSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoThermalSynchrotronSpectrum.h
Examining data/gyoto-1.4.4/include/GyotoThickDisk.h
Examining data/gyoto-1.4.4/include/GyotoThinDisk.h
Examining data/gyoto-1.4.4/include/GyotoThinDiskIronLine.h
Examining data/gyoto-1.4.4/include/GyotoThinDiskPL.h
Examining data/gyoto-1.4.4/include/GyotoTorus.h
Examining data/gyoto-1.4.4/include/GyotoUniformSpectrometer.h
Examining data/gyoto-1.4.4/include/GyotoUniformSphere.h
Examining data/gyoto-1.4.4/include/GyotoUtils.h
Examining data/gyoto-1.4.4/include/GyotoValue.h
Examining data/gyoto-1.4.4/include/GyotoWIP.h
Examining data/gyoto-1.4.4/include/GyotoWorldline.h
Examining data/gyoto-1.4.4/include/GyotoXillverReflection.h
Examining data/gyoto-1.4.4/lib/Astrobj.C
Examining data/gyoto-1.4.4/lib/BlackBodySpectrum.C
Examining data/gyoto-1.4.4/lib/Blob.C
Examining data/gyoto-1.4.4/lib/ChernSimons.C
Examining data/gyoto-1.4.4/lib/ComplexAstrobj.C
Examining data/gyoto-1.4.4/lib/ComplexSpectrometer.C
Examining data/gyoto-1.4.4/lib/Converters.C
Examining data/gyoto-1.4.4/lib/DeformedTorus.C
Examining data/gyoto-1.4.4/lib/DirectionalDisk.C
Examining data/gyoto-1.4.4/lib/Disk3D.C
Examining data/gyoto-1.4.4/lib/DynamicalDisk.C
Examining data/gyoto-1.4.4/lib/DynamicalDisk3D.C
Examining data/gyoto-1.4.4/lib/DynamicalDiskBolometric.C
Examining data/gyoto-1.4.4/lib/EquatorialHotSpot.C
Examining data/gyoto-1.4.4/lib/Error.C
Examining data/gyoto-1.4.4/lib/Factory.C
Examining data/gyoto-1.4.4/lib/FixedStar.C
Examining data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C
Examining data/gyoto-1.4.4/lib/Functors.C
Examining data/gyoto-1.4.4/lib/GridData2D.C
Examining data/gyoto-1.4.4/lib/Hayward.C
Examining data/gyoto-1.4.4/lib/Hooks.C
Examining data/gyoto-1.4.4/lib/InflateStar.C
Examining data/gyoto-1.4.4/lib/Jet.C
Examining data/gyoto-1.4.4/lib/KappaDistributionSynchrotronSpectrum.C
Examining data/gyoto-1.4.4/lib/KerrBL.C
Examining data/gyoto-1.4.4/lib/KerrKS.C
Examining data/gyoto-1.4.4/lib/LorenePlug.C
Examining data/gyoto-1.4.4/lib/Metric.C
Examining data/gyoto-1.4.4/lib/Minkowski.C
Examining data/gyoto-1.4.4/lib/NeutronStar.C
Examining data/gyoto-1.4.4/lib/NeutronStarAnalyticEmission.C
Examining data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C
Examining data/gyoto-1.4.4/lib/NumericalMetricLorene.C
Examining data/gyoto-1.4.4/lib/Object.C
Examining data/gyoto-1.4.4/lib/OscilTorus.C
Examining data/gyoto-1.4.4/lib/PageThorneDisk.C
Examining data/gyoto-1.4.4/lib/PatternDisk.C
Examining data/gyoto-1.4.4/lib/PatternDiskBB.C
Examining data/gyoto-1.4.4/lib/Photon.C
Examining data/gyoto-1.4.4/lib/PolishDoughnut.C
Examining data/gyoto-1.4.4/lib/PowerLawSpectrum.C
Examining data/gyoto-1.4.4/lib/PowerLawSynchrotronSpectrum.C
Examining data/gyoto-1.4.4/lib/Property.C
Examining data/gyoto-1.4.4/lib/Register.C
Examining data/gyoto-1.4.4/lib/RezzollaZhidenko.C
Examining data/gyoto-1.4.4/lib/RotStar3_1.C
Examining data/gyoto-1.4.4/lib/Scenery.C
Examining data/gyoto-1.4.4/lib/Screen.C
Examining data/gyoto-1.4.4/lib/SmartPointer.C
Examining data/gyoto-1.4.4/lib/Spectrometer.C
Examining data/gyoto-1.4.4/lib/Spectrum.C
Examining data/gyoto-1.4.4/lib/StandardAstrobj.C
Examining data/gyoto-1.4.4/lib/Star.C
Examining data/gyoto-1.4.4/lib/StarTrace.C
Examining data/gyoto-1.4.4/lib/StdPlug.C
Examining data/gyoto-1.4.4/lib/ThermalBremsstrahlungSpectrum.C
Examining data/gyoto-1.4.4/lib/ThermalSynchrotronSpectrum.C
Examining data/gyoto-1.4.4/lib/ThickDisk.C
Examining data/gyoto-1.4.4/lib/ThinDisk.C
Examining data/gyoto-1.4.4/lib/ThinDiskIronLine.C
Examining data/gyoto-1.4.4/lib/ThinDiskPL.C
Examining data/gyoto-1.4.4/lib/Torus.C
Examining data/gyoto-1.4.4/lib/UniformSpectrometer.C
Examining data/gyoto-1.4.4/lib/UniformSphere.C
Examining data/gyoto-1.4.4/lib/Utils.C
Examining data/gyoto-1.4.4/lib/Value.C
Examining data/gyoto-1.4.4/lib/WIP.C
Examining data/gyoto-1.4.4/lib/Worldline.C
Examining data/gyoto-1.4.4/lib/WorldlineIntegState.C
Examining data/gyoto-1.4.4/lib/XillverReflection.C
Examining data/gyoto-1.4.4/plugins/null/include/GyotoNull.h
Examining data/gyoto-1.4.4/plugins/null/lib/InitPlug.C
Examining data/gyoto-1.4.4/plugins/null/lib/Null.C
Examining data/gyoto-1.4.4/plugins/python/include/GyotoPython.h
Examining data/gyoto-1.4.4/plugins/python/lib/Base.C
Examining data/gyoto-1.4.4/plugins/python/lib/Metric.C
Examining data/gyoto-1.4.4/plugins/python/lib/PythonPlug.C
Examining data/gyoto-1.4.4/plugins/python/lib/Spectrum.C
Examining data/gyoto-1.4.4/plugins/python/lib/Standard.C
Examining data/gyoto-1.4.4/plugins/python/lib/ThinDisk.C
Examining data/gyoto-1.4.4/plugins/python/lib/mk_video.C
Examining data/gyoto-1.4.4/python/gyoto_std_swig.h
Examining data/gyoto-1.4.4/python/gyoto_swig.h
Examining data/gyoto-1.4.4/yorick/gyoto_AnalyticMetric.C
Examining data/gyoto-1.4.4/yorick/gyoto_Astrobj.C
Examining data/gyoto-1.4.4/yorick/gyoto_Idx.C
Examining data/gyoto-1.4.4/yorick/gyoto_Metric.C
Examining data/gyoto-1.4.4/yorick/gyoto_Photon.C
Examining data/gyoto-1.4.4/yorick/gyoto_Scenery.C
Examining data/gyoto-1.4.4/yorick/gyoto_Screen.C
Examining data/gyoto-1.4.4/yorick/gyoto_SpectroComplex.C
Examining data/gyoto-1.4.4/yorick/gyoto_SpectroUniform.C
Examining data/gyoto-1.4.4/yorick/gyoto_Spectrometer.C
Examining data/gyoto-1.4.4/yorick/gyoto_Spectrum.C
Examining data/gyoto-1.4.4/yorick/gyoto_ThinDisk.C
Examining data/gyoto-1.4.4/yorick/gyoto_utils.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_BlackBodySpectrum.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_DirectionalDisk.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_Disk3D.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_FixedStar.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_KerrBL.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_KerrKS.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_PatternDisk.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_PolishDoughnut.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_PowerLawSpectrum.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_Star.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_StarTrace.C
Examining data/gyoto-1.4.4/yorick/stdplug/gyoto_Torus.C
Examining data/gyoto-1.4.4/yorick/ygyoto.h
Examining data/gyoto-1.4.4/yorick/ygyoto_idx.h
Examining data/gyoto-1.4.4/yorick/ygyoto_private.h
Examining data/gyoto-1.4.4/yorick/ygyoto_supplier.C

FINAL RESULTS:

data/gyoto-1.4.4/bin/gyoto.C:549:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:556:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:563:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:570:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:579:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:592:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:599:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:606:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:613:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:620:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:631:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:641:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:651:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:661:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/bin/gyoto.C:671:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(keyname, fmt, curquant);
data/gyoto-1.4.4/lib/DynamicalDisk.C:81:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(dirname_,o.dirname_);
data/gyoto-1.4.4/lib/DynamicalDisk.C:222: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(dirname_,fname.c_str());
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:485: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(dirname_,content.c_str());
data/gyoto-1.4.4/lib/Factory.C:69: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(txt, ss.str().c_str());			\
data/gyoto-1.4.4/lib/Factory.C:73:25:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define i2txt(txt, val) sprintf( txt, ifmt, val);
data/gyoto-1.4.4/lib/NumericalMetricLorene.C:2134:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(filename_, cdir);
data/gyoto-1.4.4/lib/RotStar3_1.C:116:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(filename_,lorene_res);
data/gyoto-1.4.4/lib/WorldlineIntegState.C:63:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      [controlled, system]						\
data/gyoto-1.4.4/lib/WorldlineIntegState.C:68:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      return controlled.try_step(system, inout, t, h);			\
data/gyoto-1.4.4/lib/WorldlineIntegState.C:71:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      [controlled, system]						\
data/gyoto-1.4.4/lib/WorldlineIntegState.C:75:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      controlled.stepper().do_step(system, inout, 0., h);		\
data/gyoto-1.4.4/lib/WorldlineIntegState.C:218:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system_t system;
data/gyoto-1.4.4/yorick/gyoto_Astrobj.C:127:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ygyoto_Astrobj_names[ygyoto_Astrobj_count], name);
data/gyoto-1.4.4/yorick/gyoto_Metric.C:91:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ygyoto_Metric_names[ygyoto_Metric_count], name);
data/gyoto-1.4.4/yorick/gyoto_Spectrum.C:85:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(ygyoto_Spectrum_names[ygyoto_Spectrum_count], name);
data/gyoto-1.4.4/bin/gyoto-mpi-worker.C:76: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.
  string pluglist= getenv("GYOTO_PLUGINS")?
data/gyoto-1.4.4/bin/gyoto-mpi-worker.C:77:5:  [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.
    getenv("GYOTO_PLUGINS"):
data/gyoto-1.4.4/bin/gyoto.C:201: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.
  string pluglist= getenv("GYOTO_PLUGINS")?
data/gyoto-1.4.4/bin/gyoto.C:202:5:  [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.
    getenv("GYOTO_PLUGINS"):
data/gyoto-1.4.4/bin/gyoto.C:425:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (scenery -> nProcesses() || getenv("OMPI_COMM_WORLD_SIZE")) {
data/gyoto-1.4.4/lib/Register.C:175:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (!cpluglist) cpluglist = getenv("GYOTO_PLUGINS");
data/gyoto-1.4.4/bin/gyoto.C:261:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (opt->arg) verbose(atoi(opt->arg));
data/gyoto-1.4.4/bin/gyoto.C:339:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	size_t val=atoi(opt.arg);
data/gyoto-1.4.4/bin/gyoto.C:353: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).
	ptrdiff_t val=atoi(opt.arg);
data/gyoto-1.4.4/bin/gyoto.C:371:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (sub.length()) nmin=atoi(sub.c_str());
data/gyoto-1.4.4/bin/gyoto.C:377:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  if (sub.length()) nmax=atoi(sub.c_str());
data/gyoto-1.4.4/bin/gyoto.C:380:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (sub.length()) dn=atoi(sub.c_str());
data/gyoto-1.4.4/bin/gyoto.C:400:52:  [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).
    case RESOLUTION:  screen -> resolution (       atoi(opt.arg)); break;
data/gyoto-1.4.4/bin/gyoto.C:405:52:  [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).
    case NTHREADS:   scenery -> nThreads   (       atoi(opt.arg)); break;
data/gyoto-1.4.4/bin/gyoto.C:406:52:  [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).
    case NPROCESSES: scenery -> nProcesses (       atoi(opt.arg)); break;
data/gyoto-1.4.4/bin/gyoto.C:543: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 keyname[FLEN_KEYWORD];
data/gyoto-1.4.4/lib/Astrobj.C:214:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double));
data/gyoto-1.4.4/lib/Astrobj.C:215:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double));
data/gyoto-1.4.4/lib/ComplexSpectrometer.C:176: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(boundaries_+boffset,
data/gyoto-1.4.4/lib/ComplexSpectrometer.C:179:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(widths_+offset,
data/gyoto-1.4.4/lib/ComplexSpectrometer.C:182: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(midpoints_+offset,
data/gyoto-1.4.4/lib/DirectionalDisk.C:95: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(emission_, o.emission_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:99: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(freq_, o.freq_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:103: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(cosi_, o.cosi_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:107: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(radius_, o.radius_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:158:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(emission_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:180: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(radius_, rad, nr_*sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:199:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(cosi_, cosi, ni_*sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:218: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(freq_, freq, nnu_*sizeof(double));
data/gyoto-1.4.4/lib/DirectionalDisk.C:271: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/DirectionalDisk.C:381:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/Disk3D.C:105: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(emissquant_, o.emissquant_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:109: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(opacity_, o.opacity_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:113: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(velocity_, o.velocity_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:170: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(emissquant_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:195:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(opacity_, opac, nnu_ * nphi_ * nz_ * nr_ * sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:215: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(velocity_, velocity, 3*nphi_*nz_*nr_*sizeof(double));
data/gyoto-1.4.4/lib/Disk3D.C:286: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/Disk3D.C:471: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/DynamicalDisk.C: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(emission_array_[i-1], o.emission_array_[i-1], nel1*sizeof(double));
data/gyoto-1.4.4/lib/DynamicalDisk.C:93: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(velocity_array_[i-1], o.velocity_array_[i-1], nel2*sizeof(double));
data/gyoto-1.4.4/lib/DynamicalDisk.C:94: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(radius_array_  [i-1], o.radius_array_  [i-1], nr_ *sizeof(double));
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:95: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(dirname_, o.dirname_, length);
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:114:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(emission_array_[i-1], o.emission_array_[i-1], szt);
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:115:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(velocity_array_[i-1], o.velocity_array_[i-1], szv);
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:123:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(absorption_array_[i-1], o.absorption_array_[i-1], szt);
data/gyoto-1.4.4/lib/DynamicalDiskBolometric.C:131:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double));
data/gyoto-1.4.4/lib/DynamicalDiskBolometric.C:132:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double));
data/gyoto-1.4.4/lib/EquatorialHotSpot.C:97:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(init_vel_, coord, 3*sizeof(double));
data/gyoto-1.4.4/lib/Factory.C:60:27:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  if      (val== DBL_MAX) strcpy(txt,  "DBL_MAX");	\
data/gyoto-1.4.4/lib/Factory.C:61:27:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  else if (val==-DBL_MAX) strcpy(txt, "-DBL_MAX");	\
data/gyoto-1.4.4/lib/Factory.C:62:27:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  else if (val== DBL_MIN) strcpy(txt,  "DBL_MIN");	\
data/gyoto-1.4.4/lib/Factory.C:63:27:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  else if (val==-DBL_MIN) strcpy(txt, "-DBL_MIN");	\
data/gyoto-1.4.4/lib/Factory.C:730: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:738: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:739:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( val_string, " %i ", value);
data/gyoto-1.4.4/lib/Factory.C:746: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:747:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( val_string, " %u ", value);
data/gyoto-1.4.4/lib/Factory.C:754: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:755:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( val_string, " %li ", value);
data/gyoto-1.4.4/lib/Factory.C:762: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:763:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( val_string, " %lu ", value);
data/gyoto-1.4.4/lib/Factory.C:901: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:902:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf( val_string, "%lu", attrvalue);
data/gyoto-1.4.4/lib/Factory.C:913: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 val_string[dvalLength];
data/gyoto-1.4.4/lib/Factory.C:1018:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tc, c_content, len+1);
data/gyoto-1.4.4/lib/Factory.C:1042:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tc, c_content, len+1);
data/gyoto-1.4.4/lib/Factory.C:1064:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tc, c_content, len+1);
data/gyoto-1.4.4/lib/Factory.C:1068:22:  [2] (integer) atol:
  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).
    result.push_back(atol(sub));
data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C:87: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(density_, o.density_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C:91:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(velocity_, o.velocity_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C:230: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(density_, density, nel*sizeof(double));
data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C:259: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(velocity_, velocity, nel*sizeof(double));
data/gyoto-1.4.4/lib/FlaredDiskSynchrotron.C:283: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/GridData2D.C:141: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/GridData2D.C:191: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/GridData2D.C:218: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/GridData2D.C:293: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:96: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(emission_, o.emission_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C: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(freq_, o.freq_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:104: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(cosi_, o.cosi_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:108: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(surfgrav_, o.surfgrav_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:159: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(emission_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:183: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(surfgrav_, sg, nsg_*sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:203: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(cosi_, cosi, ni_*sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:223: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(freq_, freq, nnu_*sizeof(double));
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:258: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/NeutronStarModelAtmosphere.C:366: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/NumericalMetricLorene.C:223: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* resu = fopen(stream_name.str().data(), "r") ;
data/gyoto-1.4.4/lib/PageThorneDisk.C:267:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords, coord_obj_hit, 8 * sizeof(double));
data/gyoto-1.4.4/lib/PageThorneDisk.C:268:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data->impactcoords+8, &coord_ph_hit[0], 8 * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:88: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(emission_, o.emission_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C: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(opacity_, o.opacity_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:96: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(velocity_, o.velocity_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C: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(radius_, o.radius_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:161:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(emission_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:183: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(opacity_, opac, nnu_ * nphi_ * nr_ * sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:204: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(velocity_, velocity, 2*nphi_*nr_*sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:222: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(radius_, rad, nr_*sizeof(double));
data/gyoto-1.4.4/lib/PatternDisk.C:272: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/PatternDisk.C:485: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/Photon.C:70:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(transmission_, o.getTransmission(), nsamples*sizeof(double));
data/gyoto-1.4.4/lib/Photon.C:449: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(data->impactcoords+8, &coord[0], 8 * sizeof(double));
data/gyoto-1.4.4/lib/RotStar3_1.C:117:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* resfile=fopen(lorene_res,"r");
data/gyoto-1.4.4/lib/RotStar3_1.C:789:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    integKind(atoi(content.c_str()));
data/gyoto-1.4.4/lib/Scenery.C:1094:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[MPI_MAX_PROCESSOR_NAME];
data/gyoto-1.4.4/lib/Screen.C:141: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(mask_, o.mask_, npix_*npix_*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:742: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(fourvel, fourvel_, 4*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:743: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(screen1, screen1_, 4*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:744: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(screen2, screen2_, 4*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:745: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(screen3, screen3_, 4*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:829: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(mask_, mm, npix_*npix_*sizeof(double));
data/gyoto-1.4.4/lib/Screen.C:855: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/Screen.C:892: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/Screen.C:1406: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(prefix_, p, sz*sizeof(char));
data/gyoto-1.4.4/lib/Screen.C:1485:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(indices_, buf, sz*sizeof(size_t));
data/gyoto-1.4.4/lib/Screen.C:1506:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf_, buf, sz*sizeof(double));
data/gyoto-1.4.4/lib/Spectrometer.C:111:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(boundaries_, o.boundaries_, nboundaries_*sizeof(double));
data/gyoto-1.4.4/lib/Spectrometer.C:113:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(widths_, o.widths_, nsamples_*sizeof(double));
data/gyoto-1.4.4/lib/Spectrometer.C:115:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(midpoints_, o.midpoints_, nsamples_*sizeof(double));
data/gyoto-1.4.4/lib/Spectrometer.C:117:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(chanind_, o.chanind_, 2*nsamples_*sizeof(size_t));
data/gyoto-1.4.4/lib/StandardAstrobj.C:168: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(coh_next, &cph_next[0], 4*sizeof(cph_next[0]));
data/gyoto-1.4.4/lib/StandardAstrobj.C:191:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(coh, &cph[0], 4*sizeof(cph_next[0]));
data/gyoto-1.4.4/lib/StandardAstrobj.C:206: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(coh, coh_next, 8*sizeof(coh[0]));
data/gyoto-1.4.4/lib/Star.C:73:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(init_vel_, coord, 3*sizeof(double));
data/gyoto-1.4.4/lib/StarTrace.C:69:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x_+imin_, o.x_+imin_, sz);
data/gyoto-1.4.4/lib/StarTrace.C:70:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(y_+imin_, o.y_+imin_, sz);
data/gyoto-1.4.4/lib/StarTrace.C:71:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(z_+imin_, o.z_+imin_, sz);
data/gyoto-1.4.4/lib/StarTrace.C:209:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ncoord, coord, 4*sizeof(double));
data/gyoto-1.4.4/lib/UniformSpectrometer.C:69:21:  [2] (integer) atol:
  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).
  size_t nsamples = atol( fmp -> getSelfAttribute( "nsamples" ) . c_str () );
data/gyoto-1.4.4/lib/UniformSphere.C:150: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(coord_ph+1, coord+1, 3*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:93:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(tau_+imin_, orig.tau_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:94:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x0_+imin_, orig.x0_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:95:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x1_+imin_, orig.x1_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:96:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x2_+imin_, orig.x2_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:97:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x3_+imin_, orig.x3_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:98:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x0dot_+imin_, orig.x0dot_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:99:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x1dot_+imin_, orig.x1dot_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:100:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x2dot_+imin_, orig.x2dot_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:101:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x3dot_+imin_, orig.x3dot_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:103: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(ep0_+imin_, orig.ep0_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:104: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(ep1_+imin_, orig.ep1_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:105: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(ep2_+imin_, orig.ep2_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:106: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(ep3_+imin_, orig.ep3_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:107: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(et0_+imin_, orig.et0_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:108: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(et1_+imin_, orig.et1_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:109: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(et2_+imin_, orig.et2_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:110: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(et3_+imin_, orig.et3_+imin_, sz);
data/gyoto-1.4.4/lib/Worldline.C:117: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(cst_, orig.cst_, cst_n_*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:121: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(init_vel_, orig.init_vel_, 3*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:184: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(cst_, orig->cst_, cst_n_*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:683:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
{ memcpy(dest, x0_+imin_, sizeof(double)*(imax_-imin_+1)); }
data/gyoto-1.4.4/lib/Worldline.C:686:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
{ memcpy(dest, tau_+imin_, sizeof(double)*(imax_-imin_+1)); }
data/gyoto-1.4.4/lib/Worldline.C:1045:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bestl[0], &resl[0], sz*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:1050:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&besth[0], &resl[0], sz*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:1057:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bestl[0], &resh[0], sz*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:1062:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&besth[0], &resh[0], sz*sizeof(double));
data/gyoto-1.4.4/lib/Worldline.C:1196:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x0dest, x0_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x1dest, x1_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1198:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x2dest, x2_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1199:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x3dest, x3_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1234:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x0dest, x0dot_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1235:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x1dest, x1dot_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1236:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x2dest, x2dot_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/Worldline.C:1237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(x3dest, x3dot_+imin_, sizeof(double)*ncomp);
data/gyoto-1.4.4/lib/XillverReflection.C:105: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(illumination_, o.illumination_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:109: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(reflection_, o.reflection_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:113: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(freq_, o.freq_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:117: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(incl_, o.incl_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:121: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(logxi_, o.logxi_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:125: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(radius_, o.radius_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:129: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(phi_, o.phi_, ncells * sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:214: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(reflection_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:246: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(illumination_, pattern, nel*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:269: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(logxi_, lxi, nxi_*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:289: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(incl_, incl, ni_*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:309: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(freq_, freq, nnu_*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:329: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(radius_, radius, nr_*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:349: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(phi_, phi, nphi_*sizeof(double));
data/gyoto-1.4.4/lib/XillverReflection.C:418: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/XillverReflection.C:509: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/XillverReflection.C:620: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/lib/XillverReflection.C:680: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      ermsg[31] = ""; // ermsg is used in throwCfitsioError()
data/gyoto-1.4.4/plugins/python/lib/mk_video.C:36:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t * wargv[argc];
data/gyoto-1.4.4/yorick/gyoto_Astrobj.C:34:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ygyoto_Astrobj_names[YGYOTO_TYPE_LEN][YGYOTO_MAX_REGISTERED]
data/gyoto-1.4.4/yorick/gyoto_Metric.C:41:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ygyoto_Metric_names[YGYOTO_TYPE_LEN][YGYOTO_MAX_REGISTERED]
data/gyoto-1.4.4/yorick/gyoto_Metric.C:224:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, &dst[0][0], 4*4*4*sizeof(double));
data/gyoto-1.4.4/yorick/gyoto_Metric.C:262: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(data, &dst[0][0], 4*4*sizeof(double));
data/gyoto-1.4.4/yorick/gyoto_Screen.C:69:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, (*OBJ)->mask(), npix*npix*sizeof(double));
data/gyoto-1.4.4/yorick/gyoto_Spectrometer.C:32:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char const * ygyoto_Spectrometer_names[YGYOTO_MAX_REGISTERED]
data/gyoto-1.4.4/yorick/gyoto_Spectrum.C:34:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ygyoto_Spectrum_names[YGYOTO_TYPE_LEN][YGYOTO_MAX_REGISTERED]
data/gyoto-1.4.4/yorick/gyoto_utils.C:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char error_string[MPI_MAX_ERROR_STRING];
data/gyoto-1.4.4/yorick/gyoto_utils.C:176:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char const * knames[2] = { "nofail", 0 };
data/gyoto-1.4.4/yorick/gyoto_utils.C:208:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char const * knames[2] = { "nofail", 0 };
data/gyoto-1.4.4/yorick/stdplug/gyoto_DirectionalDisk.C:79:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*OBJ)->getIntensity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_DirectionalDisk.C:106:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, freq, ddims[0]*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_DirectionalDisk.C:130:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, cosi, ddims[1]*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_DirectionalDisk.C:154:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, radius, ddims[2]*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_Disk3D.C:86:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*ao)->getEmissquant(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_Disk3D.C:111:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*ao)->opacity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_Disk3D.C:136:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*ao)->getVelocity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_KerrBL.C:93:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, &dst[0][0], 4*4*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_KerrKS.C:76:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, &dst[0][0], 4*4*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_KerrKS.C:115:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(data, &dst[0][0][0], 4*4*4*sizeof(double));
data/gyoto-1.4.4/yorick/stdplug/gyoto_PatternDisk.C:80:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*OBJ)->getIntensity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_PatternDisk.C:105:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*OBJ)->opacity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_PatternDisk.C:129:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, (*OBJ)->getVelocity(),
data/gyoto-1.4.4/yorick/stdplug/gyoto_PatternDisk.C:156:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(out, radius, ddims[2]*sizeof(double));
data/gyoto-1.4.4/lib/DynamicalDisk.C:80:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirname_ = new char[strlen(o.dirname_)+1];
data/gyoto-1.4.4/lib/DynamicalDisk.C:221:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirname_ = new char[strlen(fname.c_str())+1];
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:93: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).
    size_t length = strlen(o.dirname_)+1;
data/gyoto-1.4.4/lib/DynamicalDisk3D.C:484:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dirname_ = new char[strlen(content.c_str())+1];
data/gyoto-1.4.4/lib/Factory.C:218:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len=strlen(data);
data/gyoto-1.4.4/lib/Factory.C:1013:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len=strlen(c_content);
data/gyoto-1.4.4/lib/Factory.C:1038:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len=strlen(c_content);
data/gyoto-1.4.4/lib/Factory.C:1060:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len=strlen(c_content);
data/gyoto-1.4.4/lib/NumericalMetricLorene.C:2133:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  filename_ = new char[strlen(cdir)+1];
data/gyoto-1.4.4/lib/RotStar3_1.C:115:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  filename_ = new char[strlen(lorene_res)+1];
data/gyoto-1.4.4/lib/Screen.C:1404:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t sz=strlen(p)+1;

ANALYSIS SUMMARY:

Hits = 249
Lines analyzed = 59135 in approximately 1.71 seconds (34612 lines/second)
Physical Source Lines of Code (SLOC) = 36148
Hits@level = [0]   8 [1]  11 [2] 202 [3]   6 [4]  30 [5]   0
Hits@level+ = [0+] 257 [1+] 249 [2+] 238 [3+]  36 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 7.10966 [1+] 6.88835 [2+] 6.58404 [3+] 0.995906 [4+] 0.829921 [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.