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/audiotools-3.1.1/src/replaygain.c
Examining data/audiotools-3.1.1/src/decoders/tta.h
Examining data/audiotools-3.1.1/src/decoders/vorbis.h
Examining data/audiotools-3.1.1/src/decoders/mp3.h
Examining data/audiotools-3.1.1/src/decoders/wavpack.c
Examining data/audiotools-3.1.1/src/decoders/flac.c
Examining data/audiotools-3.1.1/src/decoders/sine.c
Examining data/audiotools-3.1.1/src/decoders/opus.h
Examining data/audiotools-3.1.1/src/decoders/tta.c
Examining data/audiotools-3.1.1/src/decoders/oggflac.c
Examining data/audiotools-3.1.1/src/decoders/alac.c
Examining data/audiotools-3.1.1/src/decoders/oggflac.h
Examining data/audiotools-3.1.1/src/decoders/mp3.c
Examining data/audiotools-3.1.1/src/decoders/alac.h
Examining data/audiotools-3.1.1/src/decoders/opus.c
Examining data/audiotools-3.1.1/src/decoders/wavpack.h
Examining data/audiotools-3.1.1/src/decoders/sine.h
Examining data/audiotools-3.1.1/src/decoders/vorbis.c
Examining data/audiotools-3.1.1/src/decoders/alac_residual.h
Examining data/audiotools-3.1.1/src/decoders/flac.h
Examining data/audiotools-3.1.1/src/read_bits_table_le.h
Examining data/audiotools-3.1.1/src/buffer.h
Examining data/audiotools-3.1.1/src/bitstream.h
Examining data/audiotools-3.1.1/src/ogg_crc.c
Examining data/audiotools-3.1.1/src/pcm.h
Examining data/audiotools-3.1.1/src/read_unary_table_be.h
Examining data/audiotools-3.1.1/src/output/pulseaudio.c
Examining data/audiotools-3.1.1/src/output/core_audio.h
Examining data/audiotools-3.1.1/src/output/alsa.c
Examining data/audiotools-3.1.1/src/output/sfifo.c
Examining data/audiotools-3.1.1/src/output/alsa.h
Examining data/audiotools-3.1.1/src/output/core_audio.c
Examining data/audiotools-3.1.1/src/output/sfifo.h
Examining data/audiotools-3.1.1/src/output/pulseaudio.h
Examining data/audiotools-3.1.1/src/replaygain.h
Examining data/audiotools-3.1.1/src/ogg.c
Examining data/audiotools-3.1.1/src/unread_bit_table_le.h
Examining data/audiotools-3.1.1/src/dither.c
Examining data/audiotools-3.1.1/src/framelist.c
Examining data/audiotools-3.1.1/src/dvdamodule.h
Examining data/audiotools-3.1.1/src/bitstream-table.c
Examining data/audiotools-3.1.1/src/pcm_conv.h
Examining data/audiotools-3.1.1/src/accuraterip.c
Examining data/audiotools-3.1.1/src/huffman.c
Examining data/audiotools-3.1.1/src/mod_ogg.c
Examining data/audiotools-3.1.1/src/mod_bitstream.h
Examining data/audiotools-3.1.1/src/ogg_crc.h
Examining data/audiotools-3.1.1/src/encoders/tta.h
Examining data/audiotools-3.1.1/src/encoders/wavpack.c
Examining data/audiotools-3.1.1/src/encoders/flac.c
Examining data/audiotools-3.1.1/src/encoders/mp2.c
Examining data/audiotools-3.1.1/src/encoders/tta.c
Examining data/audiotools-3.1.1/src/encoders/alac.c
Examining data/audiotools-3.1.1/src/encoders/mp3.c
Examining data/audiotools-3.1.1/src/encoders/alac.h
Examining data/audiotools-3.1.1/src/encoders/opus.c
Examining data/audiotools-3.1.1/src/encoders/wavpack.h
Examining data/audiotools-3.1.1/src/encoders/vorbis.c
Examining data/audiotools-3.1.1/src/encoders/flac.h
Examining data/audiotools-3.1.1/src/huffman.h
Examining data/audiotools-3.1.1/src/ogg.h
Examining data/audiotools-3.1.1/src/mini-gmp.h
Examining data/audiotools-3.1.1/src/samplerate/fastest_coeffs.h
Examining data/audiotools-3.1.1/src/samplerate/common.h
Examining data/audiotools-3.1.1/src/samplerate/high_qual_coeffs.h
Examining data/audiotools-3.1.1/src/samplerate/samplerate.c
Examining data/audiotools-3.1.1/src/samplerate/mid_qual_coeffs.h
Examining data/audiotools-3.1.1/src/samplerate/src_zoh.c
Examining data/audiotools-3.1.1/src/samplerate/float_cast.h
Examining data/audiotools-3.1.1/src/samplerate/samplerate.h
Examining data/audiotools-3.1.1/src/samplerate/src_linear.c
Examining data/audiotools-3.1.1/src/samplerate/src_sinc.c
Examining data/audiotools-3.1.1/src/unread_bit_table_be.h
Examining data/audiotools-3.1.1/src/output.c
Examining data/audiotools-3.1.1/src/bitstream.c
Examining data/audiotools-3.1.1/src/pcm_conv.c
Examining data/audiotools-3.1.1/src/pcmconverter.c
Examining data/audiotools-3.1.1/src/read_bits_table_be.h
Examining data/audiotools-3.1.1/src/mod_ogg.h
Examining data/audiotools-3.1.1/src/parson.c
Examining data/audiotools-3.1.1/src/parson.h
Examining data/audiotools-3.1.1/src/read_unary_table_le.h
Examining data/audiotools-3.1.1/src/pcmreader.h
Examining data/audiotools-3.1.1/src/pcmconverter.h
Examining data/audiotools-3.1.1/src/cdiomodule.c
Examining data/audiotools-3.1.1/src/buffer.c
Examining data/audiotools-3.1.1/src/dvdamodule.c
Examining data/audiotools-3.1.1/src/mod_defs.h
Examining data/audiotools-3.1.1/src/accuraterip.h
Examining data/audiotools-3.1.1/src/encoders.h
Examining data/audiotools-3.1.1/src/func_io.h
Examining data/audiotools-3.1.1/src/func_io.c
Examining data/audiotools-3.1.1/src/framelist.h
Examining data/audiotools-3.1.1/src/common/flac_crc.h
Examining data/audiotools-3.1.1/src/common/tta_crc.c
Examining data/audiotools-3.1.1/src/common/flac_crc.c
Examining data/audiotools-3.1.1/src/common/md5.c
Examining data/audiotools-3.1.1/src/common/m4a_atoms.c
Examining data/audiotools-3.1.1/src/common/tta_crc.h
Examining data/audiotools-3.1.1/src/common/md5.h
Examining data/audiotools-3.1.1/src/common/m4a_atoms.h
Examining data/audiotools-3.1.1/src/mod_bitstream.c
Examining data/audiotools-3.1.1/src/mini-gmp.c
Examining data/audiotools-3.1.1/src/pcmreader.c
Examining data/audiotools-3.1.1/src/pcm.c
Examining data/audiotools-3.1.1/src/decoders.c
Examining data/audiotools-3.1.1/src/decoders.h
Examining data/audiotools-3.1.1/src/encoders.c
Examining data/audiotools-3.1.1/src/cdiomodule.h

