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/createrepo-c-0.16.2/src/checksum.c
Examining data/createrepo-c-0.16.2/src/checksum.h
Examining data/createrepo-c-0.16.2/src/cleanup.h
Examining data/createrepo-c-0.16.2/src/cmd_parser.c
Examining data/createrepo-c-0.16.2/src/cmd_parser.h
Examining data/createrepo-c-0.16.2/src/compression_wrapper.c
Examining data/createrepo-c-0.16.2/src/compression_wrapper.h
Examining data/createrepo-c-0.16.2/src/constants.h
Examining data/createrepo-c-0.16.2/src/createrepo_c.c
Examining data/createrepo-c-0.16.2/src/createrepo_c.h
Examining data/createrepo-c-0.16.2/src/createrepo_shared.c
Examining data/createrepo-c-0.16.2/src/createrepo_shared.h
Examining data/createrepo-c-0.16.2/src/deltarpms.c
Examining data/createrepo-c-0.16.2/src/dumper_thread.c
Examining data/createrepo-c-0.16.2/src/dumper_thread.h
Examining data/createrepo-c-0.16.2/src/error.c
Examining data/createrepo-c-0.16.2/src/error.h
Examining data/createrepo-c-0.16.2/src/helpers.c
Examining data/createrepo-c-0.16.2/src/helpers.h
Examining data/createrepo-c-0.16.2/src/koji.c
Examining data/createrepo-c-0.16.2/src/koji.h
Examining data/createrepo-c-0.16.2/src/load_metadata.c
Examining data/createrepo-c-0.16.2/src/load_metadata.h
Examining data/createrepo-c-0.16.2/src/locate_metadata.c
Examining data/createrepo-c-0.16.2/src/locate_metadata.h
Examining data/createrepo-c-0.16.2/src/mergerepo_c.c
Examining data/createrepo-c-0.16.2/src/mergerepo_c.h
Examining data/createrepo-c-0.16.2/src/metadata_internal.h
Examining data/createrepo-c-0.16.2/src/misc.c
Examining data/createrepo-c-0.16.2/src/misc.h
Examining data/createrepo-c-0.16.2/src/modifyrepo_c.c
Examining data/createrepo-c-0.16.2/src/modifyrepo_shared.c
Examining data/createrepo-c-0.16.2/src/modifyrepo_shared.h
Examining data/createrepo-c-0.16.2/src/package.c
Examining data/createrepo-c-0.16.2/src/package.h
Examining data/createrepo-c-0.16.2/src/parsehdr.c
Examining data/createrepo-c-0.16.2/src/parsehdr.h
Examining data/createrepo-c-0.16.2/src/parsepkg.c
Examining data/createrepo-c-0.16.2/src/parsepkg.h
Examining data/createrepo-c-0.16.2/src/python/checksum-py.c
Examining data/createrepo-c-0.16.2/src/python/checksum-py.h
Examining data/createrepo-c-0.16.2/src/python/compression_wrapper-py.c
Examining data/createrepo-c-0.16.2/src/python/compression_wrapper-py.h
Examining data/createrepo-c-0.16.2/src/python/contentstat-py.c
Examining data/createrepo-c-0.16.2/src/python/contentstat-py.h
Examining data/createrepo-c-0.16.2/src/python/createrepo_cmodule.c
Examining data/createrepo-c-0.16.2/src/python/exception-py.c
Examining data/createrepo-c-0.16.2/src/python/exception-py.h
Examining data/createrepo-c-0.16.2/src/python/load_metadata-py.c
Examining data/createrepo-c-0.16.2/src/python/load_metadata-py.h
Examining data/createrepo-c-0.16.2/src/python/locate_metadata-py.c
Examining data/createrepo-c-0.16.2/src/python/locate_metadata-py.h
Examining data/createrepo-c-0.16.2/src/python/misc-py.c
Examining data/createrepo-c-0.16.2/src/python/misc-py.h
Examining data/createrepo-c-0.16.2/src/python/package-py.c
Examining data/createrepo-c-0.16.2/src/python/package-py.h
Examining data/createrepo-c-0.16.2/src/python/parsepkg-py.c
Examining data/createrepo-c-0.16.2/src/python/parsepkg-py.h
Examining data/createrepo-c-0.16.2/src/python/repomd-py.c
Examining data/createrepo-c-0.16.2/src/python/repomd-py.h
Examining data/createrepo-c-0.16.2/src/python/repomdrecord-py.c
Examining data/createrepo-c-0.16.2/src/python/repomdrecord-py.h
Examining data/createrepo-c-0.16.2/src/python/sqlite-py.c
Examining data/createrepo-c-0.16.2/src/python/sqlite-py.h
Examining data/createrepo-c-0.16.2/src/python/typeconversion.c
Examining data/createrepo-c-0.16.2/src/python/typeconversion.h
Examining data/createrepo-c-0.16.2/src/python/updatecollection-py.c
Examining data/createrepo-c-0.16.2/src/python/updatecollection-py.h
Examining data/createrepo-c-0.16.2/src/python/updatecollectionmodule-py.c
Examining data/createrepo-c-0.16.2/src/python/updatecollectionmodule-py.h
Examining data/createrepo-c-0.16.2/src/python/updatecollectionpackage-py.c
Examining data/createrepo-c-0.16.2/src/python/updatecollectionpackage-py.h
Examining data/createrepo-c-0.16.2/src/python/updateinfo-py.c
Examining data/createrepo-c-0.16.2/src/python/updateinfo-py.h
Examining data/createrepo-c-0.16.2/src/python/updaterecord-py.c
Examining data/createrepo-c-0.16.2/src/python/updaterecord-py.h
Examining data/createrepo-c-0.16.2/src/python/updatereference-py.c
Examining data/createrepo-c-0.16.2/src/python/updatereference-py.h
Examining data/createrepo-c-0.16.2/src/python/xml_dump-py.c
Examining data/createrepo-c-0.16.2/src/python/xml_dump-py.h
Examining data/createrepo-c-0.16.2/src/python/xml_file-py.c
Examining data/createrepo-c-0.16.2/src/python/xml_file-py.h
Examining data/createrepo-c-0.16.2/src/python/xml_parser-py.c
Examining data/createrepo-c-0.16.2/src/python/xml_parser-py.h
Examining data/createrepo-c-0.16.2/src/repomd.c
Examining data/createrepo-c-0.16.2/src/repomd.h
Examining data/createrepo-c-0.16.2/src/repomd_internal.h
Examining data/createrepo-c-0.16.2/src/sqlite.c
Examining data/createrepo-c-0.16.2/src/sqlite.h
Examining data/createrepo-c-0.16.2/src/sqliterepo_c.c
Examining data/createrepo-c-0.16.2/src/threads.c
Examining data/createrepo-c-0.16.2/src/threads.h
Examining data/createrepo-c-0.16.2/src/updateinfo.c
Examining data/createrepo-c-0.16.2/src/updateinfo.h
Examining data/createrepo-c-0.16.2/src/xml_dump.c
Examining data/createrepo-c-0.16.2/src/xml_dump.h
Examining data/createrepo-c-0.16.2/src/xml_dump_deltapackage.c
Examining data/createrepo-c-0.16.2/src/xml_dump_filelists.c
Examining data/createrepo-c-0.16.2/src/xml_dump_internal.h
Examining data/createrepo-c-0.16.2/src/xml_dump_other.c
Examining data/createrepo-c-0.16.2/src/xml_dump_primary.c
Examining data/createrepo-c-0.16.2/src/xml_dump_repomd.c
Examining data/createrepo-c-0.16.2/src/xml_dump_updateinfo.c
Examining data/createrepo-c-0.16.2/src/xml_file.c
Examining data/createrepo-c-0.16.2/src/xml_file.h
Examining data/createrepo-c-0.16.2/src/xml_parser.c
Examining data/createrepo-c-0.16.2/src/xml_parser.h
Examining data/createrepo-c-0.16.2/src/xml_parser_filelists.c
Examining data/createrepo-c-0.16.2/src/xml_parser_internal.h
Examining data/createrepo-c-0.16.2/src/xml_parser_other.c
Examining data/createrepo-c-0.16.2/src/xml_parser_primary.c
Examining data/createrepo-c-0.16.2/src/xml_parser_repomd.c
Examining data/createrepo-c-0.16.2/src/xml_parser_updateinfo.c
Examining data/createrepo-c-0.16.2/tests/fixtures.h
Examining data/createrepo-c-0.16.2/tests/test_checksum.c
Examining data/createrepo-c-0.16.2/tests/test_compression_wrapper.c
Examining data/createrepo-c-0.16.2/tests/test_koji.c
Examining data/createrepo-c-0.16.2/tests/test_load_metadata.c
Examining data/createrepo-c-0.16.2/tests/test_locate_metadata.c
Examining data/createrepo-c-0.16.2/tests/test_misc.c
Examining data/createrepo-c-0.16.2/tests/test_modifyrepo_shared.c
Examining data/createrepo-c-0.16.2/tests/test_sqlite.c
Examining data/createrepo-c-0.16.2/tests/test_xml_dump.c
Examining data/createrepo-c-0.16.2/tests/test_xml_dump_primary.c
Examining data/createrepo-c-0.16.2/tests/test_xml_file.c
Examining data/createrepo-c-0.16.2/tests/test_xml_parser_filelists.c
Examining data/createrepo-c-0.16.2/tests/test_xml_parser_repomd.c
Examining data/createrepo-c-0.16.2/tests/test_xml_parser_updateinfo.c
Examining data/createrepo-c-0.16.2/debian/tests/pkg/foo-0.1.0/foo.c

