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/aubio-0.4.9/examples/aubiomfcc.c Examining data/aubio-0.4.9/examples/aubionotes.c Examining data/aubio-0.4.9/examples/aubioonset.c Examining data/aubio-0.4.9/examples/aubiopitch.c Examining data/aubio-0.4.9/examples/aubioquiet.c Examining data/aubio-0.4.9/examples/aubiotrack.c Examining data/aubio-0.4.9/examples/jackio.c Examining data/aubio-0.4.9/examples/jackio.h Examining data/aubio-0.4.9/examples/parse_args.h Examining data/aubio-0.4.9/examples/utils.c Examining data/aubio-0.4.9/examples/utils.h Examining data/aubio-0.4.9/python/ext/aubio-types.h Examining data/aubio-0.4.9/python/ext/aubiomodule.c Examining data/aubio-0.4.9/python/ext/aubioproxy.c Examining data/aubio-0.4.9/python/ext/py-cvec.c Examining data/aubio-0.4.9/python/ext/py-filter.c Examining data/aubio-0.4.9/python/ext/py-filterbank.c Examining data/aubio-0.4.9/python/ext/py-musicutils.c Examining data/aubio-0.4.9/python/ext/py-musicutils.h Examining data/aubio-0.4.9/python/ext/py-phasevoc.c Examining data/aubio-0.4.9/python/ext/py-source.c Examining data/aubio-0.4.9/python/ext/ufuncs.c Examining data/aubio-0.4.9/python/ext/aubio-docstrings.h Examining data/aubio-0.4.9/python/ext/py-fft.c Examining data/aubio-0.4.9/python/ext/py-sink.c Examining data/aubio-0.4.9/src/aubio.h Examining data/aubio-0.4.9/src/aubio_priv.h Examining data/aubio-0.4.9/src/cvec.c Examining data/aubio-0.4.9/src/cvec.h Examining data/aubio-0.4.9/src/fmat.c Examining data/aubio-0.4.9/src/fmat.h Examining data/aubio-0.4.9/src/fvec.c Examining data/aubio-0.4.9/src/fvec.h Examining data/aubio-0.4.9/src/io/audio_unit.c Examining data/aubio-0.4.9/src/io/audio_unit.h Examining data/aubio-0.4.9/src/io/ioutils.c Examining data/aubio-0.4.9/src/io/ioutils.h Examining data/aubio-0.4.9/src/io/sink.c Examining data/aubio-0.4.9/src/io/sink.h Examining data/aubio-0.4.9/src/io/sink_apple_audio.c Examining data/aubio-0.4.9/src/io/sink_apple_audio.h Examining data/aubio-0.4.9/src/io/sink_sndfile.c Examining data/aubio-0.4.9/src/io/sink_sndfile.h Examining data/aubio-0.4.9/src/io/sink_wavwrite.c Examining data/aubio-0.4.9/src/io/sink_wavwrite.h Examining data/aubio-0.4.9/src/io/source.c Examining data/aubio-0.4.9/src/io/source.h Examining data/aubio-0.4.9/src/io/source_apple_audio.c Examining data/aubio-0.4.9/src/io/source_apple_audio.h Examining data/aubio-0.4.9/src/io/source_avcodec.c Examining data/aubio-0.4.9/src/io/source_avcodec.h Examining data/aubio-0.4.9/src/io/source_sndfile.c Examining data/aubio-0.4.9/src/io/source_sndfile.h Examining data/aubio-0.4.9/src/io/source_wavread.c Examining data/aubio-0.4.9/src/io/source_wavread.h Examining data/aubio-0.4.9/src/io/utils_apple_audio.c Examining data/aubio-0.4.9/src/lvec.c Examining data/aubio-0.4.9/src/lvec.h Examining data/aubio-0.4.9/src/mathutils.c Examining data/aubio-0.4.9/src/mathutils.h Examining data/aubio-0.4.9/src/musicutils.c Examining data/aubio-0.4.9/src/musicutils.h Examining data/aubio-0.4.9/src/notes/notes.c Examining data/aubio-0.4.9/src/notes/notes.h Examining data/aubio-0.4.9/src/onset/onset.c Examining data/aubio-0.4.9/src/onset/onset.h Examining data/aubio-0.4.9/src/onset/peakpicker.c Examining data/aubio-0.4.9/src/onset/peakpicker.h Examining data/aubio-0.4.9/src/pitch/pitch.c Examining data/aubio-0.4.9/src/pitch/pitch.h Examining data/aubio-0.4.9/src/pitch/pitchfcomb.c Examining data/aubio-0.4.9/src/pitch/pitchfcomb.h Examining data/aubio-0.4.9/src/pitch/pitchmcomb.c Examining data/aubio-0.4.9/src/pitch/pitchmcomb.h Examining data/aubio-0.4.9/src/pitch/pitchschmitt.c Examining data/aubio-0.4.9/src/pitch/pitchschmitt.h Examining data/aubio-0.4.9/src/pitch/pitchspecacf.c Examining data/aubio-0.4.9/src/pitch/pitchspecacf.h Examining data/aubio-0.4.9/src/pitch/pitchyin.c Examining data/aubio-0.4.9/src/pitch/pitchyin.h Examining data/aubio-0.4.9/src/pitch/pitchyinfast.c Examining data/aubio-0.4.9/src/pitch/pitchyinfast.h Examining data/aubio-0.4.9/src/pitch/pitchyinfft.c Examining data/aubio-0.4.9/src/pitch/pitchyinfft.h Examining data/aubio-0.4.9/src/spectral/awhitening.c Examining data/aubio-0.4.9/src/spectral/awhitening.h Examining data/aubio-0.4.9/src/spectral/dct.c Examining data/aubio-0.4.9/src/spectral/dct.h Examining data/aubio-0.4.9/src/spectral/dct_accelerate.c Examining data/aubio-0.4.9/src/spectral/dct_fftw.c Examining data/aubio-0.4.9/src/spectral/dct_ipp.c Examining data/aubio-0.4.9/src/spectral/dct_ooura.c Examining data/aubio-0.4.9/src/spectral/dct_plain.c Examining data/aubio-0.4.9/src/spectral/fft.c Examining data/aubio-0.4.9/src/spectral/fft.h Examining data/aubio-0.4.9/src/spectral/filterbank.c Examining data/aubio-0.4.9/src/spectral/filterbank.h Examining data/aubio-0.4.9/src/spectral/filterbank_mel.c Examining data/aubio-0.4.9/src/spectral/filterbank_mel.h Examining data/aubio-0.4.9/src/spectral/mfcc.c Examining data/aubio-0.4.9/src/spectral/mfcc.h Examining data/aubio-0.4.9/src/spectral/ooura_fft8g.c Examining data/aubio-0.4.9/src/spectral/phasevoc.c Examining data/aubio-0.4.9/src/spectral/phasevoc.h Examining data/aubio-0.4.9/src/spectral/specdesc.c Examining data/aubio-0.4.9/src/spectral/specdesc.h Examining data/aubio-0.4.9/src/spectral/statistics.c Examining data/aubio-0.4.9/src/spectral/tss.c Examining data/aubio-0.4.9/src/spectral/tss.h Examining data/aubio-0.4.9/src/synth/sampler.c Examining data/aubio-0.4.9/src/synth/sampler.h Examining data/aubio-0.4.9/src/synth/wavetable.c Examining data/aubio-0.4.9/src/synth/wavetable.h Examining data/aubio-0.4.9/src/tempo/beattracking.c Examining data/aubio-0.4.9/src/tempo/beattracking.h Examining data/aubio-0.4.9/src/tempo/tempo.c Examining data/aubio-0.4.9/src/tempo/tempo.h Examining data/aubio-0.4.9/src/temporal/a_weighting.c Examining data/aubio-0.4.9/src/temporal/a_weighting.h Examining data/aubio-0.4.9/src/temporal/biquad.c Examining data/aubio-0.4.9/src/temporal/biquad.h Examining data/aubio-0.4.9/src/temporal/c_weighting.c Examining data/aubio-0.4.9/src/temporal/c_weighting.h Examining data/aubio-0.4.9/src/temporal/filter.c Examining data/aubio-0.4.9/src/temporal/filter.h Examining data/aubio-0.4.9/src/temporal/resampler.c Examining data/aubio-0.4.9/src/temporal/resampler.h Examining data/aubio-0.4.9/src/types.h Examining data/aubio-0.4.9/src/utils/hist.c Examining data/aubio-0.4.9/src/utils/hist.h Examining data/aubio-0.4.9/src/utils/log.c Examining data/aubio-0.4.9/src/utils/log.h Examining data/aubio-0.4.9/src/utils/parameter.c Examining data/aubio-0.4.9/src/utils/parameter.h Examining data/aubio-0.4.9/src/utils/scale.c Examining data/aubio-0.4.9/src/utils/scale.h Examining data/aubio-0.4.9/src/utils/windll.c Examining data/aubio-0.4.9/src/vecutils.c Examining data/aubio-0.4.9/src/vecutils.h Examining data/aubio-0.4.9/tests/src/io/base-sink_custom.h Examining data/aubio-0.4.9/tests/src/io/base-source_custom.h Examining data/aubio-0.4.9/tests/src/io/test-sink.c Examining data/aubio-0.4.9/tests/src/io/test-sink_apple_audio.c Examining data/aubio-0.4.9/tests/src/io/test-sink_sndfile.c Examining data/aubio-0.4.9/tests/src/io/test-sink_wavwrite.c Examining data/aubio-0.4.9/tests/src/io/test-source.c Examining data/aubio-0.4.9/tests/src/io/test-source_apple_audio.c Examining data/aubio-0.4.9/tests/src/io/test-source_avcodec.c Examining data/aubio-0.4.9/tests/src/io/test-source_sndfile.c Examining data/aubio-0.4.9/tests/src/io/test-source_wavread.c Examining data/aubio-0.4.9/tests/src/notes/test-notes.c Examining data/aubio-0.4.9/tests/src/onset/test-onset.c Examining data/aubio-0.4.9/tests/src/onset/test-peakpicker.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitch.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchfcomb.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchmcomb.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchschmitt.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchspecacf.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchyin.c Examining data/aubio-0.4.9/tests/src/pitch/test-pitchyinfft.c Examining data/aubio-0.4.9/tests/src/spectral/test-awhitening.c Examining data/aubio-0.4.9/tests/src/spectral/test-dct.c Examining data/aubio-0.4.9/tests/src/spectral/test-fft.c Examining data/aubio-0.4.9/tests/src/spectral/test-filterbank.c Examining data/aubio-0.4.9/tests/src/spectral/test-filterbank_mel.c Examining data/aubio-0.4.9/tests/src/spectral/test-mfcc.c Examining data/aubio-0.4.9/tests/src/spectral/test-phasevoc.c Examining data/aubio-0.4.9/tests/src/spectral/test-specdesc.c Examining data/aubio-0.4.9/tests/src/spectral/test-tss.c Examining data/aubio-0.4.9/tests/src/synth/test-sampler.c Examining data/aubio-0.4.9/tests/src/synth/test-wavetable.c Examining data/aubio-0.4.9/tests/src/tempo/test-beattracking.c Examining data/aubio-0.4.9/tests/src/tempo/test-tempo.c Examining data/aubio-0.4.9/tests/src/temporal/test-a_weighting.c Examining data/aubio-0.4.9/tests/src/temporal/test-biquad.c Examining data/aubio-0.4.9/tests/src/temporal/test-c_weighting.c Examining data/aubio-0.4.9/tests/src/temporal/test-filter.c Examining data/aubio-0.4.9/tests/src/temporal/test-resampler.c Examining data/aubio-0.4.9/tests/src/test-cvec.c Examining data/aubio-0.4.9/tests/src/test-fmat.c Examining data/aubio-0.4.9/tests/src/test-fvec.c Examining data/aubio-0.4.9/tests/src/test-lvec.c Examining data/aubio-0.4.9/tests/src/test-mathutils-window.c Examining data/aubio-0.4.9/tests/src/test-mathutils.c Examining data/aubio-0.4.9/tests/src/test-vecutils.c Examining data/aubio-0.4.9/tests/src/utils/test-hist.c Examining data/aubio-0.4.9/tests/src/utils/test-log.c Examining data/aubio-0.4.9/tests/src/utils/test-parameter.c Examining data/aubio-0.4.9/tests/src/utils/test-scale.c Examining data/aubio-0.4.9/tests/utils_tests.h FINAL RESULTS: data/aubio-0.4.9/examples/utils.c:109:29: [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. uint_t sink_exists = (access(sink_uri, F_OK) == 0 ); data/aubio-0.4.9/examples/utils.h:35: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. #define access _access data/aubio-0.4.9/examples/utils.h:47:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug(...) fprintf (stderr, __VA_ARGS__) data/aubio-0.4.9/examples/utils.h:51:48: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verbmsg(...) if (verbose) fprintf (stderr, __VA_ARGS__) data/aubio-0.4.9/examples/utils.h:52:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define errmsg(...) fprintf (stderr, __VA_ARGS__) data/aubio-0.4.9/examples/utils.h:53:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define outmsg(...) fprintf (stdout, __VA_ARGS__) data/aubio-0.4.9/examples/utils.h:56:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug(...) fprintf (stderr, format , **args) data/aubio-0.4.9/examples/utils.h:60:48: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define verbmsg(format, args...) if (verbose) fprintf(stderr, format , ##args) data/aubio-0.4.9/examples/utils.h:61:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define errmsg(format, args...) fprintf(stderr, format , ##args) data/aubio-0.4.9/examples/utils.h:62:35: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define outmsg(format, args...) fprintf(stdout, format , ##args) data/aubio-0.4.9/src/aubio_priv.h:213:38: [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). #define AUBIO_STRCPY(_dst,_src) strcpy(_dst,_src) data/aubio-0.4.9/src/aubio_priv.h:252:38: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define AUBIO_SPRINTF sprintf data/aubio-0.4.9/src/utils/log.c:51:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(aubio_log_buffer, sizeof(aubio_log_buffer), fmt, args); data/aubio-0.4.9/tests/utils_tests.h:39:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_ERR(...) fprintf(stderr, "AUBIO-TESTS ERROR: " __VA_ARGS__) data/aubio-0.4.9/tests/utils_tests.h:40:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_MSG(...) fprintf(stdout, __VA_ARGS__) data/aubio-0.4.9/tests/utils_tests.h:41:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_DBG(...) fprintf(stderr, __VA_ARGS__) data/aubio-0.4.9/tests/utils_tests.h:42:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_WRN(...) fprintf(stderr, "AUBIO-TESTS WARNING: " __VA_ARGS__) data/aubio-0.4.9/tests/utils_tests.h:44:38: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_ERR(format, args...) fprintf(stderr, "AUBIO-TESTS ERROR: " format , ##args) data/aubio-0.4.9/tests/utils_tests.h:45:38: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_MSG(format, args...) fprintf(stdout, format , ##args) data/aubio-0.4.9/tests/utils_tests.h:46:38: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_DBG(format, args...) fprintf(stderr, format , ##args) data/aubio-0.4.9/tests/utils_tests.h:47:38: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define PRINT_WRN(format, args...) fprintf(stderr, "AUBIO-TESTS WARNING: " format, ##args) data/aubio-0.4.9/tests/utils_tests.h:90:10: [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. return access(source_path, R_OK); data/aubio-0.4.9/examples/parse_args.h:221:19: [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. next_option = getopt_long (argc, argv, options, long_options, NULL); data/aubio-0.4.9/tests/utils_tests.h:61:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define srandom srand data/aubio-0.4.9/tests/utils_tests.h:61:17: [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. #define srandom srand data/aubio-0.4.9/tests/utils_tests.h:62:9: [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. #define random rand data/aubio-0.4.9/tests/utils_tests.h:68:13: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern void srandom(unsigned); data/aubio-0.4.9/tests/utils_tests.h:69:12: [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. extern int random(void); data/aubio-0.4.9/tests/utils_tests.h:82:3: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom ((unsigned int)seed); data/aubio-0.4.9/examples/jackio.c:96: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[64]; data/aubio-0.4.9/examples/parse_args.h:233:33: [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). miditap_note = (smpl_t) atoi (optarg); data/aubio-0.4.9/examples/parse_args.h:236:33: [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). miditap_velo = (smpl_t) atoi (optarg); data/aubio-0.4.9/examples/parse_args.h:248: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). samplerate = atoi (optarg); data/aubio-0.4.9/examples/parse_args.h:251:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). buffer_size = atoi (optarg); data/aubio-0.4.9/examples/parse_args.h:254:20: [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). hop_size = atoi (optarg); data/aubio-0.4.9/src/aubio_priv.h:198:38: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define AUBIO_MEMCPY(_dst,_src,_n) memcpy(_dst,_src,_n) data/aubio-0.4.9/src/aubio_priv.h:204:38: [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). #define AUBIO_FOPEN(_f,_m) fopen(_f,_m) data/aubio-0.4.9/src/aubio_priv.h:341: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 errorstr[256]; \ data/aubio-0.4.9/src/aubio_priv.h:346: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 errorstr[256]; \ data/aubio-0.4.9/src/cvec.c:92: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(t->norm, s->norm, t->length * sizeof(smpl_t)); data/aubio-0.4.9/src/cvec.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(t->phas, s->phas, t->length * sizeof(smpl_t)); data/aubio-0.4.9/src/fmat.c:146: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(t->data[i], s->data[i], t->length * sizeof(smpl_t)); data/aubio-0.4.9/src/fvec.c:142: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(t->data, s->data, t->length * sizeof(smpl_t)); data/aubio-0.4.9/src/io/audio_unit.c:312:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (o->au_ios_inbuf + o->au_ios_start * 2, data, reminder * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/audio_unit.c:313:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (o->au_ios_inbuf, data + reminder * 2, starter * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/audio_unit.c:317:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (data, o->au_ios_outbuf + o->au_ios_start * 2, reminder * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/audio_unit.c:318:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (data + reminder * 2, o->au_ios_outbuf, starter * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/audio_unit.c:324:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(o->au_ios_inbuf + o->au_ios_start * 2, data, number_frames * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/audio_unit.c:328:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(data, o->au_ios_outbuf + o->au_ios_start * 2, number_frames * 2 * sizeof(SInt16)); data/aubio-0.4.9/src/io/sink_apple_audio.c:240:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errorstr,"buffer overflow"); data/aubio-0.4.9/src/io/sink_apple_audio.c:242:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(errorstr,"write too large"); data/aubio-0.4.9/src/io/sink_wavwrite.c:161: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. unsigned char buf[5]; data/aubio-0.4.9/src/io/sink_wavwrite.c:166:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fid = fopen((const char *)s->path, "wb"); data/aubio-0.4.9/src/io/sink_wavwrite.c:284: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. unsigned char buf[5]; data/aubio-0.4.9/src/io/source_avcodec.c:107: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 proto[20], authorization[256], hostname[128], uripath[256]; data/aubio-0.4.9/src/io/source_avcodec.c:165: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 errorstr[256]; data/aubio-0.4.9/src/io/source_avcodec.c:180: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 errorstr[256]; data/aubio-0.4.9/src/io/source_avcodec.c:253: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 errorstr[256]; data/aubio-0.4.9/src/io/source_avcodec.c:341:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorstr[256]; data/aubio-0.4.9/src/io/source_avcodec.c:392:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errorstr[256]; data/aubio-0.4.9/src/io/source_wavread.c:77: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. unsigned char buf[5] = "\0"; data/aubio-0.4.9/src/io/source_wavread.c:99:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). s->fid = fopen((const char *)path, "rb"); data/aubio-0.4.9/src/io/utils_apple_audio.c:55:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "%d", (int)error); data/aubio-0.4.9/src/pitch/pitch.c:285: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(data + overlap_size, newdata, ibuf->length); data/aubio-0.4.9/src/spectral/dct_fftw.c:112: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(output->data, s->data, output->length * sizeof(smpl_t)); data/aubio-0.4.9/src/spectral/dct_fftw.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(s->data, input->data, input->length * sizeof(smpl_t)); data/aubio-0.4.9/src/spectral/fft.c:351: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(s->in, input->data, s->winsize * sizeof(smpl_t)); data/aubio-0.4.9/src/spectral/phasevoc.c:175: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(data, dataold, pv->end_datasize); data/aubio-0.4.9/src/spectral/phasevoc.c:177: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(data, datanew, pv->hop_datasize); data/aubio-0.4.9/src/spectral/phasevoc.c:180: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(dataold, data, pv->end_datasize); data/aubio-0.4.9/src/utils/log.c:29: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 aubio_log_buffer[512]; data/aubio-0.4.9/tests/src/io/base-sink_custom.h:31:33: [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 ( argc >= 4 ) samplerate = atoi(argv[3]); data/aubio-0.4.9/tests/src/io/base-sink_custom.h:32:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 5 ) hop_size = atoi(argv[4]); data/aubio-0.4.9/tests/src/io/base-source_custom.h:31:33: [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 ( argc >= 3 ) samplerate = atoi(argv[2]); data/aubio-0.4.9/tests/src/io/base-source_custom.h:32:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 4 ) hop_size = atoi(argv[3]); data/aubio-0.4.9/tests/src/io/test-sink.c:27:33: [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 ( argc >= 4 ) samplerate = atoi(argv[3]); data/aubio-0.4.9/tests/src/io/test-sink.c:28:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 5 ) hop_size = atoi(argv[4]); data/aubio-0.4.9/tests/src/io/test-source.c:27:33: [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 ( argc >= 3 ) samplerate = atoi(argv[2]); data/aubio-0.4.9/tests/src/io/test-source.c:28:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 4 ) hop_size = atoi(argv[3]); data/aubio-0.4.9/tests/src/onset/test-onset.c:20:33: [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 ( argc >= 3 ) samplerate = atoi(argv[2]); data/aubio-0.4.9/tests/src/onset/test-onset.c:21:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 4 ) hop_size = atoi(argv[3]); data/aubio-0.4.9/tests/src/spectral/test-awhitening.c:26:33: [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 ( argc >= 4 ) samplerate = atoi(argv[3]); data/aubio-0.4.9/tests/src/spectral/test-awhitening.c:27:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 5 ) hop_size = atoi(argv[4]); data/aubio-0.4.9/tests/src/spectral/test-mfcc.c:27:33: [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 ( argc >= 3 ) samplerate = atoi(argv[2]); data/aubio-0.4.9/tests/src/spectral/test-mfcc.c:28:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 4 ) hop_s = atoi(argv[3]); data/aubio-0.4.9/tests/src/synth/test-sampler.c:31:33: [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 ( argc >= 5 ) samplerate = atoi(argv[4]); data/aubio-0.4.9/tests/src/synth/test-wavetable.c:20:33: [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 ( argc >= 4 ) samplerate = atoi(argv[3]); data/aubio-0.4.9/tests/src/tempo/test-tempo.c:17:33: [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 ( argc >= 3 ) samplerate = atoi(argv[2]); data/aubio-0.4.9/tests/src/tempo/test-tempo.c:19:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 4 ) win_size = atoi(argv[3]); data/aubio-0.4.9/tests/src/tempo/test-tempo.c:21:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if ( argc >= 5 ) hop_size = atoi(argv[4]); data/aubio-0.4.9/tests/src/test-mathutils-window.c:10: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 *window_types[11] = { "default", data/aubio-0.4.9/tests/utils_tests.h:70:13: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). extern char mkstemp(const char *pat); data/aubio-0.4.9/tests/utils_tests.h:95:10: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). return mkstemp(sink_path); data/aubio-0.4.9/tests/utils_tests.h:160: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 sink_path[PATH_MAX] = "tmp_aubio_XXXXXX"; data/aubio-0.4.9/tests/utils_tests.h:176: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 sink_path[PATH_MAX] = "tmp_aubio_XXXXXX"; data/aubio-0.4.9/examples/jackio.c:331:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read, sendtime; data/aubio-0.4.9/examples/jackio.c:350:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != sizeof (ev)) { data/aubio-0.4.9/examples/jackio.c:352:57: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). jack_ringbuffer_read_advance (dev->midi_out_ring, read); data/aubio-0.4.9/examples/utils.c:169:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do (this_source, input_buffer, &read); data/aubio-0.4.9/examples/utils.c:179:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). total_read += read; data/aubio-0.4.9/python/ext/py-sink.c:111:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(self->uri, uri, strnlen(uri, PATH_MAX) + 1); data/aubio-0.4.9/python/ext/py-source.c:354:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(self->uri, uri, strnlen(uri, PATH_MAX) + 1); data/aubio-0.4.9/python/ext/py-source.c:429:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint_t read; data/aubio-0.4.9/python/ext/py-source.c:437:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do (self->o, &(self->c_read_to), &read); data/aubio-0.4.9/python/ext/py-source.c:445:60: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read)); data/aubio-0.4.9/python/ext/py-source.c:454:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint_t read; data/aubio-0.4.9/python/ext/py-source.c:462:57: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi (self->o, &(self->c_mread_to), &read); data/aubio-0.4.9/python/ext/py-source.c:470:60: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read)); data/aubio-0.4.9/src/aubio_priv.h:210:38: [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 AUBIO_STRLEN(_s) strlen(_s) data/aubio-0.4.9/src/aubio_priv.h:388:26: [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 strnlen(a,b) MIN(strlen(a),b) data/aubio-0.4.9/src/io/sink_apple_audio.c:68:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, uri, strnlen(uri, PATH_MAX) + 1); data/aubio-0.4.9/src/io/sink_sndfile.c:65:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/sink_wavwrite.c:90:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/source.c:38:79: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). typedef void (*aubio_source_do_t)(aubio_source_t * s, fvec_t * data, uint_t * read); data/aubio-0.4.9/src/io/source.c:39:85: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). typedef void (*aubio_source_do_multi_t)(aubio_source_t * s, fmat_t * data, uint_t * read); data/aubio-0.4.9/src/io/source.c:128:66: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_do(aubio_source_t * s, fvec_t * data, uint_t * read) { data/aubio-0.4.9/src/io/source.c:129:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s->s_do((void *)s->source, data, read); data/aubio-0.4.9/src/io/source.c:132:72: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_do_multi(aubio_source_t * s, fmat_t * data, uint_t * read) { data/aubio-0.4.9/src/io/source.c:133:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s->s_do_multi((void *)s->source, data, read); data/aubio-0.4.9/src/io/source.h:101:69: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_do(aubio_source_t * s, fvec_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source.h:115:75: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_do_multi(aubio_source_t * s, fmat_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_apple_audio.c:97:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/source_apple_audio.c:210:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint_t * read) { data/aubio-0.4.9/src/io/source_apple_audio.c:232:98: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_apple_audio_do_multi(aubio_source_apple_audio_t *s, fmat_t * read_to, uint_t * read) { data/aubio-0.4.9/src/io/source_apple_audio.h:74:93: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_apple_audio_do(aubio_source_apple_audio_t * s, fvec_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_apple_audio.h:88:99: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_apple_audio_do_multi(aubio_source_apple_audio_t * s, fmat_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_avcodec.c:112:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(proto)) { data/aubio-0.4.9/src/io/source_avcodec.c:151:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/source_avcodec.c:479:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). uint_t * read) { data/aubio-0.4.9/src/io/source_avcodec.c:521:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fmat_t * read_data, uint_t * read) { data/aubio-0.4.9/src/io/source_avcodec.h:73:85: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_avcodec_do(aubio_source_avcodec_t * s, fvec_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_avcodec.h:87:91: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_avcodec_do_multi(aubio_source_avcodec_t * s, fmat_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_sndfile.c:91:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/source_sndfile.c:170:87: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_sndfile_do(aubio_source_sndfile_t * s, fvec_t * read_data, uint_t * read){ data/aubio-0.4.9/src/io/source_sndfile.c:216:40: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_pad_output (read_data, *read); data/aubio-0.4.9/src/io/source_sndfile.c:220:93: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_data, uint_t * read){ data/aubio-0.4.9/src/io/source_sndfile.c:272:61: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_pad_multi_output(read_data, input_channels, *read); data/aubio-0.4.9/src/io/source_sndfile.h:73:85: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_sndfile_do(aubio_source_sndfile_t * s, fvec_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_sndfile.h:87:91: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_sndfile_do_multi(aubio_source_sndfile_t * s, fmat_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_wavread.c:94:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); data/aubio-0.4.9/src/io/source_wavread.c:324:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (j = 0; j < read; j++) { data/aubio-0.4.9/src/io/source_wavread.c:340:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *wavread_read = read; data/aubio-0.4.9/src/io/source_wavread.c:345:87: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_wavread_do(aubio_source_wavread_t * s, fvec_t * read_data, uint_t * read){ data/aubio-0.4.9/src/io/source_wavread.c:384:93: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_wavread_do_multi(aubio_source_wavread_t * s, fmat_t * read_data, uint_t * read){ data/aubio-0.4.9/src/io/source_wavread.h:78:85: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_wavread_do(aubio_source_wavread_t * s, fvec_t * read_to, uint_t * read); data/aubio-0.4.9/src/io/source_wavread.h:92:91: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). void aubio_source_wavread_do_multi(aubio_source_wavread_t * s, fmat_t * read_to, uint_t * read); data/aubio-0.4.9/src/synth/sampler.c:63:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(o->uri, uri, strnlen(uri, PATH_MAX)); data/aubio-0.4.9/src/synth/sampler.c:75:52: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do (o->source, o->source_output, &read); data/aubio-0.4.9/src/synth/sampler.c:79:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read < o->blocksize) o->playing = 0; data/aubio-0.4.9/src/synth/sampler.c:92:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi (o->source, o->source_output_multi, &read); data/aubio-0.4.9/src/synth/sampler.c:98:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( read < o->blocksize ) o->playing = 0; data/aubio-0.4.9/src/tempo/tempo.c:205:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(specdesc_func, "specflux", PATH_MAX - 1); data/aubio-0.4.9/src/tempo/tempo.c:207:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(specdesc_func, tempo_mode, PATH_MAX - 1); data/aubio-0.4.9/tests/src/io/base-sink_custom.h:45:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(src, vec, &read); data/aubio-0.4.9/tests/src/io/base-sink_custom.h:46:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_sink_custom_do(snk, vec, read); data/aubio-0.4.9/tests/src/io/base-sink_custom.h:47:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/io/base-source_custom.h:46:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:48:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/io/base-source_custom.h:93:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:94:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:99:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:100:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size - 1) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:105:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:106:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:112:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:113:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:118:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:119:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:124:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:125:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size - 1) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:130:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:131:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:136:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:137:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/base-source_custom.h:147:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/base-source_custom.h:150:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_custom_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-sink.c:41:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(src, vec, &read); data/aubio-0.4.9/tests/src/io/test-sink.c:42:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_sink_do(snk, vec, read); data/aubio-0.4.9/tests/src/io/test-sink.c:43:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/io/test-source.c:42:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/test-source.c:44:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/io/test-source.c:89:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/test-source.c:90:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:95:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/test-source.c:96:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size - 1) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:101:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/test-source.c:102:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:108:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-source.c:109:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:114:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-source.c:115:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:120:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-source.c:121:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size - 1) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:126:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-source.c:127:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:132:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/io/test-source.c:133:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != hop_size) return 1; data/aubio-0.4.9/tests/src/io/test-source.c:143:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(s, vec, &read); data/aubio-0.4.9/tests/src/io/test-source.c:146:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do_multi(s, mat, &read); data/aubio-0.4.9/tests/src/onset/test-onset.c:38:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(source, in, &read); data/aubio-0.4.9/tests/src/onset/test-onset.c:47:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/spectral/test-awhitening.c:57:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(i, vec, &read); data/aubio-0.4.9/tests/src/spectral/test-awhitening.c:68:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_sink_do(o, out, read); data/aubio-0.4.9/tests/src/spectral/test-awhitening.c:69:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/spectral/test-mfcc.c:57:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(source, in, &read); data/aubio-0.4.9/tests/src/synth/test-sampler.c:25:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sample_path, argv[3], PATH_MAX - 1); data/aubio-0.4.9/tests/src/synth/test-sampler.c:28:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sample_path, source_path, PATH_MAX - 1); data/aubio-0.4.9/tests/src/synth/test-sampler.c:43:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(source, vec, &read); data/aubio-0.4.9/tests/src/synth/test-sampler.c:57:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_sink_do(sink, vec, read); data/aubio-0.4.9/tests/src/synth/test-sampler.c:58:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/src/tempo/test-tempo.c:43:34: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). aubio_source_do(source, in, &read); data/aubio-0.4.9/tests/src/tempo/test-tempo.c:54:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n_frames += read; data/aubio-0.4.9/tests/utils_tests.h:118: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). int letters_len = strlen(letters); data/aubio-0.4.9/tests/utils_tests.h:119:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int templ_len = strlen(templ); ANALYSIS SUMMARY: Hits = 214 Lines analyzed = 32360 in approximately 0.83 seconds (38771 lines/second) Physical Source Lines of Code (SLOC) = 20099 Hits@level = [0] 59 [1] 119 [2] 66 [3] 7 [4] 22 [5] 0 Hits@level+ = [0+] 273 [1+] 214 [2+] 95 [3+] 29 [4+] 22 [5+] 0 Hits/KSLOC@level+ = [0+] 13.5828 [1+] 10.6473 [2+] 4.7266 [3+] 1.44286 [4+] 1.09458 [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.