FINAL RESULTS:

data/audiotools-3.1.1/src/bitstream-table.c:153:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "-h, --help",
data/audiotools-3.1.1/src/bitstream-table.c:155:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "--be",
data/audiotools-3.1.1/src/bitstream-table.c:157:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "--le",
data/audiotools-3.1.1/src/bitstream-table.c:159:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "--rb",
data/audiotools-3.1.1/src/bitstream-table.c:161:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "--urb",
data/audiotools-3.1.1/src/bitstream-table.c:163:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            printf(HELP_FORMAT, "--ru",
data/audiotools-3.1.1/src/common/m4a_atoms.c:2712:13:  [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.
            fprintf(output, "%" PRIu64, va_arg(ap, uint64_t));
data/audiotools-3.1.1/src/bitstream-table.c:149:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "h", long_options, &option_index);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2809:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/alac.c:1648:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/flac.c:2394:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/opus.c:208:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned)time(NULL));
data/audiotools-3.1.1/src/encoders/opus.c:499:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/tta.c:684:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/vorbis.c:233:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand((unsigned)time(NULL));
data/audiotools-3.1.1/src/encoders/vorbis.c:430:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/encoders/wavpack.c:433:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc,
data/audiotools-3.1.1/src/huffman.c:621:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "i:h", long_options, &option_index);
data/audiotools-3.1.1/src/bitstream-table.c:377:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(remaining.value,
data/audiotools-3.1.1/src/bitstream-table.c:408:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(remaining.value,
data/audiotools-3.1.1/src/bitstream-table.c:431: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(next.value, state->value, state->size * sizeof(unsigned short));
data/audiotools-3.1.1/src/bitstream-table.c:452: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(next.value + 1,
data/audiotools-3.1.1/src/bitstream-table.c:484:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(next.value,
data/audiotools-3.1.1/src/bitstream-table.c:525:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(next.value,
data/audiotools-3.1.1/src/bitstream.c:719: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(buf->data + buf->size, data, size);
data/audiotools-3.1.1/src/bitstream.c:742:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, buf->data + buf->pos, to_read);
data/audiotools-3.1.1/src/bitstream.c:799:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, buf->data + buf->pos, to_read);
data/audiotools-3.1.1/src/bitstream.c:922: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(buf->buffer + buf->pos, data, data_size);
data/audiotools-3.1.1/src/bitstream.c:2329: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(pos->position.external.buffer,
data/audiotools-3.1.1/src/bitstream.c:2378: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(input->buffer.data,
data/audiotools-3.1.1/src/bitstream.c:2675: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(br_queue_end(queue), data, byte_count);
data/audiotools-3.1.1/src/bitstream.c:4647: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(entry->_.write_bytes.bytes,
data/audiotools-3.1.1/src/bitstream.c:4796:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data,
data/audiotools-3.1.1/src/bitstream.c:5294: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, (uint8_t*)string, to_copy);
data/audiotools-3.1.1/src/bitstream.c:5708:15:  [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).
    if ((fd = mkstemp(temp_filename)) == -1) {
data/audiotools-3.1.1/src/bitstream.c:5743:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    temp_file2 = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:5747:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    temp_file2 = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:5823:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    temp_file2 = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:5827:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    temp_file2 = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:7343:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7353:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7363:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7383:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7403:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7419:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7437:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7491:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7507:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7531:23:  [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).
        output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:7554:19:  [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).
    output_file = fopen(temp_filename, "w+b");
data/audiotools-3.1.1/src/bitstream.c:7566:23:  [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).
        output_file = fopen(temp_filename, "w+b");
data/audiotools-3.1.1/src/bitstream.c:7579:19:  [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).
    output_file = fopen(temp_filename, "w+b");
data/audiotools-3.1.1/src/bitstream.c:7602:23:  [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).
        output_file = fopen(temp_filename, "w+b");
data/audiotools-3.1.1/src/bitstream.c:8249:19:  [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).
    output_file = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8259:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:8271:9:  [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).
    f = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8280:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:8295:9:  [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).
    f = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8305:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* f = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:8328:9:  [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).
    f = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8355:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:8360:22:  [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).
    reader = br_open(fopen(temp_filename, "rb"), BS_BIG_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8365:22:  [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).
    reader = br_open(fopen(temp_filename, "rb"), BS_BIG_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8372:19:  [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).
    output_file = fopen(temp_filename, "wb");
data/audiotools-3.1.1/src/bitstream.c:8377:22:  [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).
    reader = br_open(fopen(temp_filename, "rb"), BS_LITTLE_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8382:22:  [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).
    reader = br_open(fopen(temp_filename, "rb"), BS_LITTLE_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8647:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return bw_open(fopen(temp_filename, "wb"), BS_BIG_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8670:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    input_file = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8692:22:  [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).
    writer = bw_open(fopen(temp_filename, "wb"), BS_BIG_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8696:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    input_file = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8705:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return bw_open(fopen(temp_filename, "wb"), BS_LITTLE_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8728:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    input_file = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/bitstream.c:8748:22:  [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).
    writer = bw_open(fopen(temp_filename, "wb"), BS_LITTLE_ENDIAN);
data/audiotools-3.1.1/src/bitstream.c:8752:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    input_file = fopen(temp_filename, "rb");
data/audiotools-3.1.1/src/buffer.c:78:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, buf_window_start(stream), to_read);
data/audiotools-3.1.1/src/buffer.c:95:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf_window_end(stream), data, (size_t)data_size);
data/audiotools-3.1.1/src/common/m4a_atoms.c:30:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                         const char atom_name[4]);
data/audiotools-3.1.1/src/common/m4a_atoms.c:51:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               const char atom_name[4]);
data/audiotools-3.1.1/src/common/m4a_atoms.c:91:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
set_atom_name(struct qt_atom *atom, const char name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:150:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
qt_leaf_new(const char name[4],
data/audiotools-3.1.1/src/common/m4a_atoms.c:159:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(atom->_.leaf.data, data, data_size);
data/audiotools-3.1.1/src/common/m4a_atoms.c:169:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
qt_tree_new(const char name[4],
data/audiotools-3.1.1/src/common/m4a_atoms.c:206:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(atom->_.ftyp.major_brand, major_brand, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:267: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(atom->_.mvhd.geometry, geometry, 9 * sizeof(unsigned));
data/audiotools-3.1.1/src/common/m4a_atoms.c:307: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(atom->_.tkhd.geometry, geometry, 9 * sizeof(unsigned));
data/audiotools-3.1.1/src/common/m4a_atoms.c:325:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char language[3],
data/audiotools-3.1.1/src/common/m4a_atoms.c:337: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(atom->_.mdhd.language, language, 3 * sizeof(char));
data/audiotools-3.1.1/src/common/m4a_atoms.c:350:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_type[4],
data/audiotools-3.1.1/src/common/m4a_atoms.c:351:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_subtype[4],
data/audiotools-3.1.1/src/common/m4a_atoms.c:352:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_manufacturer[4],
data/audiotools-3.1.1/src/common/m4a_atoms.c:363: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(atom->_.hdlr.qt_type, qt_type, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:364: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(atom->_.hdlr.qt_subtype, qt_subtype, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:365: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(atom->_.hdlr.qt_manufacturer, qt_manufacturer, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:370: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(atom->_.hdlr.padding, padding, padding_length);
data/audiotools-3.1.1/src/common/m4a_atoms.c:480: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(atom->_.alac.vendor, vendor, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:713: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(atom->_.data.data, data, data_size);
data/audiotools-3.1.1/src/common/m4a_atoms.c:726: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 atom_name[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:738:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:846:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:917:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1018:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1107:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1252:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1390:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1398: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 language[3];
data/audiotools-3.1.1/src/common/m4a_atoms.c:1500:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1504: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 qt_type[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:1505: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 qt_subtype[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:1506: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 qt_manufacturer[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:1593:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1862:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:1876: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 sub_alac_name[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:1978:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2070:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2152:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2235:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2312:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2381:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2489:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2553:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
           const char atom_name[4])
data/audiotools-3.1.1/src/common/m4a_atoms.c:2583: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 name[4];
data/audiotools-3.1.1/src/common/m4a_atoms.c:2648: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(key.name, atom_name, 4);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2672: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(atom->_.ftyp.compatible_brands[atom->_.ftyp.compatible_brand_count],
data/audiotools-3.1.1/src/common/m4a_atoms.c:2848:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(filename, "rb")) != NULL) {
data/audiotools-3.1.1/src/common/m4a_atoms.h:112:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char language[3];
data/audiotools-3.1.1/src/common/m4a_atoms.h:259:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
qt_leaf_new(const char name[4],
data/audiotools-3.1.1/src/common/m4a_atoms.h:267:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
qt_tree_new(const char name[4],
data/audiotools-3.1.1/src/common/m4a_atoms.h:314:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char language[3],
data/audiotools-3.1.1/src/common/m4a_atoms.h:320:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_type[4],
data/audiotools-3.1.1/src/common/m4a_atoms.h:321:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_subtype[4],
data/audiotools-3.1.1/src/common/m4a_atoms.h:322:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            const char qt_manufacturer[4],
data/audiotools-3.1.1/src/common/m4a_atoms.h:446:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      const char atom_name[4]);
data/audiotools-3.1.1/src/common/md5.c:192: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((unsigned char *)ctx->in + 64 - t, buf, len);
data/audiotools-3.1.1/src/common/md5.c:196: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((unsigned char *)ctx->in + 64 - t, buf, t);
data/audiotools-3.1.1/src/common/md5.c:204: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(ctx->in, buf, 64);
data/audiotools-3.1.1/src/common/md5.c:212: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(ctx->in, buf, len);
data/audiotools-3.1.1/src/common/md5.c:266: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(digest, ctx->buf, 16);
data/audiotools-3.1.1/src/decoders/alac.c:53:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 char atom_name[4]);
data/audiotools-3.1.1/src/decoders/alac.c:166: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 atom_name[4];
data/audiotools-3.1.1/src/decoders/alac.c:538:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                 char atom_name[4])
data/audiotools-3.1.1/src/decoders/alac.c:865:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(channel_0, subframe[0], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:866:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(channel_1, subframe[1], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:869:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(channel_0, subframe[0], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:906:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(channel_0, subframe[0], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:907:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(channel_1, subframe[1], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:918:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(channel_0, subframe[0], block_size * sizeof(int));
data/audiotools-3.1.1/src/decoders/alac.c:1271: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 atom_name[4];
data/audiotools-3.1.1/src/decoders/alac.c:1294:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(argv[1], "rb")) == NULL) {
data/audiotools-3.1.1/src/decoders/flac.c:791:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_id[4];
data/audiotools-3.1.1/src/decoders/flac.c:792: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.
    const unsigned char valid_stream_id[4] = "fLaC";
data/audiotools-3.1.1/src/decoders/flac.c:1714:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[buffer_size];
data/audiotools-3.1.1/src/decoders/flac.c:1727:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char digest[16];
data/audiotools-3.1.1/src/decoders/flac.c:1834:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((flac = fopen(argv[1], "rb")) == NULL) {
data/audiotools-3.1.1/src/decoders/flac.c:1906: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 pcm_samples[sample_count *
data/audiotools-3.1.1/src/decoders/oggflac.c:78:22:  [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).
    self->ogg_file = fopen(filename, "rb");
data/audiotools-3.1.1/src/decoders/oggflac.c:327:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_md5sum[16];
data/audiotools-3.1.1/src/decoders/oggflac.c:328:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const static unsigned char blank_md5sum[16] = {0, 0, 0, 0, 0, 0, 0, 0,
data/audiotools-3.1.1/src/decoders/oggflac.c:444:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_md5sum[16];
data/audiotools-3.1.1/src/decoders/oggflac.c:445:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const static unsigned char blank_md5sum[16] = {0, 0, 0, 0, 0, 0, 0, 0,
data/audiotools-3.1.1/src/decoders/oggflac.c:454:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((ogg_file = fopen(argv[1], "rb")) == NULL) {
data/audiotools-3.1.1/src/decoders/tta.c:813:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(argv[1], "rb")) == NULL) {
data/audiotools-3.1.1/src/decoders/tta.c:889:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char pcm_samples[header.channels *
data/audiotools-3.1.1/src/decoders/wavpack.c:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char error[80];
data/audiotools-3.1.1/src/decoders/wavpack.c:263:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[buffer_size];
data/audiotools-3.1.1/src/dither.c:66: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, (uint8_t*)string, to_copy);
data/audiotools-3.1.1/src/encoders/alac.c:254:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        FILE *tempfile = tmpfile();
data/audiotools-3.1.1/src/encoders/alac.c:980: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(correlated0, channel0, pcm_frames * sizeof(int));
data/audiotools-3.1.1/src/encoders/alac.c:981: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(correlated1, channel1, pcm_frames * sizeof(int));
data/audiotools-3.1.1/src/encoders/alac.c:1066:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(qlp_coefficients, qlp_coefficients4, 4 * sizeof(int));
data/audiotools-3.1.1/src/encoders/alac.c:1071:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(qlp_coefficients, qlp_coefficients8, 8 * sizeof(int));
data/audiotools-3.1.1/src/encoders/alac.c:1233: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(coefficients, qlp_coefficients, order * sizeof(int));
data/audiotools-3.1.1/src/encoders/alac.c:1731:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((output_file = fopen(output_filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/encoders/flac.c:511:26:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        FILE *tempfile = tmpfile();
data/audiotools-3.1.1/src/encoders/flac.c:729:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output_file = fopen(filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/encoders/flac.c:1003:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[buffer_size];
data/audiotools-3.1.1/src/encoders/flac.c:1818:29:  [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(coefficients,
data/audiotools-3.1.1/src/encoders/flac.c:2181:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(rice_parameters,
data/audiotools-3.1.1/src/encoders/flac.c:2505:31:  [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).
    } else if ((output_file = fopen(output_filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/encoders/mp2.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mp2buf[MP2BUF_SIZE];
data/audiotools-3.1.1/src/encoders/mp2.c:68:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output_file = fopen(filename, "w+b")) == NULL) {
data/audiotools-3.1.1/src/encoders/mp3.c:42:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char mp3buf[MP3BUF_SIZE];
data/audiotools-3.1.1/src/encoders/mp3.c:72:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output_file = fopen(filename, "w+b")) == NULL) {
data/audiotools-3.1.1/src/encoders/opus.c:153:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_map[255];
data/audiotools-3.1.1/src/encoders/opus.c:165:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char opus_frame[OPUS_FRAME_LEN];
data/audiotools-3.1.1/src/encoders/opus.c:171:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output_file = fopen(filename, "w+b")) == NULL) {
data/audiotools-3.1.1/src/encoders/tta.c:592:25:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        if ((tempfile = tmpfile()) == NULL) {
data/audiotools-3.1.1/src/encoders/tta.c:741:31:  [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).
    } else if ((output_file = fopen(output_filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/encoders/vorbis.c:211:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output = fopen(filename, "w")) == NULL) {
data/audiotools-3.1.1/src/encoders/wavpack.c:102:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((output_file = fopen(filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/encoders/wavpack.c:162:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char stream_md5[16];
data/audiotools-3.1.1/src/encoders/wavpack.c:305:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[buffer_size];
data/audiotools-3.1.1/src/encoders/wavpack.c:349:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *file = fopen(filename, "rb");
data/audiotools-3.1.1/src/encoders/wavpack.c:531:31:  [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).
    } else if ((output_file = fopen(output_filename, "wb")) == NULL) {
data/audiotools-3.1.1/src/func_io.c:144: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, stream->buffer.data + stream->buffer.pos, to_copy);
data/audiotools-3.1.1/src/func_io.c:321: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(stream->buffer.data + stream->buffer.pos, data, to_copy);
data/audiotools-3.1.1/src/mod_ogg.c:107: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(self->page.segment[self->page.header.segment_count],
data/audiotools-3.1.1/src/mod_ogg.c:336: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(self->page.segment[self->page.header.segment_count],
data/audiotools-3.1.1/src/output/core_audio.c:114:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((devnull_stdout = open(devnull, O_WRONLY | O_TRUNC)) == -1) {
data/audiotools-3.1.1/src/output/core_audio.c:130:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (self->ao->open(self->ao)) {
data/audiotools-3.1.1/src/output/core_audio.h:40:11:  [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).
    int (*open)(struct audio_output_struct *);
data/audiotools-3.1.1/src/output/core_audio.h:59:9:  [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).
    int open;
data/audiotools-3.1.1/src/output/sfifo.c:98: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(f->buffer + i, buf, f->size - i);
data/audiotools-3.1.1/src/output/sfifo.c:103:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(f->buffer + i, buf, len);
data/audiotools-3.1.1/src/output/sfifo.c:133: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(buf, f->buffer + i, f->size - i);
data/audiotools-3.1.1/src/output/sfifo.c:138:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf, f->buffer + i, len);
data/audiotools-3.1.1/src/parson.c:495:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fp = fopen(filename, "r");
data/audiotools-3.1.1/src/pcm.c:382: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(frame->samples,
data/audiotools-3.1.1/src/pcm.c:481: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(head->samples,
data/audiotools-3.1.1/src/pcm.c:489: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(tail->samples,
data/audiotools-3.1.1/src/pcm.c:537: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(concat->samples, a->samples, a->samples_length * sizeof(int));
data/audiotools-3.1.1/src/pcm.c:538: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(concat->samples + a->samples_length,
data/audiotools-3.1.1/src/pcm.c:558: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(repeat->samples + (j * a->samples_length),
data/audiotools-3.1.1/src/pcm.c:597: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(a->samples + old_samples_length,
data/audiotools-3.1.1/src/pcm.c:616: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(a->samples + (j * original_length),
data/audiotools-3.1.1/src/pcm.c:783: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(output_frame->samples,
data/audiotools-3.1.1/src/pcm.c:836: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(output_frame->samples + (i * output_frame->channels),
data/audiotools-3.1.1/src/pcm.c:1246: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(frame->samples,
data/audiotools-3.1.1/src/pcm.c:1348: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(head->samples,
data/audiotools-3.1.1/src/pcm.c:1356: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(tail->samples,
data/audiotools-3.1.1/src/pcm.c:1396: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(concat->samples, a->samples, a->samples_length * sizeof(double));
data/audiotools-3.1.1/src/pcm.c:1397: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(concat->samples + a->samples_length,
data/audiotools-3.1.1/src/pcm.c:1417: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(repeat->samples + (j * a->samples_length),
data/audiotools-3.1.1/src/pcm.c:1450: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(a->samples + old_samples_length,
data/audiotools-3.1.1/src/pcm.c:1469: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(a->samples + (j * original_length),
data/audiotools-3.1.1/src/pcm.c:1525: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(output_frame->samples,
data/audiotools-3.1.1/src/pcm.c:1568: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(output_frame->samples + (i * output_frame->channels),
data/audiotools-3.1.1/src/pcmreader.c:250:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[bytes_to_read];
data/audiotools-3.1.1/src/pcmreader.c:297:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buffer[bytes_to_read];
data/audiotools-3.1.1/src/pcmreader.c:388: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(pcm_data,
data/audiotools-3.1.1/src/replaygain.c:686: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 (self->linprebuf + MAX_ORDER, left_samples , num_samples * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:687: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 ( self->rinprebuf + MAX_ORDER, right_samples, num_samples * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:690: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 ( self->linprebuf + MAX_ORDER, left_samples,  MAX_ORDER   * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:691: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 ( self->rinprebuf + MAX_ORDER, right_samples, MAX_ORDER   * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:781: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  ( self->linprebuf + MAX_ORDER - num_samples, left_samples,          num_samples             * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:782: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  ( self->rinprebuf + MAX_ORDER - num_samples, right_samples,         num_samples             * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:785: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  ( self->linprebuf, left_samples  + num_samples - MAX_ORDER, MAX_ORDER * sizeof(double) );
data/audiotools-3.1.1/src/replaygain.c:786: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  ( self->rinprebuf, right_samples + num_samples - MAX_ORDER, MAX_ORDER * sizeof(double) );
data/audiotools-3.1.1/src/samplerate/src_sinc.c:1172: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 (filter->buffer + filter->b_end, data->data_in + filter->in_used,
data/audiotools-3.1.1/src/bitstream.c:1243:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 ext_read_f read,
data/audiotools-3.1.1/src/bitstream.c:1255:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                    read,
data/audiotools-3.1.1/src/bitstream.c:1377:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  unsigned int, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1379:33:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  unsigned int, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1393:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  uint64_t, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1395:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  uint64_t, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1426:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1427:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return self->read(self, count - 1);
data/audiotools-3.1.1/src/bitstream.c:1429:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return self->read(self, count - 1) - (1 << (count - 1));
data/audiotools-3.1.1/src/bitstream.c:1436:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int unsigned_value = self->read(self, count - 1);
data/audiotools-3.1.1/src/bitstream.c:1438:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1448:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1460:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1510:52:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FUNC_READ_BITS_BIGINT_BE(br_read_bits_bigint_f_be, fgetc,
data/audiotools-3.1.1/src/bitstream.c:1564:52:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FUNC_READ_BITS_BIGINT_LE(br_read_bits_bigint_f_le, fgetc,
data/audiotools-3.1.1/src/bitstream.c:1586:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1634:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!self->read(self, 1)) {
data/audiotools-3.1.1/src/bitstream.c:1709:38:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FUNC_SKIP_BITS_BE(br_skip_bits_f_be, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1754:38:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FUNC_SKIP_BITS_LE(br_skip_bits_f_le, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:1834:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fgetc, self->input.file, read_unary_table_be)
data/audiotools-3.1.1/src/bitstream.c:1836:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fgetc, self->input.file, read_unary_table_le)
data/audiotools-3.1.1/src/bitstream.c:1884:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fgetc, self->input.file, read_unary_table_be)
data/audiotools-3.1.1/src/bitstream.c:1886:17:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                fgetc, self->input.file, read_unary_table_le)
data/audiotools-3.1.1/src/bitstream.c:2059:51:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FUNC_READ_HUFFMAN_CODE(br_read_huffman_code_file, fgetc, self->input.file)
data/audiotools-3.1.1/src/bitstream.c:2103:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            *bytes++ = self->read(self, 8);
data/audiotools-3.1.1/src/bitstream.c:2138:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              *bytes++ = self->read(self, 8);                         \
data/audiotools-3.1.1/src/bitstream.c:2172:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    br_read_f read = self->read;
data/audiotools-3.1.1/src/bitstream.c:2195:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                *value = read(self, size);
data/audiotools-3.1.1/src/bitstream.c:6014:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 2) == 0x2);
data/audiotools-3.1.1/src/bitstream.c:6015:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 0x6);
data/audiotools-3.1.1/src/bitstream.c:6016:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 5) == 0x07);
data/audiotools-3.1.1/src/bitstream.c:6017:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 0x5);
data/audiotools-3.1.1/src/bitstream.c:6018:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 19) == 0x53BC1);
data/audiotools-3.1.1/src/bitstream.c:6040:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 2) == 0x2);
data/audiotools-3.1.1/src/bitstream.c:6042:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 5) == 0x07);
data/audiotools-3.1.1/src/bitstream.c:6044:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 19) == 0x53BC1);
data/audiotools-3.1.1/src/bitstream.c:6048:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xE);
data/audiotools-3.1.1/src/bitstream.c:6051:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x3);
data/audiotools-3.1.1/src/bitstream.c:6054:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xC);
data/audiotools-3.1.1/src/bitstream.c:6057:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6059:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xD);
data/audiotools-3.1.1/src/bitstream.c:6061:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6063:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x7);
data/audiotools-3.1.1/src/bitstream.c:6065:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6067:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x8);
data/audiotools-3.1.1/src/bitstream.c:6072:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned bit = reader->read(reader, 1);
data/audiotools-3.1.1/src/bitstream.c:6075:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        re_read = reader->read(reader, 1);
data/audiotools-3.1.1/src/bitstream.c:6082:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->unread(reader, reader->read(reader, 1));
data/audiotools-3.1.1/src/bitstream.c:6147:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 5);
data/audiotools-3.1.1/src/bitstream.c:6149:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 7);
data/audiotools-3.1.1/src/bitstream.c:6152:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 59);
data/audiotools-3.1.1/src/bitstream.c:6154:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 12);
data/audiotools-3.1.1/src/bitstream.c:6160:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 11);
data/audiotools-3.1.1/src/bitstream.c:6165:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 5);
data/audiotools-3.1.1/src/bitstream.c:6167:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 5);
data/audiotools-3.1.1/src/bitstream.c:6169:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 3);
data/audiotools-3.1.1/src/bitstream.c:6171:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 12);
data/audiotools-3.1.1/src/bitstream.c:6175:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xB);
data/audiotools-3.1.1/src/bitstream.c:6177:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6179:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 12) == 0xB1E);
data/audiotools-3.1.1/src/bitstream.c:6182:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xD);
data/audiotools-3.1.1/src/bitstream.c:6184:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xD3);
data/audiotools-3.1.1/src/bitstream.c:6186:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 12) == 0xD3B);
data/audiotools-3.1.1/src/bitstream.c:6190:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6192:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6194:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6196:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6199:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6207:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6215:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6217:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6219:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6221:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6224:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6232:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6241:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6244:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6247:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6250:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6254:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6263:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6272:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6275:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6278:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6281:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6285:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6294:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6469:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 2) == 0x1);
data/audiotools-3.1.1/src/bitstream.c:6470:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 0x4);
data/audiotools-3.1.1/src/bitstream.c:6471:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 5) == 0x0D);
data/audiotools-3.1.1/src/bitstream.c:6472:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 0x3);
data/audiotools-3.1.1/src/bitstream.c:6473:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 19) == 0x609DF);
data/audiotools-3.1.1/src/bitstream.c:6495:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 2) == 0x1);
data/audiotools-3.1.1/src/bitstream.c:6497:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 5) == 0x0D);
data/audiotools-3.1.1/src/bitstream.c:6499:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 19) == 0x609DF);
data/audiotools-3.1.1/src/bitstream.c:6503:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xD);
data/audiotools-3.1.1/src/bitstream.c:6506:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xB);
data/audiotools-3.1.1/src/bitstream.c:6509:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x1);
data/audiotools-3.1.1/src/bitstream.c:6512:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6514:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x6);
data/audiotools-3.1.1/src/bitstream.c:6516:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6518:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xD);
data/audiotools-3.1.1/src/bitstream.c:6520:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:6522:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x0);
data/audiotools-3.1.1/src/bitstream.c:6526:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned bit = reader->read(reader, 1);
data/audiotools-3.1.1/src/bitstream.c:6529:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        re_read = reader->read(reader, 1);
data/audiotools-3.1.1/src/bitstream.c:6536:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->unread(reader, reader->read(reader, 1));
data/audiotools-3.1.1/src/bitstream.c:6603:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 1);
data/audiotools-3.1.1/src/bitstream.c:6608:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 1);
data/audiotools-3.1.1/src/bitstream.c:6610:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 5);
data/audiotools-3.1.1/src/bitstream.c:6613:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 59);
data/audiotools-3.1.1/src/bitstream.c:6615:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 1);
data/audiotools-3.1.1/src/bitstream.c:6618:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 1);
data/audiotools-3.1.1/src/bitstream.c:6620:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 3) == 7);
data/audiotools-3.1.1/src/bitstream.c:6622:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 11);
data/audiotools-3.1.1/src/bitstream.c:6624:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 1);
data/audiotools-3.1.1/src/bitstream.c:6628:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0x1);
data/audiotools-3.1.1/src/bitstream.c:6630:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6632:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 12) == 0xDB1);
data/audiotools-3.1.1/src/bitstream.c:6635:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 4) == 0xE);
data/audiotools-3.1.1/src/bitstream.c:6637:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xBE);
data/audiotools-3.1.1/src/bitstream.c:6639:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 12) == 0x3BE);
data/audiotools-3.1.1/src/bitstream.c:6643:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6645:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6647:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6649:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6652:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6660:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6668:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6670:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6672:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6674:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6677:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6685:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6694:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6697:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6700:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6703:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6707:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6716:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6725:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xC1);
data/audiotools-3.1.1/src/bitstream.c:6728:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0x3B);
data/audiotools-3.1.1/src/bitstream.c:6731:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xED);
data/audiotools-3.1.1/src/bitstream.c:6734:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 8) == 0xB1);
data/audiotools-3.1.1/src/bitstream.c:6738:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6747:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:6926:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 2);
data/audiotools-3.1.1/src/bitstream.c:7024:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 1);
data/audiotools-3.1.1/src/bitstream.c:7053:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 1) == 1);
data/audiotools-3.1.1/src/bitstream.c:7062:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 2);
data/audiotools-3.1.1/src/bitstream.c:7175:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 4);
data/audiotools-3.1.1/src/bitstream.c:7189:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        reader->read(reader, 4);
data/audiotools-3.1.1/src/bitstream.c:7196:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7199:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7200:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7202:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7208:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7211:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7212:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7214:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    reader->read(reader, 8);
data/audiotools-3.1.1/src/bitstream.c:7559:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7560:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7561:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7571:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7572:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7573:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7574:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7595:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7596:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7597:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7618:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7619:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:7620:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0xFF);
data/audiotools-3.1.1/src/bitstream.c:7621:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert(fgetc(output_file) == 0x00);
data/audiotools-3.1.1/src/bitstream.c:8273:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(br->read(br, check->resulting_bytes * 8) == check->resulting_value);
data/audiotools-3.1.1/src/bitstream.c:8297:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(br->read(br, check->resulting_bytes * 8) == check->resulting_value);
data/audiotools-3.1.1/src/bitstream.c:8330:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(br->read(br, check->resulting_bytes * 8) == check->resulting_value);
data/audiotools-3.1.1/src/bitstream.c:8426:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 0);
data/audiotools-3.1.1/src/bitstream.c:8427:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 4294967295UL);
data/audiotools-3.1.1/src/bitstream.c:8428:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 2147483648UL);
data/audiotools-3.1.1/src/bitstream.c:8429:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 2147483647UL);
data/audiotools-3.1.1/src/bitstream.c:8503:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 0);
data/audiotools-3.1.1/src/bitstream.c:8504:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 4294967295UL);
data/audiotools-3.1.1/src/bitstream.c:8505:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 2147483648UL);
data/audiotools-3.1.1/src/bitstream.c:8506:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert(reader->read(reader, 32) == 2147483647UL);
data/audiotools-3.1.1/src/bitstream.c:8808:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (unsigned)read;
data/audiotools-3.1.1/src/bitstream.h:288:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    br_read_f read;                                                      \
data/audiotools-3.1.1/src/bitstream.h:558:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 ext_read_f read,
data/audiotools-3.1.1/src/cdiomodule.c:479:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    sectors_read = self->read(self, sectors_to_read, framelist->samples);
data/audiotools-3.1.1/src/cdiomodule.c:734:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (cddareader_set_log_item(log_obj, "read", log->read))
data/audiotools-3.1.1/src/cdiomodule.h:34:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read;
data/audiotools-3.1.1/src/cdiomodule.h:81:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int (*read)(struct cdio_CDDAReader_s *self,
data/audiotools-3.1.1/src/common/m4a_atoms.c:729:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    atom_size = reader->read(reader, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1025:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    major_brand_version = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1124:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1125:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1129:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        time_scale = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1132:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        created_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1133:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        modified_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1134:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        time_scale = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1135:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        duration = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1267:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1268:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1272:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        track_id = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1276:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        created_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1277:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        modified_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1278:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        track_id = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1280:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        duration = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1402:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1403:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1407:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        time_scale = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1410:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        created_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1411:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        modified_date = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1412:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        time_scale = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1413:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        duration = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1417:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        language[i] = stream->read(stream, 5) + 0x60;
data/audiotools-3.1.1/src/common/m4a_atoms.c:1419:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    quality = stream->read(stream, 16);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1513:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1514:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1518:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    qt_flags = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1519:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    qt_flags_mask = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1595:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1596:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1597:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned balance = stream->read(stream, 16);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1650:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1651:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1652:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned reference_atom_count = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1757:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1758:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1759:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned description_atom_count = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:1889:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    sub_alac_size = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2073:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2074:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2075:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned times_count = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2084:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stts->_.stts.times[i].occurences = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2085:61:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stts->_.stts.times[i].pcm_frame_count = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2155:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2156:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2157:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned entries_count = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2162:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            unsigned first_chunk = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2163:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            unsigned frames_per_chunk = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2164:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            unsigned description_index = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2238:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2239:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2240:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned frame_byte_size = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2241:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned frame_sizes = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2248:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            qt_stsz_add_size(stsz, stream->read(stream, 32));
data/audiotools-3.1.1/src/common/m4a_atoms.c:2315:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2316:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2317:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned chunk_offsets = stream->read(stream, 32);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2321:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            qt_stco_add_offset(stco, stream->read(stream, 32));
data/audiotools-3.1.1/src/common/m4a_atoms.c:2383:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned version = stream->read(stream, 8);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2384:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned flags = stream->read(stream, 24);
data/audiotools-3.1.1/src/common/m4a_atoms.c:2497:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    type = stream->read(stream, 32);
data/audiotools-3.1.1/src/decoders/alac.c:541:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *atom_size = stream->read(stream, 32);
data/audiotools-3.1.1/src/decoders/alac.c:692:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned channels = br->read(br, 3) + 1;
data/audiotools-3.1.1/src/decoders/alac.c:732:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        channels = br->read(br, 3) + 1;
data/audiotools-3.1.1/src/decoders/alac.c:754:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    has_sample_count = br->read(br, 1);
data/audiotools-3.1.1/src/decoders/alac.c:755:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    uncompressed_LSBs = br->read(br, 2);
data/audiotools-3.1.1/src/decoders/alac.c:756:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    not_uncompressed = br->read(br, 1);
data/audiotools-3.1.1/src/decoders/alac.c:760:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *block_size = br->read(br, 32);
data/audiotools-3.1.1/src/decoders/alac.c:824:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned interlacing_shift = br->read(br, 8);
data/audiotools-3.1.1/src/decoders/alac.c:825:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned interlacing_leftweight = br->read(br, 8);
data/audiotools-3.1.1/src/decoders/alac.c:879:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                LSBs[c][i] = br->read(br, uncompressed_bits);
data/audiotools-3.1.1/src/decoders/alac.c:937:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    subframe_header->prediction_type = br->read(br, 4);
data/audiotools-3.1.1/src/decoders/alac.c:941:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    subframe_header->shift_needed = br->read(br, 4);
data/audiotools-3.1.1/src/decoders/alac.c:942:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    subframe_header->rice_modifier = br->read(br, 3);
data/audiotools-3.1.1/src/decoders/alac.c:943:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    subframe_header->coeff_count = br->read(br, 5);
data/audiotools-3.1.1/src/decoders/alac.c:1060:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return br->read(br, sample_size);
data/audiotools-3.1.1/src/decoders/alac.c:1066:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned lsb = br->read(br, k - 1);
data/audiotools-3.1.1/src/decoders/alac.c:1071:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            lsb |= br->read(br, 1);
data/audiotools-3.1.1/src/decoders/flac.c:809:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->minimum_block_size = r->read(r, 16);
data/audiotools-3.1.1/src/decoders/flac.c:810:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->maximum_block_size = r->read(r, 16);
data/audiotools-3.1.1/src/decoders/flac.c:811:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->minimum_frame_size = r->read(r, 24);
data/audiotools-3.1.1/src/decoders/flac.c:812:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->maximum_frame_size = r->read(r, 24);
data/audiotools-3.1.1/src/decoders/flac.c:813:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->sample_rate = r->read(r, 20);
data/audiotools-3.1.1/src/decoders/flac.c:814:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->channel_count = r->read(r, 3) + 1;
data/audiotools-3.1.1/src/decoders/flac.c:815:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    streaminfo->bits_per_sample = r->read(r, 5) + 1;
data/audiotools-3.1.1/src/decoders/flac.c:844:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t mask_key_len = strlen(channel_mask_key);
data/audiotools-3.1.1/src/decoders/flac.c:846:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const size_t mask_entry_len = strlen(channel_mask_entry);
data/audiotools-3.1.1/src/decoders/flac.c:851:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    r->skip_bytes(r, r->read(r, 32));
data/audiotools-3.1.1/src/decoders/flac.c:853:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    for (total_entries = r->read(r, 32);
data/audiotools-3.1.1/src/decoders/flac.c:856:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned entry_len = r->read(r, 32);
data/audiotools-3.1.1/src/decoders/flac.c:893:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (r->read(r, 14) != 0x3FFE) {
data/audiotools-3.1.1/src/decoders/flac.c:898:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        frame_header->blocking_strategy = r->read(r, 1);
data/audiotools-3.1.1/src/decoders/flac.c:899:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        encoded_block_size = r->read(r, 4);
data/audiotools-3.1.1/src/decoders/flac.c:900:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        encoded_sample_rate = r->read(r, 4);
data/audiotools-3.1.1/src/decoders/flac.c:901:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        encoded_channels = r->read(r, 4);
data/audiotools-3.1.1/src/decoders/flac.c:902:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        encoded_bps = r->read(r, 3);
data/audiotools-3.1.1/src/decoders/flac.c:919:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case 6: frame_header->block_size = r->read(r, 8) + 1; break;
data/audiotools-3.1.1/src/decoders/flac.c:920:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case 7: frame_header->block_size = r->read(r, 16) + 1; break;
data/audiotools-3.1.1/src/decoders/flac.c:951:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case 12: frame_header->sample_rate = r->read(r, 8) * 1000; break;
data/audiotools-3.1.1/src/decoders/flac.c:952:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case 13: frame_header->sample_rate = r->read(r, 16); break;
data/audiotools-3.1.1/src/decoders/flac.c:953:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        case 14: frame_header->sample_rate = r->read(r, 16) * 10; break;
data/audiotools-3.1.1/src/decoders/flac.c:1035:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    *utf8 = r->read(r, 7 - count);
data/audiotools-3.1.1/src/decoders/flac.c:1038:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (r->read(r, 2) == 2) {
data/audiotools-3.1.1/src/decoders/flac.c:1039:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                *utf8 = (*utf8 << 8) | (r->read(r, 6));
data/audiotools-3.1.1/src/decoders/flac.c:1270:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    type_and_order = r->read(r, 6);
data/audiotools-3.1.1/src/decoders/flac.c:1271:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    has_wasted_bps = r->read(r, 1);
data/audiotools-3.1.1/src/decoders/flac.c:1411:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        precision = r->read(r, 4) + 1;
data/audiotools-3.1.1/src/decoders/flac.c:1449:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    br_read_f read = r->read;
data/audiotools-3.1.1/src/decoders/flac.c:1451:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned coding_method = read(r, 2);
data/audiotools-3.1.1/src/decoders/flac.c:1452:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned partition_order = read(r, 4);
data/audiotools-3.1.1/src/decoders/flac.c:1472:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned rice = read(r, rice_bits);
data/audiotools-3.1.1/src/decoders/flac.c:1478:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const unsigned escape_code = read(r, 5);
data/audiotools-3.1.1/src/decoders/flac.c:1486:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                const unsigned LSB = read(r, rice);
data/audiotools-3.1.1/src/decoders/flac.c:1655:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        precision = r->read(r, 4) + 1;
data/audiotools-3.1.1/src/decoders/flac.c:1670:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned coding_method = r->read(r, 2);
data/audiotools-3.1.1/src/decoders/flac.c:1671:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned partition_order = r->read(r, 4);
data/audiotools-3.1.1/src/decoders/flac.c:1685:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned rice = r->read(r, rice_bits);
data/audiotools-3.1.1/src/decoders/flac.c:1691:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const unsigned escape_code = r->read(r, 5);
data/audiotools-3.1.1/src/decoders/oggflac.c:219:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            packet->read(packet, 16);
data/audiotools-3.1.1/src/decoders/oggflac.c:345:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (packet->read(packet, 8) != 0x7F) {
data/audiotools-3.1.1/src/decoders/oggflac.c:361:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (packet->read(packet, 8) != 1) {
data/audiotools-3.1.1/src/decoders/oggflac.c:369:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (packet->read(packet, 8) != 0) {
data/audiotools-3.1.1/src/decoders/oggflac.c:377:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        *header_packets = packet->read(packet, 16);
data/audiotools-3.1.1/src/decoders/oggflac.c:386:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        packet->read(packet, 1); /*last block*/
data/audiotools-3.1.1/src/decoders/oggflac.c:387:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (packet->read(packet, 7) != 0) {
data/audiotools-3.1.1/src/decoders/oggflac.c:395:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        packet->read(packet, 24); /*block length*/
data/audiotools-3.1.1/src/decoders/oggflac.c:397:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->minimum_block_size = packet->read(packet, 16);
data/audiotools-3.1.1/src/decoders/oggflac.c:398:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->maximum_block_size = packet->read(packet, 16);
data/audiotools-3.1.1/src/decoders/oggflac.c:399:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->minimum_frame_size = packet->read(packet, 24);
data/audiotools-3.1.1/src/decoders/oggflac.c:400:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->maximum_frame_size = packet->read(packet, 24);
data/audiotools-3.1.1/src/decoders/oggflac.c:401:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->sample_rate = packet->read(packet, 20);
data/audiotools-3.1.1/src/decoders/oggflac.c:402:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->channels = packet->read(packet, 3) + 1;
data/audiotools-3.1.1/src/decoders/oggflac.c:403:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        streaminfo->bits_per_sample = packet->read(packet, 5) + 1;
data/audiotools-3.1.1/src/decoders/oggflac.c:406:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            streaminfo->md5sum[i] = packet->read(packet, 8);
data/audiotools-3.1.1/src/decoders/oggflac.c:562:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            packet->read(packet, 16);
data/audiotools-3.1.1/src/decoders/tta.c:463:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        uint32_t frame_checksum = tta_file->read(tta_file, 32);
data/audiotools-3.1.1/src/decoders/tta.c:513:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        seektable[i] = frame->read(frame, 32);
data/audiotools-3.1.1/src/decoders/tta.c:592:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const unsigned LSB = frame->read(frame, params->k1);
data/audiotools-3.1.1/src/decoders/tta.c:598:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned_ = frame->read(frame, params->k0);
data/audiotools-3.1.1/src/encoders/alac.c:382:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((pcm_frames_read = pcmreader->read(pcmreader,
data/audiotools-3.1.1/src/encoders/alac.c:1571:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      (unsigned)strlen(encoder_version),
data/audiotools-3.1.1/src/encoders/flac.c:962: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).
    const size_t version_len = strlen(version);
data/audiotools-3.1.1/src/encoders/flac.c:1024:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            pcmreader->read(pcmreader, options->block_size, pcm_data)) > 0) {
data/audiotools-3.1.1/src/encoders/mp2.c:96:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((pcm_frames = pcmreader->read(pcmreader, BLOCK_SIZE, buffer)) > 0) {
data/audiotools-3.1.1/src/encoders/mp3.c:146:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((pcm_frames = pcmreader->read(pcmreader, BLOCK_SIZE, buffer)) > 0) {
data/audiotools-3.1.1/src/encoders/opus.c:225:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t vendor_string_len = strlen(vendor_string);
data/audiotools-3.1.1/src/encoders/opus.c:231:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                              (unsigned)strlen(opushead));
data/audiotools-3.1.1/src/encoders/opus.c:269:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               (unsigned)strlen(opuscomment));
data/audiotools-3.1.1/src/encoders/opus.c:301:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pcm_frames = pcmreader->read(pcmreader, BLOCK_SIZE, samples);
data/audiotools-3.1.1/src/encoders/opus.c:345:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        pcm_frames = pcmreader->read(pcmreader, BLOCK_SIZE, samples);
data/audiotools-3.1.1/src/encoders/tta.c:141:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            pcmreader->read(pcmreader, default_block_size, samples)) > 0) {
data/audiotools-3.1.1/src/encoders/vorbis.c:262:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned pcm_frames = pcmreader->read(pcmreader, BLOCK_SIZE, samples);
data/audiotools-3.1.1/src/encoders/wavpack.c:233:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            pcmreader->read(pcmreader, block_size, samples)) > 0) {
data/audiotools-3.1.1/src/func_io.c:37:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           ext_read_f read,
data/audiotools-3.1.1/src/func_io.c:48:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    input->read = read;
data/audiotools-3.1.1/src/func_io.c:100:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filled = stream->read(stream->user_data,
data/audiotools-3.1.1/src/func_io.h:78:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ext_read_f read;
data/audiotools-3.1.1/src/func_io.h:118:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           ext_read_f read,
data/audiotools-3.1.1/src/mini-gmp.c:4138:8:  [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).
  sn = strlen (sp);
data/audiotools-3.1.1/src/mini-gmp.c:4204:9:  [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).
  len = strlen (str);
data/audiotools-3.1.1/src/mod_bitstream.c:99:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const unsigned result = br->read(br, bits);
data/audiotools-3.1.1/src/ogg.c:31:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         ogg_stream->read(ogg_stream, 32)) != 0x5367674F) {
data/audiotools-3.1.1/src/ogg.c:35:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((header->version = ogg_stream->read(ogg_stream, 8)) != 0) {
data/audiotools-3.1.1/src/ogg.c:39:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->packet_continuation = ogg_stream->read(ogg_stream, 1);
data/audiotools-3.1.1/src/ogg.c:40:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->stream_beginning = ogg_stream->read(ogg_stream, 1);
data/audiotools-3.1.1/src/ogg.c:41:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->stream_end = ogg_stream->read(ogg_stream, 1);
data/audiotools-3.1.1/src/ogg.c:44:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->bitstream_serial_number = ogg_stream->read(ogg_stream, 32);
data/audiotools-3.1.1/src/ogg.c:45:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->sequence_number = ogg_stream->read(ogg_stream, 32);
data/audiotools-3.1.1/src/ogg.c:51:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        header->checksum = ogg_stream->read(ogg_stream, 32);
data/audiotools-3.1.1/src/ogg.c:65:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    header->segment_count = ogg_stream->read(ogg_stream, 8);
data/audiotools-3.1.1/src/ogg.c:67:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        header->segment_lengths[i] = ogg_stream->read(ogg_stream, 8);
data/audiotools-3.1.1/src/output/core_audio.c:180:5:  [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(FIFO_DURATION * 1000000);
data/audiotools-3.1.1/src/output/core_audio.c:454: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( (FIFO_DURATION/2) * 1000000 );
data/audiotools-3.1.1/src/output/core_audio.c:501:43:  [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.
        while(!ca->play_done && ca->play) usleep(10000);
data/audiotools-3.1.1/src/output/core_audio.c:577:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        unsigned int read;
data/audiotools-3.1.1/src/output/core_audio.c:596:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        outOutputData->mBuffers[n].mDataByteSize = read;
data/audiotools-3.1.1/src/parson.c:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(output_string, string, n);
data/audiotools-3.1.1/src/parson.c:160:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    object->names[index] = parson_strndup(name, strlen(name));
data/audiotools-3.1.1/src/parson.c:177:23:  [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).
        name_length = strlen(object->names[i]);
data/audiotools-3.1.1/src/parson.c:345: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).
    if (try_realloc((void**)&output, strlen(output) + 1) == ERROR) { return NULL; }
data/audiotools-3.1.1/src/parson.c:525:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return json_object_nget_value(object, name, strlen(name));
data/audiotools-3.1.1/src/pcmconverter.c:121:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned frames_read = self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmconverter.c:233:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const unsigned frames_read = self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmconverter.c:413:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        self->pcmreader->read(
data/audiotools-3.1.1/src/pcmconverter.c:603:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmconverter.c:627:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        br_read_f read = white_noise->read;
data/audiotools-3.1.1/src/pcmconverter.c:632:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            framelist->samples[i] |= read(white_noise, 1);
data/audiotools-3.1.1/src/pcmconverter.c:739:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    frames_read = self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmconverter.c:894:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    frames_read = self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmconverter.c:1043:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    frames_read = self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/pcmreader.c:445:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((pcm_frames = pcmreader->read(pcmreader,
data/audiotools-3.1.1/src/pcmreader.h:82:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    unsigned (*read)(struct PCMReader *self,
data/audiotools-3.1.1/src/replaygain.c:932:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            self->pcmreader->read(self->pcmreader,
data/audiotools-3.1.1/src/replaygain.c:954:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 self->white_noise->read(self->white_noise, 1));

ANALYSIS SUMMARY:

Hits = 625
Lines analyzed = 434475 in approximately 13.82 seconds (31433 lines/second)
Physical Source Lines of Code (SLOC) = 417747
Hits@level = [0] 271 [1] 387 [2] 220 [3]  11 [4]   7 [5]   0
Hits@level+ = [0+] 896 [1+] 625 [2+] 238 [3+]  18 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 2.14484 [1+] 1.49612 [2+] 0.569723 [3+] 0.0430883 [4+] 0.0167566 [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.