FINAL RESULTS:

data/createrepo-c-0.16.2/src/misc.c:1305:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (f, format, args);
data/createrepo-c-0.16.2/src/xml_dump_updateinfo.c:84:5:  [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.
    snprintf(buf, 21, "%" G_GUINT64_FORMAT, module->version);
data/createrepo-c-0.16.2/src/createrepo_c.c:1044:35:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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 gchar *tmpdir = g_get_tmp_dir();
data/createrepo-c-0.16.2/src/locate_metadata.c:230:32:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
    tmp_dir = g_build_filename(g_get_tmp_dir(), TMPDIR_PATTERN, NULL);
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:438:37:  [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 (!cr_identical_files(realpath, lrealpath, &identical, err))
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:451:50:  [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.
        g_debug("%s: Removing \"%s\"", __func__, realpath);
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:453:20:  [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 (remove(realpath) == -1)
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:454:51:  [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.
            g_warning("Cannot remove \"%s\": %s", realpath, g_strerror(errno));
data/createrepo-c-0.16.2/src/sqliterepo_c.c:846:31:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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 gchar *tmpdir = g_get_tmp_dir();
data/createrepo-c-0.16.2/src/checksum.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 name_lower[MAX_CHECKSUM_NAME_LEN+1];
data/createrepo-c-0.16.2/src/checksum.c:118: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 buf[BUFFER_SIZE];
data/createrepo-c-0.16.2/src/checksum.c:119: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 raw_checksum[EVP_MAX_MD_SIZE];
data/createrepo-c-0.16.2/src/checksum.c:140: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(filename, "rb");
data/createrepo-c-0.16.2/src/checksum.c:176:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(checksum+(x*2), "%02x", raw_checksum[x]);
data/createrepo-c-0.16.2/src/checksum.c:252: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 raw_checksum[EVP_MAX_MD_SIZE];
data/createrepo-c-0.16.2/src/checksum.c:270:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(checksum+(x*2), "%02x", raw_checksum[x]);
data/createrepo-c-0.16.2/src/compression_wrapper.c:123: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[XZ_BUFFER_SIZE];
data/createrepo-c-0.16.2/src/compression_wrapper.c:393:35:  [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 = (void *) fopen(filename, mode_str);
data/createrepo-c-0.16.2/src/compression_wrapper.c:420: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).
            FILE *f = fopen(filename, mode_str);
data/createrepo-c-0.16.2/src/compression_wrapper.c:577: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).
            FILE *f = fopen(filename, mode_str);
data/createrepo-c-0.16.2/src/compression_wrapper.c:592: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).
            FILE *f = fopen(filename, mode_str);
data/createrepo-c-0.16.2/src/createrepo_c.c:686:27:  [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_pkg_list = fopen(cmd_options->read_pkgs_list, "w");
data/createrepo-c-0.16.2/src/createrepo_c.c:1976: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).
    FILE *frepomd = fopen(repomd_path, "w");
data/createrepo-c-0.16.2/src/dumper_thread.c:246: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).
        FILE *f = fopen(cachefn, "r");
data/createrepo-c-0.16.2/src/dumper_thread.c:248: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 buf[CACHEDCHKSUM_BUFFER_LEN];
data/createrepo-c-0.16.2/src/mergerepo_c.c:1627:25:  [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 *frepomd = fopen(repomd_path, "w");
data/createrepo-c-0.16.2/src/misc.c:262: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, "rb");
data/createrepo-c-0.16.2/src/misc.c:392: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 buf[BUFFER_SIZE];
data/createrepo-c-0.16.2/src/misc.c:408: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 ((orig = fopen(src, "rb")) == NULL) {
data/createrepo-c-0.16.2/src/misc.c:417: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).
    if ((new = fopen(dst, "wb")) == NULL) {
data/createrepo-c-0.16.2/src/misc.c:458: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 buf[BUFFER_SIZE];
data/createrepo-c-0.16.2/src/misc.c:593: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 buf[BUFFER_SIZE];
data/createrepo-c-0.16.2/src/misc.c:654: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).
    new = fopen(dst, "wb");
data/createrepo-c-0.16.2/src/misc.c:708: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 errorbuf[CURL_ERROR_SIZE];
data/createrepo-c-0.16.2/src/misc.c:724:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(dst, "wb");
data/createrepo-c-0.16.2/src/misc.c:998:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[80];
data/createrepo-c-0.16.2/src/misc.c:1296: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(filename, "w");
data/createrepo-c-0.16.2/src/misc.c:1427: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 datetime[80];
data/createrepo-c-0.16.2/src/parsehdr.c:194: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 tmp_epoch[MAX_STR_INT_LEN];
data/createrepo-c-0.16.2/src/python/updaterecord-py.c:298:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char err[55];
data/createrepo-c-0.16.2/src/repomd.c:159: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/createrepo-c-0.16.2/src/repomd.c:350: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 buf[BUFFER_SIZE];
data/createrepo-c-0.16.2/src/sqlite.c:959: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.
    while (key_len > 1 && ((char *) key)[key_len-1] == '/') {
data/createrepo-c-0.16.2/src/sqliterepo_c.c:584: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).
    if (!(f_repomd = fopen(repomd_path, "w"))) {
data/createrepo-c-0.16.2/src/xml_dump_deltapackage.c:80: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 size_str[SIZE_STR_MAX_LEN];
data/createrepo-c-0.16.2/src/xml_dump_deltapackage.c:137: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((void *) result+INDENT, buf->content, buf->use);
data/createrepo-c-0.16.2/src/xml_dump_other.c:66: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 date_str[DATE_STR_MAX_LEN];
data/createrepo-c-0.16.2/src/xml_dump_primary.c:231: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 date_str[DATE_STR_MAX_LEN];
data/createrepo-c-0.16.2/src/xml_dump_primary.c:251: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 size_str[SIZE_STR_MAX_LEN];
data/createrepo-c-0.16.2/src/xml_dump_updateinfo.c:260: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((void *) result+INDENT, buf->content, buf->use);
data/createrepo-c-0.16.2/src/xml_parser.c:171: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 buf[XML_BUFFER_SIZE];
data/createrepo-c-0.16.2/src/xml_parser_internal.h:178:28:  [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.
        if (!strcmp(name, (char *) *attr))
data/createrepo-c-0.16.2/src/xml_parser_internal.h:179: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.
            return (const char *) attr[1];
data/createrepo-c-0.16.2/tests/test_compression_wrapper.c:235: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[COMPRESSED_BUFFER_LEN+1];
data/createrepo-c-0.16.2/tests/test_compression_wrapper.c:513: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 buf[256];
data/createrepo-c-0.16.2/tests/test_koji.c:77: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).
    FILE *blocked = fopen(blocked_files_path, "w");
data/createrepo-c-0.16.2/tests/test_misc.c:614: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 buf[30];
data/createrepo-c-0.16.2/tests/test_misc.c:638: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 buf[30];
data/createrepo-c-0.16.2/tests/test_misc.c:661: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 buf[30];
data/createrepo-c-0.16.2/tests/test_misc.c:759: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(tmp_file_1, "w");
data/createrepo-c-0.16.2/tests/test_misc.c:763: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(tmp_file_2, "w");
data/createrepo-c-0.16.2/tests/test_misc.c:767: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(tmp_file_3, "w");
data/createrepo-c-0.16.2/tests/test_xml_parser_filelists.c:346:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[400];
data/createrepo-c-0.16.2/tests/test_xml_parser_filelists.c:359: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 buf[600];
data/createrepo-c-0.16.2/src/checksum.c:48:11:  [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(name);
data/createrepo-c-0.16.2/src/cmd_parser.c:488:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen(pkgs[x])) {
data/createrepo-c-0.16.2/src/compression_wrapper.c:1367:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(str);
data/createrepo-c-0.16.2/src/createrepo_c.c:71: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).
        int str_len = strlen(filename);
data/createrepo-c-0.16.2/src/createrepo_c.c:160:29:  [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).
        size_t in_dir_len = strlen(in_dir);
data/createrepo-c-0.16.2/src/createrepo_c.c:231:34:  [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 (in_dir_len < strlen(full_path))
data/createrepo-c-0.16.2/src/createrepo_c.c:281:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int x = strlen(relative_path);
data/createrepo-c-0.16.2/src/createrepo_c.c:1259: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).
    user_data.repodir_name_len  = strlen(in_dir);
data/createrepo-c-0.16.2/src/createrepo_c.c:1692:55:  [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).
                    elem_name = g_strndup(elem_name, (strlen(elem_name) - strlen(compression_suffix)));
data/createrepo-c-0.16.2/src/createrepo_c.c:1692:75:  [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).
                    elem_name = g_strndup(elem_name, (strlen(elem_name) - strlen(compression_suffix)));
data/createrepo-c-0.16.2/src/createrepo_c.c:1699:55:  [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).
                    elem_type = g_strndup(elem_type, (strlen(elem_type) - strlen(type_compression_suffix)));
data/createrepo-c-0.16.2/src/createrepo_c.c:1699:75:  [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).
                    elem_type = g_strndup(elem_type, (strlen(elem_type) - strlen(type_compression_suffix)));
data/createrepo-c-0.16.2/src/deltarpms.c:855:53:  [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).
    user_data.prefix_len        = prefix_to_strip ? strlen(prefix_to_strip) : 0;
data/createrepo-c-0.16.2/src/dumper_thread.c:234: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).
            cr_checksum_update(ctx, pkg->hdrid, strlen(pkg->hdrid), NULL);
data/createrepo-c-0.16.2/src/dumper_thread.c:280:29:  [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).
        write(fd, checksum, strlen(checksum));
data/createrepo-c-0.16.2/src/dumper_thread.c:305:24:  [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).
    size_t lb_length = strlen(location_base);
data/createrepo-c-0.16.2/src/koji.c:148:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(names[x]))
data/createrepo-c-0.16.2/src/mergerepo_c.c:697:25:  [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 (repopath && strlen(repopath) > 1)
data/createrepo-c-0.16.2/src/mergerepo_c.c:698:22:  [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).
            repopath[strlen(repopath)-1] = '\0';
data/createrepo-c-0.16.2/src/mergerepo_c.c:705:45:  [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).
            gchar *repo_suffix = repopath + strlen(repo_prefix_search);
data/createrepo-c-0.16.2/src/mergerepo_c.c:1161:17:  [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).
                strlen(prev_srpm) != strlen(pkg->rpm_sourcerpm) ||
data/createrepo-c-0.16.2/src/mergerepo_c.c:1161: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).
                strlen(prev_srpm) != strlen(pkg->rpm_sourcerpm) ||
data/createrepo-c-0.16.2/src/mergerepo_c.c:1162:56:  [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).
                strncmp(pkg->rpm_sourcerpm, prev_srpm, strlen(prev_srpm)) != 0)) {
data/createrepo-c-0.16.2/src/mergerepo_c.c:1863: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).
        if (noarch_repopath && strlen(noarch_repopath) > 1) {
data/createrepo-c-0.16.2/src/mergerepo_c.c:1864:29:  [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).
            noarch_repopath[strlen(noarch_repopath)-1] = '\0';
data/createrepo-c-0.16.2/src/misc.c:94:22:  [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 (!string || !(strlen(string))) {
data/createrepo-c-0.16.2/src/misc.c:148:30:  [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).
        size_t release_len = strlen(ptr2+1);
data/createrepo-c-0.16.2/src/misc.c:494:61:  [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).
            _cleanup_free_ gchar *tmp_file = g_strndup(dst, strlen(dst) - strlen(cr_compression_suffix(old_type)));
data/createrepo-c-0.16.2/src/misc.c:494:75:  [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).
            _cleanup_free_ gchar *tmp_file = g_strndup(dst, strlen(dst) - strlen(cr_compression_suffix(old_type)));
data/createrepo-c-0.16.2/src/misc.c:524:44:  [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).
                dict_base = g_strndup(dst, strlen(dst)-4);
data/createrepo-c-0.16.2/src/misc.c:627:44:  [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).
            filename = g_strndup(filename, strlen(filename) - strlen(c_suffix));
data/createrepo-c-0.16.2/src/misc.c:627:63:  [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).
            filename = g_strndup(filename, strlen(filename) - strlen(c_suffix));
data/createrepo-c-0.16.2/src/misc.c:635: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).
                                strlen(src) - strlen(cr_get_filename(src)));
data/createrepo-c-0.16.2/src/misc.c:635:47:  [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).
                                strlen(src) - strlen(cr_get_filename(src)));
