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/ffmpegfs-2.0/test/metadata.c
Examining data/ffmpegfs-2.0/test/fpcompare.c
Examining data/ffmpegfs-2.0/src/fileio.cc
Examining data/ffmpegfs-2.0/src/fileio.h
Examining data/ffmpegfs-2.0/src/wave.h
Examining data/ffmpegfs-2.0/src/dvdparser.h
Examining data/ffmpegfs-2.0/src/ffmpeg_utils.cc
Examining data/ffmpegfs-2.0/src/ffmpeg_profiles.cc
Examining data/ffmpegfs-2.0/src/cache_maintenance.h
Examining data/ffmpegfs-2.0/src/ffmpeg_compat.h
Examining data/ffmpegfs-2.0/src/ffmpegfs.cc
Examining data/ffmpegfs-2.0/src/logging.h
Examining data/ffmpegfs-2.0/src/cache_entry.h
Examining data/ffmpegfs-2.0/src/ffmpeg_profiles.h
Examining data/ffmpegfs-2.0/src/id3v1tag.h
Examining data/ffmpegfs-2.0/src/cache_entry.cc
Examining data/ffmpegfs-2.0/src/transcode.h
Examining data/ffmpegfs-2.0/src/thread_pool.cc
Examining data/ffmpegfs-2.0/src/blurayparser.cc
Examining data/ffmpegfs-2.0/src/cache_maintenance.cc
Examining data/ffmpegfs-2.0/src/blurayparser.h
Examining data/ffmpegfs-2.0/src/diskio.cc
Examining data/ffmpegfs-2.0/src/ffmpeg_utils.h
Examining data/ffmpegfs-2.0/src/ffmpegfs.h
Examining data/ffmpegfs-2.0/src/dvdio.h
Examining data/ffmpegfs-2.0/src/fuseops.cc
Examining data/ffmpegfs-2.0/src/blurayio.cc
Examining data/ffmpegfs-2.0/src/cache.h
Examining data/ffmpegfs-2.0/src/buffer.cc
Examining data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc
Examining data/ffmpegfs-2.0/src/cache.cc
Examining data/ffmpegfs-2.0/src/vcdparser.cc
Examining data/ffmpegfs-2.0/src/diskio.h
Examining data/ffmpegfs-2.0/src/vcdio.h
Examining data/ffmpegfs-2.0/src/buffer.h
Examining data/ffmpegfs-2.0/src/ffmpeg_transcoder.h
Examining data/ffmpegfs-2.0/src/thread_pool.h
Examining data/ffmpegfs-2.0/src/ffmpeg_base.h
Examining data/ffmpegfs-2.0/src/logging.cc
Examining data/ffmpegfs-2.0/src/dvdio.cc
Examining data/ffmpegfs-2.0/src/blurayio.h
Examining data/ffmpegfs-2.0/src/transcode.cc
Examining data/ffmpegfs-2.0/src/vcdparser.h
Examining data/ffmpegfs-2.0/src/ffmpeg_base.cc
Examining data/ffmpegfs-2.0/src/dvdparser.cc
Examining data/ffmpegfs-2.0/src/vcdio.cc
Examining data/ffmpegfs-2.0/src/vcd/vcdutils.cc
Examining data/ffmpegfs-2.0/src/vcd/vcdchapter.h
Examining data/ffmpegfs-2.0/src/vcd/vcdinfo.h
Examining data/ffmpegfs-2.0/src/vcd/vcdentries.cc
Examining data/ffmpegfs-2.0/src/vcd/vcdutils.h
Examining data/ffmpegfs-2.0/src/vcd/vcdchapter.cc
Examining data/ffmpegfs-2.0/src/vcd/vcdentries.h
Examining data/ffmpegfs-2.0/src/vcd/vcdinfo.cc

FINAL RESULTS:

