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/soundscaperenderer-0.5.0~dfsg/apf/apf/biquad.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/blockdelayline.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/combine_channels.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/commandqueue.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/container.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/convolver.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/cxx_thread_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/denormalprevention.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/dummy_thread_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/fftwtools.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/iterator.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/jack_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/jackclient.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/lockfreefifo.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/math.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/mextools.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/mimoprocessor.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/mimoprocessor_file_io.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/misc.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/parameter_map.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/pointer_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/portaudio_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/posix_thread_policy.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/rtlist.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/shareddata.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/stopwatch.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/stringtools.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/apf/sndfiletools.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/doc/documentation.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/doc/mimoprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/audiofile_simpleprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/dummy_example.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/flext_simpleprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_change_volume.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_connections.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_convolver.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_dynamic_inputs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_dynamic_outputs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_matrix.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_minimal.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_query_thread.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/jack_simpleprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/mex_simpleprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/portaudio_simpleprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/examples/simpleprocessor.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/biquad_count_denormals.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/biquad_denormals.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/crossfade.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/interpolation.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/iterator_test_macros.h
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/main.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_accumulating_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_biquad.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_blockdelayline.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_cast_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_circular_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_combine_channels.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_container.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_convolver.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_discard_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_dual_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_fftwtools.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_index_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_iterator_combinations.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_math.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_mimoprocessor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_misc.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_parameter_map.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_stride_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_stringtools.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_transform_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/test_trivial_iterator.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.h
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/DylibBundler.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/DylibBundler.h
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Settings.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Settings.h
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.h
Examining data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/main.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_aap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_binaural.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_dca.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_flext.h
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_vbap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/flext/ssr_wfs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_aap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_binaural.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_brs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_dca.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_generic.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_mex.h
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_vbap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/mex/ssr_wfs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/aaprenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/audioplayer.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/audioplayer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/audiorecorder.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/audiorecorder.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/binauralrenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/brsrenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/configuration.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/controller.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/dcacoefficients.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/dcarenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/directionalpoint.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/directionalpoint.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/genericrenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qclicktextlabel.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qclicktextlabel.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qcpulabel.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qcpulabel.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qfilemenulabel.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qfilemenulabel.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qgui.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qgui.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qguiframe.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qguiframe.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qopenglplotter.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qopenglplotter.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qscenebutton.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qscenebutton.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qsourceproperties.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qsourceproperties.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qssrtimeline.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qssrtimeline.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qtimeedit.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qtimeedit.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/quserinterface.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/quserinterface.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qvolumeslider.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qvolumeslider.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qzoomlabel.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/gui/qzoomlabel.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/laplace_coeffs_double.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/laplace_coeffs_float.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/loudspeaker.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/loudspeakerrenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/maptools.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/commandparser.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/commandparser.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/connection.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/connection.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/networksubscriber.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/networksubscriber.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/server.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/network/server.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/orientation.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/orientation.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/position.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/position.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/posixpathtools.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/publisher.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/Example.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/rendererbase.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/rendersubscriber.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/scene.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/scene.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/source.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_aap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_binaural.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_brs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_dca.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_generic.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_global.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_global.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_vbap.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/ssr_wfs.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/subscriber.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/timetools.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/tracker.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerintersense.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerintersense.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerpolhemus.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerpolhemus.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerrazor.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackerrazor.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackervrpn.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/trackervrpn.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/vbaprenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/wfsrenderer.h
Examining data/soundscaperenderer-0.5.0~dfsg/src/xmlparser.cpp
Examining data/soundscaperenderer-0.5.0~dfsg/src/xmlparser.h

FINAL RESULTS:

data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:75:29:  [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.
    const bool is_symlink = system( (cmd+" > /dev/null").c_str())==0;
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp:64:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access( filename.c_str(), F_OK ) != -1)
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp:74:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access( ftrimmed.c_str(), F_OK ) != -1)
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp:138:26:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        command_output = popen(cmd.c_str(), "r");
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp:168: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.
    return system(cmd.c_str());
data/soundscaperenderer-0.5.0~dfsg/apf/apf/stringtools.h:246:13:  [3] (random) setstate:
  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.
      input.setstate(std::ios_base::failbit);
data/soundscaperenderer-0.5.0~dfsg/apf/apf/stringtools.h:280:11:  [3] (random) setstate:
  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.
    input.setstate(std::ios_base::failbit);