data/createrepo-c-0.16.2/src/misc.c:848:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int i = strlen(path);
data/createrepo-c-0.16.2/src/misc.c:1055:11:  [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/createrepo-c-0.16.2/src/misc.c:1125:11:  [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(nvr);
data/createrepo-c-0.16.2/src/misc.c:1210:11:  [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/createrepo-c-0.16.2/src/misc.c:1578:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar *dict_file = malloc(strlen(file) + 7);
data/createrepo-c-0.16.2/src/misc.c:1581:25:  [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).
    snprintf(dict_file, strlen(file) + 7, "%s.zdict", file);
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:61: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).
                int name_len = strlen(name);
data/createrepo-c-0.16.2/src/modifyrepo_shared.c:62:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int suffix_len = strlen(src_suffix);
data/createrepo-c-0.16.2/src/package.c:151:27:  [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 (package->epoch && strlen(package->epoch))
data/createrepo-c-0.16.2/src/parsehdr.c:575: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).
                len = strlen(changelog->author);
data/createrepo-c-0.16.2/src/repomd.c:217:34:  [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 (!(md->location_real) || !strlen(md->location_real)) {
data/createrepo-c-0.16.2/src/repomd.c:365: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 (!(record->location_real) || !strlen(record->location_real)) {
data/createrepo-c-0.16.2/src/repomd.c:424: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).
            dict_base = g_strndup(cpath, strlen(cpath)-4);
data/createrepo-c-0.16.2/src/repomd.c:589: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).
    x = strlen(*location_real);
data/createrepo-c-0.16.2/src/repomd.c:612:11:  [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(location_filename);
data/createrepo-c-0.16.2/src/repomd.c:685:34:  [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 (!(md->location_real) || !strlen(md->location_real)) {
data/createrepo-c-0.16.2/src/sqlite.c:81: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).
        size_t llen = strlen((const char *) orig_content);
data/createrepo-c-0.16.2/src/sqlite.c:958:15:  [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).
    key_len = strlen((const char *) key);
data/createrepo-c-0.16.2/src/xml_dump.c:105:22:  [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).
        size_t len = strlen((const char *) orig_content);
data/createrepo-c-0.16.2/src/xml_dump.c:131:22:  [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).
        size_t len = strlen((const char *) orig_content);
data/createrepo-c-0.16.2/src/xml_parser.c:248:46:  [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 char *end_of_string = xml_string + strlen(xml_string);
data/createrepo-c-0.16.2/src/xml_parser.c:263:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            block_size = strlen(data);
data/createrepo-c-0.16.2/src/xml_parser_filelists.c:262:36:  [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).
        pd->content[pd->lcontent - strlen(pkg_file->name)] = '\0';
data/createrepo-c-0.16.2/src/xml_parser_primary.c:636:36:  [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).
        pd->content[pd->lcontent - strlen(pkg_file->name)] = '\0';
data/createrepo-c-0.16.2/tests/test_xml_parser_filelists.c:43:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    buffer[read] = 0;

ANALYSIS SUMMARY:

Hits = 123
Lines analyzed = 40919 in approximately 1.04 seconds (39315 lines/second)
Physical Source Lines of Code (SLOC) = 28467
Hits@level = [0]  22 [1]  59 [2]  55 [3]   7 [4]   2 [5]   0
Hits@level+ = [0+] 145 [1+] 123 [2+]  64 [3+]   9 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 5.09362 [1+] 4.32079 [2+] 2.24822 [3+] 0.316156 [4+] 0.0702568 [5+]   0
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.