data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1072:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    ssize_t count = readlink("/proc/self/exe", result, PATH_MAX);
data/ffmpegfs-2.0/src/fuseops.cc:674:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    len = readlink(origpath.c_str(), buf, size - 2);
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:690:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(dir, p);
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1120:39:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    size_t size = static_cast<size_t>(snprintf(nullptr, 0, format.c_str(), args ...) + 1); // Extra space for '\0'
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1122:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    std::snprintf(buf.get(), size, format.c_str(), args ...);
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1321:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return (access(filename.c_str(), F_OK) != -1);
data/ffmpegfs-2.0/src/logging.h:322:56:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                size_t size = static_cast<size_t>(std::snprintf(nullptr, 0, res[2].str().c_str(), val)) + 1;
data/ffmpegfs-2.0/src/logging.h:325:22:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                std::snprintf(buffer.data(), size, res[2].str().c_str(), val);
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:71:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(fullname.c_str(), F_OK))
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:79:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(fullname.c_str(), F_OK))
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:95:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(fullname.c_str(), F_OK))
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:103:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(fullname.c_str(), F_OK))
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:714:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *temp = getenv("TMPDIR");
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1250:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(filepath->c_str(), resolved_name) != nullptr)
data/ffmpegfs-2.0/src/transcode.cc:194:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            if (const char* cache_home = std::getenv("XDG_CACHE_HOME"))
data/ffmpegfs-2.0/src/blurayio.cc:75:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int BlurayIO::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/blurayio.cc:187: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, &m_data[m_rest_pos], m_rest_size);
data/ffmpegfs-2.0/src/blurayio.cc:218: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(data, m_data, result_len);
data/ffmpegfs-2.0/src/blurayio.cc:226: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(data, m_data, result_len);
data/ffmpegfs-2.0/src/blurayio.h:79:21:  [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).
    virtual int     open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/blurayparser.cc:366: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 title_buf[PATH_MAX + 1];