data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/crossfade.cpp:96:43:  [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.
  std::generate(m_in.begin(), m_in.end(), random);
data/soundscaperenderer-0.5.0~dfsg/apf/performance_tests/interpolation.cpp:101:43:  [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.
  std::generate(m_in.begin(), m_in.end(), random);
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:7809:18:  [3] (random) srand:
  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.
            std::srand( config.rngSeed() );
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:40: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 *dyldLibPath = std::getenv("DYLD_LIBRARY_PATH");
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:43: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.
    dyldLibPath = std::getenv("DYLD_FALLBACK_FRAMEWORK_PATH");
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:49: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.
    dyldLibPath = std::getenv("DYLD_FALLBACK_LIBRARY_PATH");
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:81:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (not realpath(path.c_str(), original_file_buffer))
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:187: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.
  std::string filename = getenv("HOME");
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:191: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.
  filename = getenv("HOME");
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:351:17:  [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.
  while ((opt = getopt_long(argc, argv, optstring, longopts, &longindex))
data/soundscaperenderer-0.5.0~dfsg/src/controller.h:1085:7:  [3] (random) srand:
  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.
      srand((unsigned int)time(0));
data/soundscaperenderer-0.5.0~dfsg/src/loudspeaker.h:85:16:  [3] (random) setstate:
  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.
    else input.setstate(std::ios_base::badbit);
data/soundscaperenderer-0.5.0~dfsg/src/source.h:118:16:  [3] (random) setstate:
  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.
    else input.setstate(std::ios_base::badbit);
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:1601:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    struct TrueType { char sizer[1]; };
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:1602: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.
    struct FalseType { char sizer[2]; };
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:2777: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 storage[sizeof(T)];
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:5606:14:  [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).
        void open() {
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:5683:26:  [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).
                section->open();
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:5716:26:  [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).
                tracker->open();
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:6784: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 data[bufferSize];
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:6821:15:  [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).
        m_ofs.open( filename.c_str() );
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:7977:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char asChar[sizeof (int)];
data/soundscaperenderer-0.5.0~dfsg/apf/unit_tests/catch/catch.hpp:8736: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.
        static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:78: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 original_file_buffer[PATH_MAX];
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Dependency.cpp:132: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[128];
data/soundscaperenderer-0.5.0~dfsg/data/MacOSX/dylibbundler/src/Utils.cpp:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char output[128];
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:486:54:  [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).
        conf.renderer_params.set("ambisonics_order", atoi(optarg));
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:635:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[BUF_SIZE], key[BUF_SIZE], value[BUF_SIZE];
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:639:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == nullptr) {
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:759: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).
      conf.renderer_params.set("ambisonics_order", atoi(value));
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:803:26:  [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).
      conf.server_port = atoi(value);
data/soundscaperenderer-0.5.0~dfsg/src/configuration.cpp:817:22:  [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).
      ssr::verbose = atoi(value);
data/soundscaperenderer-0.5.0~dfsg/src/posixpathtools.h:73:19:  [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).
  auto start_fd = open(".", O_RDONLY);
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.cpp:227:23:  [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).
  if ((_serial_port = open(port, O_RDWR | O_NOCTTY | O_NDELAY)) != -1)
data/soundscaperenderer-0.5.0~dfsg/src/trackerintersense.cpp:76:10:  [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).
    file.open("isports.ini", std::ios::trunc);
data/soundscaperenderer-0.5.0~dfsg/src/trackerpolhemus.cpp:178:15:  [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).
  if ((port = open(portname, O_RDWR | O_NOCTTY | O_NDELAY)) != -1)
data/soundscaperenderer-0.5.0~dfsg/apf/apf/posix_thread_policy.h:147:9:  [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(_usleeptime);
data/soundscaperenderer-0.5.0~dfsg/apf/apf/stringtools.h:238:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!input.read(ch, digits)) return input; // error bits are set!
data/soundscaperenderer-0.5.0~dfsg/src/controller.h:564:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      switch(fgetc(stdin))
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/Example.cpp:55:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();  // wait RETURN
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/Example.cpp:89:3:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getchar();  // wait RETURN
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.cpp:145:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read(_serial_port, &in, 1);
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.cpp:200:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    result = read(_serial_port, &in, 1);
data/soundscaperenderer-0.5.0~dfsg/src/razor-ahrs/RazorAHRS.cpp:297:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((result = read(_serial_port, &c, 1)) > 0) // blocks only for VTIME before returning
data/soundscaperenderer-0.5.0~dfsg/src/trackerpolhemus.cpp:249:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((error = read(_tracker_port, &c, 1)))

ANALYSIS SUMMARY:

Hits = 52
Lines analyzed = 49175 in approximately 1.17 seconds (42039 lines/second)
Physical Source Lines of Code (SLOC) = 32247
Hits@level = [0]   8 [1]   9 [2]  23 [3]  15 [4]   5 [5]   0
Hits@level+ = [0+]  60 [1+]  52 [2+]  43 [3+]  20 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 1.86064 [1+] 1.61255 [2+] 1.33346 [3+] 0.620213 [4+] 0.155053 [5+]   0
Dot directories skipped = 2 (--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.