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/music-1.1.16/utils/datafile.cc
Examining data/music-1.1.16/utils/eventgenerator.cc
Examining data/music-1.1.16/utils/datafile.h
Examining data/music-1.1.16/utils/viewevents.cpp
Examining data/music-1.1.16/utils/VisualiseNeurons.h
Examining data/music-1.1.16/utils/VisualiseNeurons.cpp
Examining data/music-1.1.16/utils/eventlogger.cc
Examining data/music-1.1.16/utils/eventsource.cc
Examining data/music-1.1.16/utils/eventcounter.cc
Examining data/music-1.1.16/utils/contsink.cc
Examining data/music-1.1.16/utils/eventselect.cc
Examining data/music-1.1.16/utils/messagesource.cc
Examining data/music-1.1.16/utils/eventsink.cc
Examining data/music-1.1.16/utils/music.cc
Examining data/music-1.1.16/testsuite/sanitytests/contdelay.cc
Examining data/music-1.1.16/testsuite/sanitytests/clocksource.cc
Examining data/music-1.1.16/testsuite/sanitytests/multiport.cc
Examining data/music-1.1.16/testsuite/sanitytests/launchtest.cc
Examining data/music-1.1.16/testsuite/sanitytests/eventdelay.cc
Examining data/music-1.1.16/testsuite/sanitytests/constsource.cc
Examining data/music-1.1.16/testsuite/test_old/coba.cc
Examining data/music-1.1.16/testsuite/test_old/parsetest.cc
Examining data/music-1.1.16/testsuite/test_old/launcher.cc
Examining data/music-1.1.16/testsuite/unittests/catch/test_ag.cc
Examining data/music-1.1.16/testsuite/unittests/catch/catch.hpp
Examining data/music-1.1.16/rudeconfig/src/AbstractData.cpp
Examining data/music-1.1.16/rudeconfig/src/SourceDest.cpp
Examining data/music-1.1.16/rudeconfig/src/Section.cpp
Examining data/music-1.1.16/rudeconfig/src/RealOrganiser.h
Examining data/music-1.1.16/rudeconfig/src/ParserJuly2004.cpp
Examining data/music-1.1.16/rudeconfig/src/AbstractWriter.cpp
Examining data/music-1.1.16/rudeconfig/src/config.h
Examining data/music-1.1.16/rudeconfig/src/WhiteSpace.h
Examining data/music-1.1.16/rudeconfig/src/Comment.cpp
Examining data/music-1.1.16/rudeconfig/src/AbstractParser.cpp
Examining data/music-1.1.16/rudeconfig/src/RealOrganiser.cpp
Examining data/music-1.1.16/rudeconfig/src/Writer.h
Examining data/music-1.1.16/rudeconfig/src/File.h
Examining data/music-1.1.16/rudeconfig/src/AbstractData.h
Examining data/music-1.1.16/rudeconfig/src/ConfigImpl.h
Examining data/music-1.1.16/rudeconfig/src/Comment.h
Examining data/music-1.1.16/rudeconfig/src/SourceDest.h
Examining data/music-1.1.16/rudeconfig/src/Writer.cpp
Examining data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp
Examining data/music-1.1.16/rudeconfig/src/Base64Encoder.cpp
Examining data/music-1.1.16/rudeconfig/src/AbstractOrganiser.cpp
Examining data/music-1.1.16/rudeconfig/src/AbstractWriter.h
Examining data/music-1.1.16/rudeconfig/src/DataLine.cpp
Examining data/music-1.1.16/rudeconfig/src/config.cpp
Examining data/music-1.1.16/rudeconfig/src/WhiteSpace.cpp
Examining data/music-1.1.16/rudeconfig/src/Base64Encoder.h
Examining data/music-1.1.16/rudeconfig/src/AbstractParser.h
Examining data/music-1.1.16/rudeconfig/src/ParserJuly2004.h
Examining data/music-1.1.16/rudeconfig/src/File.cpp
Examining data/music-1.1.16/rudeconfig/src/DataLine.h
Examining data/music-1.1.16/rudeconfig/src/KeyValue.cpp
Examining data/music-1.1.16/rudeconfig/src/Section.h
Examining data/music-1.1.16/rudeconfig/src/AbstractOrganiser.h
Examining data/music-1.1.16/rudeconfig/src/KeyValue.h
Examining data/music-1.1.16/pymusic/pybuffer.cpp
Examining data/music-1.1.16/pymusic/pymusic.cpp
Examining data/music-1.1.16/pymusic/music/music_c.h
Examining data/music-1.1.16/pymusic/music/pymusic_c.h
Examining data/music-1.1.16/pymusic/mpi_compat.h
Examining data/music-1.1.16/examples/waveconsumer.cc
Examining data/music-1.1.16/examples/waveproducer.cc
Examining data/music-1.1.16/doc/music-c-int.h
Examining data/music-1.1.16/mpidep/mpidep.cc
Examining data/music-1.1.16/src/FIBO.cc
Examining data/music-1.1.16/src/distributor.cc
Examining data/music-1.1.16/src/error.cc
Examining data/music-1.1.16/src/version.cc
Examining data/music-1.1.16/src/sampler.cc
Examining data/music-1.1.16/src/collector.cc
Examining data/music-1.1.16/src/event_router.cc
Examining data/music-1.1.16/src/connectivity.cc
Examining data/music-1.1.16/src/connection.cc
Examining data/music-1.1.16/src/music-c.cc
Examining data/music-1.1.16/src/connector.cc
Examining data/music-1.1.16/src/memory.cc
Examining data/music-1.1.16/src/BIFO.cc
Examining data/music-1.1.16/src/clock.cc
Examining data/music-1.1.16/src/music-c-c.c
Examining data/music-1.1.16/src/predict_rank.cc
Examining data/music-1.1.16/src/port.cc
Examining data/music-1.1.16/src/array_data.cc
Examining data/music-1.1.16/src/setup.cc
Examining data/music-1.1.16/src/spatial.cc
Examining data/music-1.1.16/src/music-c.h
Examining data/music-1.1.16/src/scheduler.cc
Examining data/music-1.1.16/src/index_map.cc
Examining data/music-1.1.16/src/configuration.cc
Examining data/music-1.1.16/src/ioutils.cc
Examining data/music-1.1.16/src/multibuffer.cc
Examining data/music-1.1.16/src/linear_index.cc
Examining data/music-1.1.16/src/predict_rank-c.cc
Examining data/music-1.1.16/src/runtime.cc
Examining data/music-1.1.16/src/parse.cc
Examining data/music-1.1.16/src/temporal.cc
Examining data/music-1.1.16/src/music/predict_rank-c.h
Examining data/music-1.1.16/src/interval.cc
Examining data/music-1.1.16/src/application_map.cc
Examining data/music-1.1.16/src/scheduler_agent.cc
Examining data/music-1.1.16/src/index_map_factory.cc
Examining data/music-1.1.16/src/subconnector.cc
Examining data/music-1.1.16/src/application_mapper.cc
Examining data/music-1.1.16/src/permutation_index.cc
Examining data/music-1.1.16/src/event_routing_map.cc