data/ffmpegfs-2.0/src/blurayparser.cc:407: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(&stbuf, statbuf, sizeof(struct stat));
data/ffmpegfs-2.0/src/buffer.cc:65:13:  [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 Buffer::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/buffer.cc:336:17:  [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).
        *fd = ::open(filename.c_str(), O_CREAT | O_RDWR, static_cast<mode_t>(0644));
data/ffmpegfs-2.0/src/buffer.cc:634: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(write_ptr, data, length);
data/ffmpegfs-2.0/src/buffer.cc:689: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(reinterpret_cast<void *>(m_cur_ci->m_buffer_idx + start), &new_image_frame, sizeof(IMAGE_FRAME));
data/ffmpegfs-2.0/src/buffer.cc:862: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(out_data, ci->m_buffer + offset, bufsize);
data/ffmpegfs-2.0/src/buffer.h:158:29:  [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).
    virtual int             open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/cache.cc:986:21:  [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).
Cache_Entry *Cache::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/cache.cc:1040: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 sql[1024];
data/ffmpegfs-2.0/src/cache.h:71: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            m_desttype[11];             /**< @brief Destination type */
data/ffmpegfs-2.0/src/cache.h:147:29:  [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).
    Cache_Entry *           open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/cache_entry.cc:56:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        m_buffer->open(virtualfile);
data/ffmpegfs-2.0/src/cache_entry.cc:164:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool Cache_Entry::open(bool create_cache /*= true*/)
data/ffmpegfs-2.0/src/cache_entry.h:79:29:  [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).
    bool                    open(bool create_cache = true);
data/ffmpegfs-2.0/src/diskio.cc:59:13:  [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 DiskIO::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/diskio.cc:65:13:  [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).
    m_fpi = fopen(virtualfile->m_origfile.c_str(), "rb");
data/ffmpegfs-2.0/src/diskio.h:65:21:  [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).
    virtual int     open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/dvdio.cc:87:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int DvdIO::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/dvdio.cc:413: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(out, in, size);
data/ffmpegfs-2.0/src/dvdio.cc:426: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(out, in, size);
data/ffmpegfs-2.0/src/dvdio.cc:567: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, &m_data[m_rest_pos], rest_size);
data/ffmpegfs-2.0/src/dvdio.cc:653:21:  [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, m_data, result_len);
data/ffmpegfs-2.0/src/dvdio.cc:662:21:  [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, m_data, result_len);
data/ffmpegfs-2.0/src/dvdio.h:89:21:  [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).
    virtual int     open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/dvdio.h:215: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   m_data[1024 * DVD_VIDEO_LB_LEN];            /**< @brief Buffer for read() data */
data/ffmpegfs-2.0/src/dvdio.h:216: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   m_buffer[1024 * DVD_VIDEO_LB_LEN];          /**< @brief Buffer for data extracted from VOB file */
data/ffmpegfs-2.0/src/dvdparser.cc:305:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char title_buf[PATH_MAX + 1];
data/ffmpegfs-2.0/src/dvdparser.cc:353: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(&stbuf, statbuf, sizeof(struct stat));
data/ffmpegfs-2.0/src/ffmpeg_base.cc:348: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 buffer[1024];
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:310:21:  [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).
    ret = m_fileio->open(m_virtualfile);
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:2824: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(converted_data[0], input_data[0], static_cast<size_t>(in_samples * av_get_bytes_per_sample(m_out.m_audio.m_codec_ctx->sample_fmt) * m_in.m_audio.m_codec_ctx->channels));
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:2831: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(converted_data[n], input_data[n], samples);
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:2869: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(converted_data[0], input_data[0], in_samples * av_get_bytes_per_sample(m_out.m_audio.m_codec_ctx->sample_fmt) * m_in.m_audio.m_codec_ctx->channels);
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:2875: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(converted_data[n], input_data[n], in_samples * av_get_bytes_per_sample(m_out.m_audio.m_codec_ctx->sample_fmt));
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:3565:62:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                m_out.m_id3v1.m_title_no = static_cast<char>(atoi(tag->value));
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:4820: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 args[1024];
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:443:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char error[AV_ERROR_MAX_STRING_SIZE];
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:681: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 dir[PATH_MAX] = "\0";
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:787: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(&id3v1->m_tag, "TAG", 3);
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1071: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 result[PATH_MAX + 1] = "";
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:1248: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 resolved_name[PATH_MAX + 1];
data/ffmpegfs-2.0/src/ffmpegfs.cc:484:45:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *bitrate = static_cast<BITRATE>(atol(data.c_str()));
data/ffmpegfs-2.0/src/ffmpegfs.cc:553:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *samplerate = atoi(data.c_str());
data/ffmpegfs-2.0/src/ffmpegfs.cc:613:41:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *time = static_cast<time_t>(atol(data.c_str()));
data/ffmpegfs-2.0/src/ffmpegfs.cc:711:41:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            *size = static_cast<size_t>(atol(data.c_str()));
data/ffmpegfs-2.0/src/ffmpegfs.cc:1048:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        *value = atoi(arg.substr(pos + 1).c_str());
data/ffmpegfs-2.0/src/fileio.h:75: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            m_tag[8];                   /**< @brief Start tag, always ascii "IMGFRAME". */
data/ffmpegfs-2.0/src/fileio.h:243:25:  [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).
    virtual int         open(LPVIRTUALFILE virtualfile) = 0;
data/ffmpegfs-2.0/src/fuseops.cc:326:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *fpi = fopen(scriptsource.c_str(), "rt");
data/ffmpegfs-2.0/src/fuseops.cc:454: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(&virtualfile.m_st, stbuf, sizeof(struct stat));
data/ffmpegfs-2.0/src/fuseops.cc:465: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(&virtualfile.m_st, stbuf, sizeof(struct stat));
data/ffmpegfs-2.0/src/fuseops.cc:519: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(&stbuf, statbuf, sizeof(struct stat));
data/ffmpegfs-2.0/src/fuseops.cc:1492:18:  [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 fd = open(origpath.c_str(), fi->flags);
data/ffmpegfs-2.0/src/fuseops.cc:1611:18:  [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 fd = open(origpath.c_str(), O_RDONLY);
data/ffmpegfs-2.0/src/fuseops.cc:1661: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(buf, &virtualfile->m_file_contents[offset], bytes);
data/ffmpegfs-2.0/src/fuseops.cc:1929:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    *value = static_cast<uint32_t>(atoi(filename.c_str())); // Extract frame or segment number. May be more fancy in the future. Currently just get number from filename part.
data/ffmpegfs-2.0/src/id3v1tag.h:41: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 m_tag[3];                      /**< @brief Contains "TAG" */
data/ffmpegfs-2.0/src/id3v1tag.h:42: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 m_title[30];                   /**< @brief Title of sound track */
data/ffmpegfs-2.0/src/id3v1tag.h: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 m_artist[30];                  /**< @brief Artist name */
data/ffmpegfs-2.0/src/id3v1tag.h:44: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 m_album[30];                   /**< @brief Album name */
data/ffmpegfs-2.0/src/id3v1tag.h:45: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 m_year[4];                     /**< @brief Year of publishing */
data/ffmpegfs-2.0/src/id3v1tag.h:46: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 m_comment[28];                 /**< @brief Any user comments */
data/ffmpegfs-2.0/src/logging.cc:72:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        m_logfile.open(logfile);
data/ffmpegfs-2.0/src/transcode.cc:248:39:  [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).
    Cache_Entry* cache_entry = cache->open(virtualfile);
data/ffmpegfs-2.0/src/transcode.cc:276:39:  [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).
    Cache_Entry* cache_entry = cache->open(virtualfile);
data/ffmpegfs-2.0/src/transcode.cc:341:39:  [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).
    Cache_Entry* cache_entry = cache->open(virtualfile);
data/ffmpegfs-2.0/src/transcode.cc:353:27:  [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 (!cache_entry->open(begin_transcode))
data/ffmpegfs-2.0/src/transcode.cc:500:21:  [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(buff, &cache_entry->m_id3v1, ID3V1_TAG_LENGTH);
data/ffmpegfs-2.0/src/transcode.cc:685: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(buff, data.data() + offset, len);
data/ffmpegfs-2.0/src/transcode.cc:776:27:  [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 (!cache_entry->open())
data/ffmpegfs-2.0/src/transcode.cc:818: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(&cache_entry->m_id3v1, transcoder->id3v1tag(), sizeof(ID3v1));
data/ffmpegfs-2.0/src/transcode.cc:1033: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 line[1024];
data/ffmpegfs-2.0/src/vcd/vcdchapter.cc:82: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 buffer[sizeof(SYNC)];
data/ffmpegfs-2.0/src/vcd/vcdchapter.cc:144: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 buffer[PATH_MAX + 1];
data/ffmpegfs-2.0/src/vcd/vcdentries.cc:52:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char SYNC[12]              = { '\x00', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\xFF', '\x00' };
data/ffmpegfs-2.0/src/vcd/vcdentries.cc:103: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).
        fpi = fopen(fullname.c_str(), "rb");
data/ffmpegfs-2.0/src/vcd/vcdentries.cc:210: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).
                fpi = fopen(fullname.c_str(), "rb");
data/ffmpegfs-2.0/src/vcd/vcdinfo.cc:56: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    m_ID[8];
data/ffmpegfs-2.0/src/vcd/vcdinfo.cc:76: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    m_albumid[16];
data/ffmpegfs-2.0/src/vcd/vcdinfo.cc:94: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    m_palflags[98];
data/ffmpegfs-2.0/src/vcd/vcdinfo.cc:154:11:  [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).
    fpi = fopen(fullname.c_str(), "rb");
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:46: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(buffer, txt, static_cast<size_t>(size));
data/ffmpegfs-2.0/src/vcd/vcdutils.cc:90: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 buffer[PATH_MAX + 1];
data/ffmpegfs-2.0/src/vcd/vcdutils.h:75: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        m_ID[8];                    /**< @brief 8 Bytes: ID "ENTRYVCD" or "ENTRYSVD" */
data/ffmpegfs-2.0/src/vcd/vcdutils.h:110: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.
extern const char SYNC[12];                 /**< @brief Chapter synchronisation in S/VCD mpeg/dat files (12 byte: 0x00FFFFFFFFFFFFFFFFFFFF00) */
data/ffmpegfs-2.0/src/vcdio.cc:68:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
int VcdIO::open(LPVIRTUALFILE virtualfile)
data/ffmpegfs-2.0/src/vcdio.cc:95:13:  [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).
    m_fpi = fopen(src_filename.c_str(), "rb");
data/ffmpegfs-2.0/src/vcdio.h:75:25:  [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).
    virtual int         open(LPVIRTUALFILE virtualfile);
data/ffmpegfs-2.0/src/vcdparser.cc:62: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 title_buf[PATH_MAX + 1];
data/ffmpegfs-2.0/src/vcdparser.cc:82: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(&stbuf, statbuf, sizeof(struct stat));
data/ffmpegfs-2.0/test/fpcompare.c:357:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            max_length = atoi(argv[++i]);
data/ffmpegfs-2.0/test/fpcompare.c:403:63:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                chromaprint_set_option(chromaprint_ctx, name, atoi(value));
data/ffmpegfs-2.0/test/metadata.c:51:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char error[AV_ERROR_MAX_STRING_SIZE];
data/ffmpegfs-2.0/src/blurayio.cc:177:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t BlurayIO::read(void * data, size_t size)
data/ffmpegfs-2.0/src/blurayio.h:88:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t  read(void *data, size_t size);
data/ffmpegfs-2.0/src/buffer.cc:937:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t Buffer::read(void * /*data*/, size_t /*size*/)
data/ffmpegfs-2.0/src/buffer.h:165:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t          read(void *data, size_t size);
data/ffmpegfs-2.0/src/cache.cc:754:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                strncat(cache_info->m_desttype, text, sizeof(cache_info->m_desttype) - 1);
data/ffmpegfs-2.0/src/cache_entry.cc:50:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(m_cache_info.m_desttype, params.current_format(virtualfile)->desttype().c_str(), sizeof(m_cache_info.m_desttype) - 1);
data/ffmpegfs-2.0/src/diskio.cc:77:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t DiskIO::read(void * data, size_t size)
data/ffmpegfs-2.0/src/diskio.h:74:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t  read(void *data, size_t size);
data/ffmpegfs-2.0/src/dvdio.cc:211:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes_read = read(nullptr, ULONG_MAX)) != 0 && !eof())
data/ffmpegfs-2.0/src/dvdio.cc:554:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t DvdIO::read(void * data, size_t size)
data/ffmpegfs-2.0/src/dvdio.cc:775:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ((bytes_read = read(nullptr, abs_offset - total_read - cur_pos)) != 0 && total_read < abs_offset && !eof())
data/ffmpegfs-2.0/src/dvdio.h:100:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t  read(void *data, size_t size);
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:4488:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read = static_cast<int>(io->read(reinterpret_cast<char *>(data), static_cast<size_t>(size)));
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:4490:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read != size && io->error())
data/ffmpegfs-2.0/src/ffmpeg_transcoder.cc:4496:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read;
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:425:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p, str.c_str(), n);
data/ffmpegfs-2.0/src/ffmpeg_utils.cc:689:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(dir, "/");
data/ffmpegfs-2.0/src/fileio.h:252:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t      read(void *data, size_t size) = 0;
data/ffmpegfs-2.0/src/fuseops.cc:683:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(buf, transcoded.c_str(), size);
data/ffmpegfs-2.0/src/vcd/vcdchapter.cc:79:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int VcdChapter::read(FILE *fpi, int track_no)
data/ffmpegfs-2.0/src/vcd/vcdchapter.h:207:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int         read(FILE *fpi, int track_no);
data/ffmpegfs-2.0/src/vcd/vcdentries.cc:249:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int _errno = buffer.read(fpi, last_track_no);
data/ffmpegfs-2.0/src/vcd/vcdentries.cc:288:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            int _errno = buffer.read(fpi, last_track_no);
data/ffmpegfs-2.0/src/vcdio.cc:105:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t VcdIO::read(void * data, size_t size)
data/ffmpegfs-2.0/src/vcdio.h:84:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual size_t  read(void *data, size_t size);

ANALYSIS SUMMARY:

Hits = 139
Lines analyzed = 26143 in approximately 0.69 seconds (37880 lines/second)
Physical Source Lines of Code (SLOC) = 16331
Hits@level = [0] 123 [1]  25 [2]  99 [3]   3 [4]  10 [5]   2
Hits@level+ = [0+] 262 [1+] 139 [2+] 114 [3+]  15 [4+]  12 [5+]   2
Hits/KSLOC@level+ = [0+] 16.0431 [1+] 8.51142 [2+] 6.98059 [3+] 0.918499 [4+] 0.734799 [5+] 0.122466
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.