FINAL RESULTS:

data/music-1.1.16/pymusic/pybuffer.cpp:806: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(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
data/music-1.1.16/pymusic/pymusic.cpp:824: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(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
data/music-1.1.16/utils/music.cc:152:3:  [4] (shell) execvp:
  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.
  execvp (binary.c_str (), argv);
data/music-1.1.16/mpidep/mpidep.cc:81:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *pmi_rank = getenv("PMI_RANK");
data/music-1.1.16/mpidep/mpidep.cc:109:16:  [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* vpid = getenv ("OMPI_MCA_ns_nds_vpid");
data/music-1.1.16/mpidep/mpidep.cc:111:12:  [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.
    vpid = getenv ("OMPI_COMM_WORLD_RANK");
data/music-1.1.16/mpidep/mpidep.cc:124: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.
  std::ifstream fnids (getenv ("MUSIC_NODEFILE"));
data/music-1.1.16/mpidep/mpidep.cc:147: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.
  char* musicSharedDir = getenv ("MUSIC_SHARED_DIR");
data/music-1.1.16/mpidep/mpidep.cc:152:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char* home = getenv ("HOME");
data/music-1.1.16/pymusic/pybuffer.cpp:3877:18:  [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.
            if (!setstate) PyErr_Clear();
data/music-1.1.16/pymusic/pybuffer.cpp:3878:18:  [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.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/music-1.1.16/pymusic/pybuffer.cpp:3878:58:  [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.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/music-1.1.16/pymusic/pybuffer.cpp:3899: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.
    Py_XDECREF(setstate);
data/music-1.1.16/pymusic/pymusic.cpp:16912:18:  [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.
            if (!setstate) PyErr_Clear();
data/music-1.1.16/pymusic/pymusic.cpp:16913:18:  [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.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/music-1.1.16/pymusic/pymusic.cpp:16913:58:  [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.
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
data/music-1.1.16/pymusic/pymusic.cpp:16934: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.
    Py_XDECREF(setstate);
data/music-1.1.16/src/setup.cc:172:17:  [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* res = getenv (Configuration::configEnvVarName);
data/music-1.1.16/src/setup.cc:239:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char* MUSIC_ARGV = getenv ("MUSIC_ARGV");
data/music-1.1.16/testsuite/sanitytests/clocksource.cc:75:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:h",
data/music-1.1.16/testsuite/sanitytests/constsource.cc:72:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:n:h",
data/music-1.1.16/testsuite/sanitytests/contdelay.cc:83:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:d:L:b:h", longOptions, &option_index);
data/music-1.1.16/testsuite/sanitytests/eventdelay.cc:107:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:d:L:b:h", longOptions, &option_index);
data/music-1.1.16/testsuite/sanitytests/multiport.cc:68:21:  [3] (random) drand48:
  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.
  return - m * log (drand48 ());
data/music-1.1.16/testsuite/sanitytests/multiport.cc:314:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:f:m:i:h", longOptions, &option_index);
data/music-1.1.16/utils/VisualiseNeurons.cpp:64:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:s:T:h", long_options, &option_index);
data/music-1.1.16/utils/contsink.cc:57:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:d:ih",
data/music-1.1.16/utils/eventcounter.cc:91:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:m:h", longOptions, &option_index);
data/music-1.1.16/utils/eventgenerator.cc:89:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:f:m:i:h", longOptions, &option_index);
data/music-1.1.16/utils/eventgenerator.cc:144:21:  [3] (random) drand48:
  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.
  return - m * log (drand48 ());
data/music-1.1.16/utils/eventlogger.cc:118:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:l:b:m:i:azh", longOptions, &optionIndex);
data/music-1.1.16/utils/eventselect.cc:83:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:m:i:h", longOptions, &option_index);
data/music-1.1.16/utils/eventsink.cc:104:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:m:i:hz", longOptions, &option_index);
data/music-1.1.16/utils/eventsource.cc:87:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:m:i:h",
data/music-1.1.16/utils/messagesource.cc:76:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+t:b:h",
data/music-1.1.16/utils/music.cc:199:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      int c = getopt_long (argc, argv, "+hm:v", longOptions, &option_index);
data/music-1.1.16/examples/waveproducer.cc:16: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).
  int width = atoi (argv[1]); // command line arg gives width
data/music-1.1.16/mpidep/mpidep.cc:86:12:  [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).
    rank = atoi(pmi_rank);
data/music-1.1.16/pymusic/pybuffer.cpp:759: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 ascii_chars[128];
data/music-1.1.16/pymusic/pybuffer.cpp:3911: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 warning[200];
data/music-1.1.16/pymusic/pybuffer.cpp:4845: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 ctversion[4], rtversion[4];
data/music-1.1.16/pymusic/pybuffer.cpp:4849: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 message[200];
data/music-1.1.16/pymusic/pymusic.cpp:777: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 ascii_chars[128];
data/music-1.1.16/pymusic/pymusic.cpp:11906:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void)(memcpy(__pyx_v_op->data.as_chars, __pyx_v_self->data.as_chars, (Py_SIZE(((PyObject *)__pyx_v_op)) * __pyx_v_op->ob_descr->itemsize)));
data/music-1.1.16/pymusic/pymusic.cpp:11991:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void)(memcpy((__pyx_v_self->data.as_chars + (__pyx_v_origsize * __pyx_v_itemsize)), __pyx_v_stuff, (__pyx_v_n * __pyx_v_itemsize)));
data/music-1.1.16/pymusic/pymusic.cpp:16946: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 warning[200];
data/music-1.1.16/pymusic/pymusic.cpp:19863: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 ctversion[4], rtversion[4];
data/music-1.1.16/pymusic/pymusic.cpp:19867: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 message[200];
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:206:10:  [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).
		return atoi(string);
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:213:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char myint[25];
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:214:2:  [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(myint, "%i", value);
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:230:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mydouble[25];
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:231:2:  [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(mydouble, "%g", value);
data/music-1.1.16/src/BIFO.cc:73: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 (&buffer[0], &buffer[current], elementSize_);
data/music-1.1.16/src/BIFO.cc:81: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 (&buffer[top], &buffer[0], elementSize_);
data/music-1.1.16/src/FIBO.cc:72: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 (memory, elements, blockSize);
data/music-1.1.16/src/collector.cc:142:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (dest + i->begin (), src, i->length ());
data/music-1.1.16/src/connector.cc:747:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char data[SPIKE_BUFFER_MAX];
data/music-1.1.16/src/distributor.cc:139:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (dest, src + i->begin (), i->length ());
data/music-1.1.16/src/event_router.cc:69: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 (buffer_ + size_, &extra_[0], extra_.size ());
data/music-1.1.16/src/sampler.cc:139: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 (dest + pos,
data/music-1.1.16/src/setup.cc:205:16:  [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).
        config.open (filename.c_str ());
data/music-1.1.16/src/subconnector.cc:454: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 data[SPIKE_BUFFER_MAX];
data/music-1.1.16/src/subconnector.cc:503: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 data[SPIKE_BUFFER_MAX];
data/music-1.1.16/src/subconnector.cc:669: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 data[MESSAGE_BUFFER_MAX];
data/music-1.1.16/src/subconnector.cc:867: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 (dest_buff + bSize,
data/music-1.1.16/testsuite/sanitytests/clocksource.cc:88:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/testsuite/sanitytests/contdelay.cc:98:12:  [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).
	  label = atoi(optarg);
data/music-1.1.16/testsuite/sanitytests/contdelay.cc:101:18:  [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).
	  maxbuffered = atoi(optarg);
data/music-1.1.16/testsuite/sanitytests/eventdelay.cc:122:12:  [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).
	  label = atoi(optarg);
data/music-1.1.16/testsuite/sanitytests/eventdelay.cc:125:18:  [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).
	  maxbuffered = atoi(optarg);
data/music-1.1.16/testsuite/sanitytests/multiport.cc:280: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[80];
data/music-1.1.16/testsuite/sanitytests/multiport.cc:326:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:593: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 sizer[1];
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:598: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 sizer[2];
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:734:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char asChar[sizeof (int)];
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:747:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            unsigned char bytes[sizeof(T)];
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:4304: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/music-1.1.16/testsuite/unittests/catch/catch.hpp:5212: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).
                m_ofs.open( m_config->getFilename().c_str() );
data/music-1.1.16/testsuite/unittests/catch/catch.hpp:5700: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/music-1.1.16/testsuite/unittests/catch/catch.hpp:8364:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/music-1.1.16/utils/VisualiseNeurons.cpp:295: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 buffer[20];
data/music-1.1.16/utils/VisualiseNeurons.cpp:297: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(buffer,"%.3f s",time_);
data/music-1.1.16/utils/eventcounter.cc:103:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/utils/eventcounter.cc:126:12:  [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).
  nUnits = atoi (argv[optind]);
data/music-1.1.16/utils/eventgenerator.cc:101:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/utils/eventgenerator.cc:138:12:  [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).
  nUnits = atoi (argv[optind]);
data/music-1.1.16/utils/eventlogger.cc:133:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/utils/eventselect.cc:107:12:  [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).
  nUnits = atoi (argv[optind]);
data/music-1.1.16/utils/eventselect.cc:144:12:  [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).
  unitfile.open (fname.c_str ());
data/music-1.1.16/utils/eventsink.cc:150:12:  [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).
  nUnits = atoi (argv[optind]);
data/music-1.1.16/utils/eventsource.cc:100:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/utils/eventsource.cc:134:12:  [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).
  nUnits = atoi (argv[optind]);
data/music-1.1.16/utils/messagesource.cc:89:18:  [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).
	  maxbuffered = atoi (optarg);
data/music-1.1.16/utils/messagesource.cc:148: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 msg[80];
data/music-1.1.16/pymusic/pybuffer.cpp:683:87:  [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).
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
data/music-1.1.16/pymusic/pybuffer.cpp:804:52:  [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).
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
data/music-1.1.16/pymusic/pybuffer.cpp:4893:65:  [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).
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
data/music-1.1.16/pymusic/pymusic.cpp:701:87:  [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).
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
data/music-1.1.16/pymusic/pymusic.cpp:822:52:  [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).
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
data/music-1.1.16/pymusic/pymusic.cpp:19948:65:  [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).
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
data/music-1.1.16/rudeconfig/src/Base64Encoder.cpp:97:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int crlflength=strlen(crlf);
data/music-1.1.16/rudeconfig/src/ConfigImpl.cpp:243:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int datalength=strlen(value);
data/music-1.1.16/src/application_map.cc:76:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ApplicationMap::read (std::istringstream& in)
data/music-1.1.16/src/application_map.cc:88:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::string name = IOUtils::read (in);
data/music-1.1.16/src/configuration.cc:125:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    setName (IOUtils::read (env));
data/music-1.1.16/src/configuration.cc:131:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    applications_->read (env);
data/music-1.1.16/src/configuration.cc:134:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    connectivityMap_->read (env, leaders);
data/music-1.1.16/src/configuration.cc:139:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::string name = IOUtils::read (env, '=');
data/music-1.1.16/src/configuration.cc:141:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        std::string v = IOUtils::read (env);
data/music-1.1.16/src/connectivity.cc:178:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Connectivity::read (std::istringstream& in, std::map<int, int> leaders)
data/music-1.1.16/src/connectivity.cc:185:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	std::string portName = IOUtils::read (in);
data/music-1.1.16/src/connectivity.cc:200:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    std::string recApp = IOUtils::read (in);
data/music-1.1.16/src/connectivity.cc:202:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    std::string recPort = IOUtils::read (in);
data/music-1.1.16/src/ioutils.cc:51:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read (std::istringstream& in, int delim)
data/music-1.1.16/src/ioutils.cc:78:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read (std::istringstream& in)
data/music-1.1.16/src/ioutils.cc:80:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      return read (in, ':');
data/music-1.1.16/src/music-c.cc:462:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(result, cxxResult.c_str (), maxlen);
data/music-1.1.16/src/setup.cc:224:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      config.read (buffer, size);
data/music-1.1.16/utils/VisualiseNeurons.cpp:312:31:  [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).
  for(unsigned int i = 0; i < strlen(buffer); i++) {
data/music-1.1.16/utils/VisualiseNeurons.cpp:420: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(tickDelay_.tv_usec);
data/music-1.1.16/utils/datafile.cc:68:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Datafile::read (const char* pattern, int& x)
data/music-1.1.16/utils/datafile.cc:81:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Datafile::read (const char* pattern, double& x)
data/music-1.1.16/utils/datafile.h:33:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bool read (const char*, int& x);
data/music-1.1.16/utils/datafile.h:34:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bool read (const char*, double& x);
data/music-1.1.16/utils/messagesource.cc:160:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  out->insertMessage (t, msg, strlen (msg));

ANALYSIS SUMMARY:

Hits = 126
Lines analyzed = 57297 in approximately 1.29 seconds (44500 lines/second)
Physical Source Lines of Code (SLOC) = 41410
Hits@level = [0]   3 [1]  31 [2]  59 [3]  33 [4]   3 [5]   0
Hits@level+ = [0+] 129 [1+] 126 [2+]  95 [3+]  36 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 3.11519 [1+] 3.04274 [2+] 2.29413 [3+] 0.869355 [4+] 0.0724463 [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.