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/libsolv-0.7.16/examples/solv/checksig.c
Examining data/libsolv-0.7.16/examples/solv/checksig.h
Examining data/libsolv-0.7.16/examples/solv/deltarpm.c
Examining data/libsolv-0.7.16/examples/solv/deltarpm.h
Examining data/libsolv-0.7.16/examples/solv/fastestmirror.c
Examining data/libsolv-0.7.16/examples/solv/fastestmirror.h
Examining data/libsolv-0.7.16/examples/solv/fileconflicts.c
Examining data/libsolv-0.7.16/examples/solv/fileconflicts.h
Examining data/libsolv-0.7.16/examples/solv/fileprovides.c
Examining data/libsolv-0.7.16/examples/solv/fileprovides.h
Examining data/libsolv-0.7.16/examples/solv/mirror.c
Examining data/libsolv-0.7.16/examples/solv/mirror.h
Examining data/libsolv-0.7.16/examples/solv/patchjobs.c
Examining data/libsolv-0.7.16/examples/solv/patchjobs.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_cache.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_cache.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_urpmi.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_urpmi.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_download.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_download.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_system_debian.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_system_debian.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_system_rpm.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_system_rpm.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_mdk.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_mdk.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_rpmmd.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_rpmmd.h
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.c
Examining data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.h
Examining data/libsolv-0.7.16/examples/solv/solv.c
Examining data/libsolv-0.7.16/ext/pool_fileconflicts.c
Examining data/libsolv-0.7.16/ext/pool_fileconflicts.h
Examining data/libsolv-0.7.16/ext/pool_parserpmrichdep.c
Examining data/libsolv-0.7.16/ext/pool_parserpmrichdep.h
Examining data/libsolv-0.7.16/ext/repo_appdata.c
Examining data/libsolv-0.7.16/ext/repo_appdata.h
Examining data/libsolv-0.7.16/ext/repo_arch.c
Examining data/libsolv-0.7.16/ext/repo_arch.h
Examining data/libsolv-0.7.16/ext/repo_autopattern.c
Examining data/libsolv-0.7.16/ext/repo_autopattern.h
Examining data/libsolv-0.7.16/ext/repo_comps.c
Examining data/libsolv-0.7.16/ext/repo_comps.h
Examining data/libsolv-0.7.16/ext/repo_conda.c
Examining data/libsolv-0.7.16/ext/repo_conda.h
Examining data/libsolv-0.7.16/ext/repo_content.c
Examining data/libsolv-0.7.16/ext/repo_content.h
Examining data/libsolv-0.7.16/ext/repo_cudf.c
Examining data/libsolv-0.7.16/ext/repo_cudf.h
Examining data/libsolv-0.7.16/ext/repo_deb.c
Examining data/libsolv-0.7.16/ext/repo_deb.h
Examining data/libsolv-0.7.16/ext/repo_deltainfoxml.c
Examining data/libsolv-0.7.16/ext/repo_deltainfoxml.h
Examining data/libsolv-0.7.16/ext/repo_haiku.cpp
Examining data/libsolv-0.7.16/ext/repo_haiku.h
Examining data/libsolv-0.7.16/ext/repo_helix.c
Examining data/libsolv-0.7.16/ext/repo_helix.h
Examining data/libsolv-0.7.16/ext/repo_mdk.c
Examining data/libsolv-0.7.16/ext/repo_mdk.h
Examining data/libsolv-0.7.16/ext/repo_products.c
Examining data/libsolv-0.7.16/ext/repo_products.h
Examining data/libsolv-0.7.16/ext/repo_pubkey.c
Examining data/libsolv-0.7.16/ext/repo_pubkey.h
Examining data/libsolv-0.7.16/ext/repo_releasefile_products.c
Examining data/libsolv-0.7.16/ext/repo_releasefile_products.h
Examining data/libsolv-0.7.16/ext/repo_repomdxml.c
Examining data/libsolv-0.7.16/ext/repo_repomdxml.h
Examining data/libsolv-0.7.16/ext/repo_rpmmd.c
Examining data/libsolv-0.7.16/ext/repo_rpmmd.h
Examining data/libsolv-0.7.16/ext/repo_susetags.c
Examining data/libsolv-0.7.16/ext/repo_susetags.h
Examining data/libsolv-0.7.16/ext/repo_testcase.c
Examining data/libsolv-0.7.16/ext/repo_updateinfoxml.c
Examining data/libsolv-0.7.16/ext/repo_updateinfoxml.h
Examining data/libsolv-0.7.16/ext/repo_zyppdb.c
Examining data/libsolv-0.7.16/ext/repo_zyppdb.h
Examining data/libsolv-0.7.16/ext/repodata_diskusage.c
Examining data/libsolv-0.7.16/ext/repodata_diskusage.h
Examining data/libsolv-0.7.16/ext/solv_ed25519.h
Examining data/libsolv-0.7.16/ext/solv_jsonparser.c
Examining data/libsolv-0.7.16/ext/solv_jsonparser.h
Examining data/libsolv-0.7.16/ext/solv_pgpvrfy.c
Examining data/libsolv-0.7.16/ext/solv_pgpvrfy.h
Examining data/libsolv-0.7.16/ext/solv_xfopen.c
Examining data/libsolv-0.7.16/ext/solv_xfopen.h
Examining data/libsolv-0.7.16/ext/solv_xmlparser.c
Examining data/libsolv-0.7.16/ext/solv_xmlparser.h
Examining data/libsolv-0.7.16/ext/solv_zchunk.c
Examining data/libsolv-0.7.16/ext/solv_zchunk.h
Examining data/libsolv-0.7.16/ext/testcase.c
Examining data/libsolv-0.7.16/ext/testcase.h
Examining data/libsolv-0.7.16/ext/tools_util.h
Examining data/libsolv-0.7.16/ext/repo_rpmdb.c
Examining data/libsolv-0.7.16/ext/repo_rpmdb.h
Examining data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h
Examining data/libsolv-0.7.16/ext/repo_rpmdb_librpm.h
Examining data/libsolv-0.7.16/src/bitmap.c
Examining data/libsolv-0.7.16/src/bitmap.h
Examining data/libsolv-0.7.16/src/chksum.c
Examining data/libsolv-0.7.16/src/chksum.h
Examining data/libsolv-0.7.16/src/cleandeps.c
Examining data/libsolv-0.7.16/src/conda.c
Examining data/libsolv-0.7.16/src/conda.h
Examining data/libsolv-0.7.16/src/cplxdeps.c
Examining data/libsolv-0.7.16/src/cplxdeps.h
Examining data/libsolv-0.7.16/src/dataiterator.h
Examining data/libsolv-0.7.16/src/dirpool.c
Examining data/libsolv-0.7.16/src/dirpool.h
Examining data/libsolv-0.7.16/src/diskusage.c
Examining data/libsolv-0.7.16/src/evr.c
Examining data/libsolv-0.7.16/src/evr.h
Examining data/libsolv-0.7.16/src/filelistfilter.c
Examining data/libsolv-0.7.16/src/fileprovides.c
Examining data/libsolv-0.7.16/src/hash.h
Examining data/libsolv-0.7.16/src/knownid.h
Examining data/libsolv-0.7.16/src/linkedpkg.c
Examining data/libsolv-0.7.16/src/linkedpkg.h
Examining data/libsolv-0.7.16/src/md5.c
Examining data/libsolv-0.7.16/src/md5.h
Examining data/libsolv-0.7.16/src/order.c
Examining data/libsolv-0.7.16/src/policy.c
Examining data/libsolv-0.7.16/src/policy.h
Examining data/libsolv-0.7.16/src/pool.c
Examining data/libsolv-0.7.16/src/pool.h
Examining data/libsolv-0.7.16/src/poolarch.c
Examining data/libsolv-0.7.16/src/poolarch.h
Examining data/libsolv-0.7.16/src/poolid.c
Examining data/libsolv-0.7.16/src/poolid.h
Examining data/libsolv-0.7.16/src/poolid_private.h
Examining data/libsolv-0.7.16/src/pooltypes.h
Examining data/libsolv-0.7.16/src/poolvendor.c
Examining data/libsolv-0.7.16/src/poolvendor.h
Examining data/libsolv-0.7.16/src/problems.c
Examining data/libsolv-0.7.16/src/problems.h
Examining data/libsolv-0.7.16/src/qsort_r.c
Examining data/libsolv-0.7.16/src/queue.c
Examining data/libsolv-0.7.16/src/queue.h
Examining data/libsolv-0.7.16/src/repo.c
Examining data/libsolv-0.7.16/src/repo.h
Examining data/libsolv-0.7.16/src/repo_solv.c
Examining data/libsolv-0.7.16/src/repo_solv.h
Examining data/libsolv-0.7.16/src/repo_write.c
Examining data/libsolv-0.7.16/src/repo_write.h
Examining data/libsolv-0.7.16/src/repodata.c
Examining data/libsolv-0.7.16/src/repodata.h
Examining data/libsolv-0.7.16/src/repopack.h
Examining data/libsolv-0.7.16/src/repopage.c
Examining data/libsolv-0.7.16/src/repopage.h
Examining data/libsolv-0.7.16/src/rules.h
Examining data/libsolv-0.7.16/src/selection.c
Examining data/libsolv-0.7.16/src/selection.h
Examining data/libsolv-0.7.16/src/sha1.c
Examining data/libsolv-0.7.16/src/sha1.h
Examining data/libsolv-0.7.16/src/sha2.c
Examining data/libsolv-0.7.16/src/sha2.h
Examining data/libsolv-0.7.16/src/solvable.c
Examining data/libsolv-0.7.16/src/solvable.h
Examining data/libsolv-0.7.16/src/solver.c
Examining data/libsolv-0.7.16/src/solver_private.h
Examining data/libsolv-0.7.16/src/solver_util.c
Examining data/libsolv-0.7.16/src/solverdebug.c
Examining data/libsolv-0.7.16/src/solverdebug.h
Examining data/libsolv-0.7.16/src/solvversion.c
Examining data/libsolv-0.7.16/src/strpool.c
Examining data/libsolv-0.7.16/src/strpool.h
Examining data/libsolv-0.7.16/src/suse.c
Examining data/libsolv-0.7.16/src/transaction.c
Examining data/libsolv-0.7.16/src/transaction.h
Examining data/libsolv-0.7.16/src/userinstalled.c
Examining data/libsolv-0.7.16/src/util.c
Examining data/libsolv-0.7.16/src/util.h
Examining data/libsolv-0.7.16/src/rules.c
Examining data/libsolv-0.7.16/src/solver.h
Examining data/libsolv-0.7.16/tools/appdata2solv.c
Examining data/libsolv-0.7.16/tools/archpkgs2solv.c
Examining data/libsolv-0.7.16/tools/archrepo2solv.c
Examining data/libsolv-0.7.16/tools/common_write.c
Examining data/libsolv-0.7.16/tools/common_write.h
Examining data/libsolv-0.7.16/tools/comps2solv.c
Examining data/libsolv-0.7.16/tools/conda2solv.c
Examining data/libsolv-0.7.16/tools/cudftest.c
Examining data/libsolv-0.7.16/tools/deb2solv.c
Examining data/libsolv-0.7.16/tools/deltainfoxml2solv.c
Examining data/libsolv-0.7.16/tools/dumpsolv.c
Examining data/libsolv-0.7.16/tools/findfileconflicts.c
Examining data/libsolv-0.7.16/tools/helix2solv.c
Examining data/libsolv-0.7.16/tools/installcheck.c
Examining data/libsolv-0.7.16/tools/mdk2solv.c
Examining data/libsolv-0.7.16/tools/mergesolv.c
Examining data/libsolv-0.7.16/tools/repo2solv.c
Examining data/libsolv-0.7.16/tools/repomdxml2solv.c
Examining data/libsolv-0.7.16/tools/rpmmd2solv.c
Examining data/libsolv-0.7.16/tools/rpms2solv.c
Examining data/libsolv-0.7.16/tools/susetags2solv.c
Examining data/libsolv-0.7.16/tools/testsolv.c
Examining data/libsolv-0.7.16/tools/updateinfoxml2solv.c
Examining data/libsolv-0.7.16/tools/rpmdb2solv.c
Examining data/libsolv-0.7.16/win32/config.h
Examining data/libsolv-0.7.16/win32/fmemopen.c
Examining data/libsolv-0.7.16/win32/fnmatch.c
Examining data/libsolv-0.7.16/win32/fnmatch.h
Examining data/libsolv-0.7.16/win32/getopt.c
Examining data/libsolv-0.7.16/win32/getopt.h
Examining data/libsolv-0.7.16/win32/regcomp.c
Examining data/libsolv-0.7.16/win32/regerror.c
Examining data/libsolv-0.7.16/win32/regex.h
Examining data/libsolv-0.7.16/win32/regexec.c
Examining data/libsolv-0.7.16/win32/strfncs.c
Examining data/libsolv-0.7.16/win32/strfncs.h
Examining data/libsolv-0.7.16/win32/tre-mem.c
Examining data/libsolv-0.7.16/win32/tre.h
Examining data/libsolv-0.7.16/win32/unistd.h

FINAL RESULTS:

data/libsolv-0.7.16/ext/pool_fileconflicts.c:494:8:  [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.
  ll = readlink(cbdata->canonspace, cbdata->canonspace + lo, stb.st_size);
data/libsolv-0.7.16/examples/solv/checksig.c:81:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(cmd))
data/libsolv-0.7.16/examples/solv/checksig.c:93: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.
  pubring = access(cmd, R_OK) == 0 ? "pubring.kbx" : "pubring.gpg";
data/libsolv-0.7.16/examples/solv/checksig.c:97:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  r = system(cmd);
data/libsolv-0.7.16/examples/solv/checksig.c:117:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  r = system(cmd);
data/libsolv-0.7.16/examples/solv/deltarpm.c:60:17:  [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 (op && access("/usr/bin/applydeltarpm", X_OK) == 0)
data/libsolv-0.7.16/examples/solv/deltarpm.c:79:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmd, "/usr/bin/applydeltarpm -a '%s' -c -s '", archstr);
data/libsolv-0.7.16/examples/solv/deltarpm.c:83:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	  if (system(pool_tmpjoin(pool, cmd, seq, "'")) != 0)
data/libsolv-0.7.16/examples/solv/deltarpm.c:105:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(cmd, "applydeltarpm -a '%s' /dev/fd/%d /dev/fd/%d", archstr, fileno(fp), newfd);
data/libsolv-0.7.16/examples/solv/deltarpm.c:110:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	  if (system(cmd))
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:218:7:  [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(cachedir, W_OK | X_OK) != 0 && mkdir(cachedir, 0755) == 0)
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:135:7:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execlp("curl", "curl", "-f", "-s", "-L", url, (char *)0);
data/libsolv-0.7.16/examples/solv/repoinfo_system_debian.c:43:2:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execlp("dpkg", "dpkg", "--install", "--root", rootdir, "--force", "all", name, (char *)0);
data/libsolv-0.7.16/examples/solv/repoinfo_system_debian.c:45:2:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execlp("dpkg", "dpkg", "--remove", "--root", rootdir, "--force", "all", name, (char *)0);
data/libsolv-0.7.16/examples/solv/repoinfo_system_rpm.c:60:2:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execlp("rpm", "rpm", arg, "--nodeps", "--nodigest", "--nosignature", "--root", rootdir, name, (char *)0);
data/libsolv-0.7.16/examples/solv/repoinfo_system_rpm.c:62:2:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execlp("rpm", "rpm", arg, "--force", "--nodeps", "--nodigest", "--nosignature", "--root", rootdir, name, (char *)0);
data/libsolv-0.7.16/examples/solv/solv.c:492:8:  [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(argv[i], R_OK))
data/libsolv-0.7.16/ext/pool_fileconflicts.c:461:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(cbdata->canonspace, cbdata->rootdir);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:463:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(cbdata->canonspace + cbdata->rootdirl, (char *)cbdata->filesspace + dirnameid);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:475:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy((char *)cbdata->filesspace + diroff, cbdata->canonspace + cbdata->rootdirl);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:679:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy((char *)cbdata->filesspace + off + 34, fn);
data/libsolv-0.7.16/ext/repo_autopattern.c:450:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(type, pn + 12);
data/libsolv-0.7.16/ext/repo_content.c:99:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s1);
data/libsolv-0.7.16/ext/repo_content.c:104:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s2);
data/libsolv-0.7.16/ext/repo_content.c:109:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s3);
data/libsolv-0.7.16/ext/repo_deb.c:363:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(checksum, q);
data/libsolv-0.7.16/ext/repo_deb.c:389:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(checksum, q);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:146:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, e);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:152:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, v);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:158:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, r);
data/libsolv-0.7.16/ext/repo_helix.c:199:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, e);
data/libsolv-0.7.16/ext/repo_helix.c:205:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, v);
data/libsolv-0.7.16/ext/repo_helix.c:211:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, r);
data/libsolv-0.7.16/ext/repo_helix.c:320:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(space, "%s:%s", k, n);
data/libsolv-0.7.16/ext/repo_helix.c:368:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(xmlp->content, pd->kind);
data/libsolv-0.7.16/ext/repo_pubkey.c:208:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p, "%s\nVersion: %s\n\n", startstr, version);
data/libsolv-0.7.16/ext/repo_pubkey.c:231:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p, "\n%s\n", endstr);
data/libsolv-0.7.16/ext/repo_pubkey.c:549:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(evr, keyidstr + 8);
data/libsolv-0.7.16/ext/repo_rpmdb.c:507:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(evr, "%s:%s-%s", epochbuf, version, release);
data/libsolv-0.7.16/ext/repo_rpmdb.c:512:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(evr, "%s-%s", version, release);
data/libsolv-0.7.16/ext/repo_rpmdb.c:520:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(evr + l, distepoch);
data/libsolv-0.7.16/ext/repo_rpmdb.c:754:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(bp + 1, str);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2338:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(space, dn[diidx]);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2342:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(space + l1, bn[i]);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2415:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(r, "%s-%s.%s", name, evr ? evr : "", arch);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:67:15:  [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.
      int r = access(path, mode);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h: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.
  return access(dir, mode);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:208:7:  [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(dbpath, W_OK) == -1)
data/libsolv-0.7.16/ext/repo_rpmdb_librpm.h:40:15:  [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.
      int r = access(path, mode);
data/libsolv-0.7.16/ext/repo_rpmdb_librpm.h:44:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(dir, mode);
data/libsolv-0.7.16/ext/repo_rpmmd.c:320:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, e);
data/libsolv-0.7.16/ext/repo_rpmmd.c:326:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, v);
data/libsolv-0.7.16/ext/repo_rpmmd.c:332:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, r);
data/libsolv-0.7.16/ext/repo_rpmmd.c:393:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(space, "%s:%s", k, n);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:180:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, e);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:186:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, v);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:192:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(c, r);
data/libsolv-0.7.16/ext/testcase.c:289:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(rp, q->str[i]);
data/libsolv-0.7.16/ext/testcase.c:373:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(str, "%s-%s", n, e);
data/libsolv-0.7.16/ext/testcase.c:1825:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(buf, repo->name);
data/libsolv-0.7.16/ext/tools_util.h:77:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s1);
data/libsolv-0.7.16/ext/tools_util.h:82:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s2);
data/libsolv-0.7.16/ext/tools_util.h:87:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, s3);
data/libsolv-0.7.16/src/filelistfilter.c:129:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(filterdata + nfilterdata, g);
data/libsolv-0.7.16/src/filelistfilter.c:134:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(filterdata + nfilterdata, g + 1);
data/libsolv-0.7.16/src/filelistfilter.c:139:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(filterdata + nfilterdata, g);
data/libsolv-0.7.16/src/policy.c:1191:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(kn + (devel - sn), devel + 6);
data/libsolv-0.7.16/src/policy.c:1224:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		      strcpy(kn + 6 + (release + 1 - sn), release);
data/libsolv-0.7.16/src/pool.c:1569:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(format, args);
data/libsolv-0.7.16/src/pool.c:1571:9:  [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(stderr, format, args);
data/libsolv-0.7.16/src/pool.c:1575:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(buf, sizeof(buf), format, args);
data/libsolv-0.7.16/src/pool.c:1600:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    l = vsnprintf(pool->errstr, pool->errstra, format, args);
data/libsolv-0.7.16/src/pool.c:1607:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      l = vsnprintf(pool->errstr, pool->errstra, format, args);
data/libsolv-0.7.16/src/pool.c:1716:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p, "%s:%s", n, lang);
data/libsolv-0.7.16/src/pool.c:1786:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str1);
data/libsolv-0.7.16/src/pool.c:1791:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str2);
data/libsolv-0.7.16/src/pool.c:1796:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str3);
data/libsolv-0.7.16/src/pool.c:1821:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(s, str1);
data/libsolv-0.7.16/src/pool.c:1826:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str2);
data/libsolv-0.7.16/src/pool.c:1831:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str3);
data/libsolv-0.7.16/src/pool.h:253:93:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern void pool_debug(Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4)));
data/libsolv-0.7.16/src/pool.h:271:92:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int  pool_error(Pool *pool, int ret, const char *format, ...) __attribute__((format(printf, 3, 4)));
data/libsolv-0.7.16/src/poolid.c:274:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(p, pool_id2rel(pool, id));
data/libsolv-0.7.16/src/poolid.c:303:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, pool_id2rel(pool, id));
data/libsolv-0.7.16/src/poolid.c:308:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(p, pool->ss.stringspace + pool->ss.strings[id]);
data/libsolv-0.7.16/src/repodata.c:381:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p, suf);
data/libsolv-0.7.16/src/selection.c:1118:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(evrx + lastepochlen + 1, evr);
data/libsolv-0.7.16/src/solvable.c:49:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(p, n);
data/libsolv-0.7.16/src/solvable.c:59:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(p + nl + el + 1, a);
data/libsolv-0.7.16/src/solvable.c:373:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc, "%s/%s-%s.%s.rpm", mediadir, name, evr, arch);
data/libsolv-0.7.16/src/solvable.c:375:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc, "%s-%s.%s.rpm", name, evr, arch);
data/libsolv-0.7.16/src/solvable.c:384:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc, "%s/%s", mediadir, mediafile);
data/libsolv-0.7.16/src/solvable.c:386:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(loc, mediafile);
data/libsolv-0.7.16/src/solver.c:4778:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(b, "providing %s", s);
data/libsolv-0.7.16/src/solverdebug.c:445:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		  strcpy(line + linel, n);
data/libsolv-0.7.16/src/strpool.c:34:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(ss->stringspace + ss->sstrings, strs[count]);
data/libsolv-0.7.16/src/suse.c:41:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(buf + 2, dep);
data/libsolv-0.7.16/src/suse.c:85:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(buf, dep);
data/libsolv-0.7.16/src/suse.c:112:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(buf, dep);
data/libsolv-0.7.16/src/suse.c:135:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(buf, dep);
data/libsolv-0.7.16/src/suse.c:174:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(buf, dep + 11);
data/libsolv-0.7.16/src/suse.c:229:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(buf, dep + 15);
data/libsolv-0.7.16/src/util.c:215:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str1);
data/libsolv-0.7.16/src/util.c:220:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str2);
data/libsolv-0.7.16/src/util.c:225:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(s, str3);
data/libsolv-0.7.16/tools/repo2solv.c:172:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl("/usr/bin/find", "/usr/bin/find", ".", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0);
data/libsolv-0.7.16/tools/repo2solv.c:174:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl("/usr/bin/find", "/usr/bin/find", ".", "-maxdepth", "1", "-name", ".", "-o", "-name", ".*", "-prune", "-o", "-name", "*.delta.rpm", "-o", "-name", "*.patch.rpm", "-o", "-name", "*.rpm", "-a", "-type", "f", "-print0", (char *)0);
data/libsolv-0.7.16/tools/susetags2solv.c:169:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(fnp, "%s/%s", descrdir, fn);
data/libsolv-0.7.16/tools/susetags2solv.c:186:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(fnp, "%s/%s", descrdir, fn);
data/libsolv-0.7.16/tools/susetags2solv.c:203:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(fnp, "%s/%s", descrdir, fn);
data/libsolv-0.7.16/tools/susetags2solv.c:226:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(fnp, "%s/%s", descrdir, fn);
data/libsolv-0.7.16/tools/susetags2solv.c:235:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(lang, p + 1);
data/libsolv-0.7.16/tools/susetags2solv.c:236:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	      sprintf(fnp, "%s/%s", descrdir, fn);
data/libsolv-0.7.16/tools/testsolv.c:267:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			        printf(p, resultflags2str[i].str);
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:25:14:  [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.
  userhome = getenv("HOME");
data/libsolv-0.7.16/ext/repo_rpmdb.c:1237:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *home_env = getenv("HOME");
data/libsolv-0.7.16/tools/appdata2solv.c:37:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "hd:r:")) >= 0)
data/libsolv-0.7.16/tools/archpkgs2solv.c:62:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "0:m:i")) >= 0)
data/libsolv-0.7.16/tools/archrepo2solv.c:50:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "hl:")) >= 0)
data/libsolv-0.7.16/tools/conda2solv.c:48:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "h")) >= 0)
data/libsolv-0.7.16/tools/deb2solv.c:63:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "0:m:r")) >= 0)
data/libsolv-0.7.16/tools/deltainfoxml2solv.c:38:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "h")) >= 0)
data/libsolv-0.7.16/tools/dumpsolv.c:400:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "haj")) >= 0)
data/libsolv-0.7.16/tools/mdk2solv.c:51:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "hi:f:")) >= 0)
data/libsolv-0.7.16/tools/mergesolv.c:73:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "ahX")) >= 0)
data/libsolv-0.7.16/tools/repo2solv.c:792:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "hAXRFCo:")) >= 0)
data/libsolv-0.7.16/tools/repomdxml2solv.c:95:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt (argc, argv, "hq:")) >= 0)
data/libsolv-0.7.16/tools/rpmdb2solv.c:88:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "ACPhnHkxXr:p:o:")) >= 0)
data/libsolv-0.7.16/tools/rpmmd2solv.c:48:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt (argc, argv, "hX")) >= 0)
data/libsolv-0.7.16/tools/rpms2solv.c:75:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "0XkKm:F")) >= 0)
data/libsolv-0.7.16/tools/susetags2solv.c:74:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "hc:d:q:M:X")) >= 0)
data/libsolv-0.7.16/tools/testsolv.c:101:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "vmrhL:l:s:T:")) >= 0)
data/libsolv-0.7.16/tools/updateinfoxml2solv.c:38:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((c = getopt(argc, argv, "h")) >= 0)
data/libsolv-0.7.16/win32/fmemopen.c:10:8:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  char tempnam[MAX_PATH + 1];
data/libsolv-0.7.16/win32/fmemopen.c:20:8:  [3] (tmpfile) GetTempFileName:
  Temporary file race condition in certain cases (e.g., if run as SYSTEM in
  many versions of Windows) (CWE-377).
  if (!GetTempFileName(temppath, "solvtmp", 0, tempnam))
data/libsolv-0.7.16/win32/fmemopen.c:20:48:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  if (!GetTempFileName(temppath, "solvtmp", 0, tempnam))
data/libsolv-0.7.16/win32/fmemopen.c:22:19:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
  fh = CreateFile(tempnam, DELETE | GENERIC_READ | GENERIC_WRITE, 0,
data/libsolv-0.7.16/win32/getopt.c:24:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char * const argv[], const char *optstring)
data/libsolv-0.7.16/win32/getopt.h:10:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int, char * const [], const char *);
data/libsolv-0.7.16/win32/getopt.h:22:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int, char *const *, const char *, const struct option *, int *);
data/libsolv-0.7.16/examples/solv/checksig.c:19:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[256];
data/libsolv-0.7.16/examples/solv/checksig.c:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[256];
data/libsolv-0.7.16/examples/solv/checksig.c:56: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).
  if (!(kfp = fopen(keysfile, "w")) )
data/libsolv-0.7.16/examples/solv/checksig.c:111:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmd[256];
data/libsolv-0.7.16/examples/solv/deltarpm.c:16:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmpl[100];
data/libsolv-0.7.16/examples/solv/deltarpm.c:19:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(tmpl, "/var/tmp/solvXXXXXX");
data/libsolv-0.7.16/examples/solv/deltarpm.c:20:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  fd = mkstemp(tmpl);
data/libsolv-0.7.16/examples/solv/deltarpm.c:67:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char cmd[128];
data/libsolv-0.7.16/examples/solv/deltarpm.c:81:4:  [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(cmd, "/usr/bin/applydeltarpm -c -s '");
data/libsolv-0.7.16/examples/solv/deltarpm.c:107:4:  [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(cmd, "applydeltarpm /dev/fd/%d /dev/fd/%d", fileno(fp), newfd);
data/libsolv-0.7.16/examples/solv/fastestmirror.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char portstr[16];
data/libsolv-0.7.16/examples/solv/fastestmirror.c:53:11:  [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).
	  port = atoi(p2 + 1);
data/libsolv-0.7.16/examples/solv/fastestmirror.c:60:7:  [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(portstr, "%d", port);
data/libsolv-0.7.16/examples/solv/mirror.c:15:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *bp, *ep;
data/libsolv-0.7.16/examples/solv/mirror.c:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *bp, *ep;
data/libsolv-0.7.16/examples/solv/repoinfo.h:21:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char cookie[32];
data/libsolv-0.7.16/examples/solv/repoinfo.h:23:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char extcookie[32];
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:91:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char mycookie[32];
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:92:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char myextcookie[32];
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:107:14:  [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 (!(fp = fopen(calc_cachepath(repo, repoext, forcesystemloc), "r")))
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:152:7:  [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(cinfo->cookie, mycookie, sizeof(mycookie));
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:154:7:  [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(cinfo->extcookie, myextcookie, sizeof(myextcookie));
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:178:8:  [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).
  fp = fopen(tmpl, "r");
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:222:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  fd = mkstemp(tmpl);
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:20:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:21:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf2[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:29:8:  [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).
  fp = fopen("/etc/apt/sources.list", "r");
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:51: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).
	  if (!(fp = fopen(buf, "r")))
data/libsolv-0.7.16/examples/solv/repoinfo_config_urpmi.c:21:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *bp, *arg;
data/libsolv-0.7.16/examples/solv/repoinfo_config_urpmi.c:28: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).
  if ((fp = fopen(URPMI_CFG, "r")) == 0)
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:106:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:107:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf2[4096], *kp, *vp, *kpe;
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:130: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 ((fp = fopen(buf, "r")) == 0)
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:221:24:  [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).
	    cinfo->priority = atoi(vp);
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:24:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmpl[100];
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:27:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(tmpl, "/var/tmp/solvXXXXXX");
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:28:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  fd = mkstemp(tmpl);
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:41:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:74:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char url[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:83: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.
	  unsigned char mlchksum[32];
data/libsolv-0.7.16/examples/solv/repoinfo_system_rpm.c:115: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).
  ofp = fopen(calc_cachepath(repo, 0, 0), "r");
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:21:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:105: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.
	  unsigned char curchksum[32];
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:117:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(chksum, curchksum, curl);
data/libsolv-0.7.16/examples/solv/repoinfo_type_mdk.c:127:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char probe[5];
data/libsolv-0.7.16/examples/solv/repoinfo_type_mdk.c:128:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char md5[16];
data/libsolv-0.7.16/examples/solv/repoinfo_type_rpmmd.c:79:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ext[3];
data/libsolv-0.7.16/examples/solv/repoinfo_type_rpmmd.c:91:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(ext, "FL");
data/libsolv-0.7.16/examples/solv/repoinfo_type_rpmmd.c:93:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(ext, "DL");
data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ext[3];
data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.c:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ext[3];
data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.c:231:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char pbuf[256];
data/libsolv-0.7.16/examples/solv/solv.c:73:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char inbuf[128], *ip;
data/libsolv-0.7.16/examples/solv/solv.c:149: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).
      int rnum = atoi(name);
data/libsolv-0.7.16/examples/solv/solv.c:490:35:  [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 (!is_cmdline_package((const char *)argv[i]))
data/libsolv-0.7.16/examples/solv/solv.c:501:52:  [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.
	  p = add_cmdline_package(commandlinerepo, (const char *)argv[i]);
data/libsolv-0.7.16/examples/solv/solv.c:736:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char inbuf[128], *ip;
data/libsolv-0.7.16/examples/solv/solv.c:749:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  take = atoi(ip);
data/libsolv-0.7.16/examples/solv/solv.c:837:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char inbuf[128], *ip;
data/libsolv-0.7.16/examples/solv/solv.c:856:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      int take = atoi(ip);
data/libsolv-0.7.16/examples/solv/solv.c:918:30:  [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 (!(newpkgsfps[i] = fopen(loc, "r")))
data/libsolv-0.7.16/ext/pool_fileconflicts.c:356:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char statdata[16 + sizeof(stb.st_dev) + sizeof(stb.st_ino)];
data/libsolv-0.7.16/ext/pool_fileconflicts.c:367:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(statdata + 8, &stb.st_dev, sizeof(stb.st_dev));
data/libsolv-0.7.16/ext/pool_fileconflicts.c:368:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(statdata, &stb.st_ino, sizeof(stb.st_ino));
data/libsolv-0.7.16/ext/pool_fileconflicts.c:390:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cbdata->filesspace + nspaceoff, statdata, 16);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:557: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(cbdata->filesspace + nspaceoff, dir, dirl);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:633:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char md5padded[34];
data/libsolv-0.7.16/ext/pool_fileconflicts.c:678:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(cbdata->filesspace + off, (unsigned char *)md5padded, 34);
data/libsolv-0.7.16/ext/repo_appdata.c:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/libsolv-0.7.16/ext/repo_appdata.c:211:14:  [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 (!(fp = fopen(filepath, "r")))
data/libsolv-0.7.16/ext/repo_appdata.c:277:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(r + l - 8, ".appdata.xml");
data/libsolv-0.7.16/ext/repo_appdata.c:279:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(r + l - 4, ".metainfo.xml");
data/libsolv-0.7.16/ext/repo_appdata.c:281:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(r + l - 4, ".metainfo.xml");
data/libsolv-0.7.16/ext/repo_appdata.c:283:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(r + l - 4, ".metainfo.xml");
data/libsolv-0.7.16/ext/repo_appdata.c:285:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(r + l - 3, ".metainfo.xml");
data/libsolv-0.7.16/ext/repo_appdata.c:551: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).
	  fp = fopen(n, "r");
data/libsolv-0.7.16/ext/repo_arch.c:62:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char blk[512];
data/libsolv-0.7.16/ext/repo_arch.c:248:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char path[157];
data/libsolv-0.7.16/ext/repo_arch.c:249:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(path, th->blk, 156);
data/libsolv-0.7.16/ext/repo_arch.c:254:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char prefix[156];
data/libsolv-0.7.16/ext/repo_arch.c:255:8:  [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(prefix, th->blk + 345, 155);
data/libsolv-0.7.16/ext/repo_arch.c:336:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[4096];
data/libsolv-0.7.16/ext/repo_arch.c:344: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).
  if ((fd = open(flags & REPO_USE_ROOTDIR ? pool_prepend_rootdir_tmp(pool, fn) : fn, O_RDONLY, 0)) < 0)
data/libsolv-0.7.16/ext/repo_arch.c:462: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.
	  unsigned char pkgid[16];
data/libsolv-0.7.16/ext/repo_arch.c:565:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[4096];
data/libsolv-0.7.16/ext/repo_arch.c:831:14:  [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 ((fp = fopen(file, "r")) != 0)
data/libsolv-0.7.16/ext/repo_arch.c:840:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	      if ((fp = fopen(file, "r")) != 0)
data/libsolv-0.7.16/ext/repo_autopattern.c:72:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(date);
data/libsolv-0.7.16/ext/repo_autopattern.c:276:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char lang[9];
data/libsolv-0.7.16/ext/repo_autopattern.c:449:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char type[34];
data/libsolv-0.7.16/ext/repo_content.c:276:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      contentstyle = atoi(value);
data/libsolv-0.7.16/ext/repo_cudf.c:123:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(repo->idarraydata + off, from, (cc + 1) * sizeof(Id));
data/libsolv-0.7.16/ext/repo_deb.c:273:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char checksum[32 * 2 + 1];
data/libsolv-0.7.16/ext/repo_deb.c:537: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).
  if ((fp = fopen(path, "r")) == 0)
data/libsolv-0.7.16/ext/repo_deb.c:553:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[4096], *bp;
data/libsolv-0.7.16/ext/repo_deb.c:557:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char pkgid[16];
data/libsolv-0.7.16/ext/repo_deb.c:565: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).
  if ((fp = fopen(flags & REPO_USE_ROOTDIR ? pool_prepend_rootdir_tmp(pool, deb) : deb, "r")) == 0)
data/libsolv-0.7.16/ext/repo_deb.c:583:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  vlen = atoi((char *)buf + 8 + 48);
data/libsolv-0.7.16/ext/repo_deb.c:613:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  clen = atoi((char *)buf + 8 + 60 + vlen + 48);
data/libsolv-0.7.16/ext/repo_deb.c:626: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(ctgz, bp, l);
data/libsolv-0.7.16/ext/repo_deb.c:789:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    autoinstalled = atoi(bp);
data/libsolv-0.7.16/ext/repo_helix.c:579: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 newdep[100];
data/libsolv-0.7.16/ext/repo_helix.c:613: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 newdep[100];
data/libsolv-0.7.16/ext/repo_helix.c:634:11:  [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).
      t = atoi(content);
data/libsolv-0.7.16/ext/repo_helix.c:660:7:  [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(pd->evrspace + pd->levrspace, xmlp->content, xmlp->lcontent + 1);
data/libsolv-0.7.16/ext/repo_products.c:134:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(date);
data/libsolv-0.7.16/ext/repo_products.c:160:51:  [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).
        pd->productscheme = (scheme && *scheme) ? atoi(scheme) : -1;
data/libsolv-0.7.16/ext/repo_products.c:332: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).
	  fp = fopen(fullpath, "r");
data/libsolv-0.7.16/ext/repo_pubkey.c:201:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char bintoasc[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/libsolv-0.7.16/ext/repo_pubkey.c:239:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char issuer[8];
data/libsolv-0.7.16/ext/repo_pubkey.c:274:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char b[6];
data/libsolv-0.7.16/ext/repo_pubkey.c:324:7:  [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(sig->sigdata + 2, cs, csl);
data/libsolv-0.7.16/ext/repo_pubkey.c:325:7:  [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(sig->sigdata + 2 + csl, p + sig->mpioff, ml);
data/libsolv-0.7.16/ext/repo_pubkey.c:377:7:  [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(sig->issuer, p + 7, 8);
data/libsolv-0.7.16/ext/repo_pubkey.c:424: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(sig->issuer, q + 1, 8);
data/libsolv-0.7.16/ext/repo_pubkey.c:509:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char keyid[8];
data/libsolv-0.7.16/ext/repo_pubkey.c:510:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char subkeyofstr[17];
data/libsolv-0.7.16/ext/repo_pubkey.c:537:8:  [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(useridstr, userid, useridl);
data/libsolv-0.7.16/ext/repo_pubkey.c:544:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char keyidstr[17];
data/libsolv-0.7.16/ext/repo_pubkey.c:545:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char evr[8 + 1 + 8 + 1];
data/libsolv-0.7.16/ext/repo_pubkey.c:550:8:  [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(evr + 8, "-%08x", (flags & USE_RPM_PUBKEY_BUILTTIME) ? rpmsigcr : maxsigcr);
data/libsolv-0.7.16/ext/repo_pubkey.c:602: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 fp[16];
data/libsolv-0.7.16/ext/repo_pubkey.c:603: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 fpx[32 + 1];
data/libsolv-0.7.16/ext/repo_pubkey.c:609: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(keyid, p + 10 + ql - 8, 8);	/* keyid is last 64 bits of public modulus */
data/libsolv-0.7.16/ext/repo_pubkey.c:630: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.
	      unsigned char hdr[3];
data/libsolv-0.7.16/ext/repo_pubkey.c:631: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.
	      unsigned char fp[20];
data/libsolv-0.7.16/ext/repo_pubkey.c:632:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char fpx[40 + 1];
data/libsolv-0.7.16/ext/repo_pubkey.c:645:8:  [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(keyid, fp + 12, 8);	/* keyid is last 64 bits of fingerprint */
data/libsolv-0.7.16/ext/repo_pubkey.c:690:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char issuerstr[17];
data/libsolv-0.7.16/ext/repo_pubkey.c:708:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(userid, p, l);
data/libsolv-0.7.16/ext/repo_pubkey.c:855: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).
  if ((fp = fopen(flags & REPO_USE_ROOTDIR ? pool_prepend_rootdir_tmp(pool, keyfile) : keyfile, "r")) == 0)
data/libsolv-0.7.16/ext/repo_pubkey.c:937:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(nbuf + bufl, ubuf, ubufl);
data/libsolv-0.7.16/ext/repo_pubkey.c:970:7:  [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(pbuf + pbufl, p, pl);
data/libsolv-0.7.16/ext/repo_pubkey.h:29:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char keyid[17];
data/libsolv-0.7.16/ext/repo_releasefile_products.c:43:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUFF_SIZE];
data/libsolv-0.7.16/ext/repo_releasefile_products.c:152:14:  [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 ((fp = fopen(fullpath, "r")) == 0)
data/libsolv-0.7.16/ext/repo_repomdxml.c:281:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int timestamp = atoi(content);
data/libsolv-0.7.16/ext/repo_repomdxml.c:290:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int expire = atoi(content);
data/libsolv-0.7.16/ext/repo_rpmdb.c:172:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1];
data/libsolv-0.7.16/ext/repo_rpmdb.c:189:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char *d, taga[4];
data/libsolv-0.7.16/ext/repo_rpmdb.c:504:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char epochbuf[11];        /* 32bit decimal will fit in */
data/libsolv-0.7.16/ext/repo_rpmdb.c:505:7:  [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(epochbuf, "%u", epoch);
data/libsolv-0.7.16/ext/repo_rpmdb.c:745:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256], *bp;
data/libsolv-0.7.16/ext/repo_rpmdb.c:1358:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rpmhead->data, data + 8, len);
data/libsolv-0.7.16/ext/repo_rpmdb.c:1373:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, lead + 8, 8);
data/libsolv-0.7.16/ext/repo_rpmdb.c:1459:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ida, from, (cc + 1) * sizeof(Id));
data/libsolv-0.7.16/ext/repo_rpmdb.c:1627:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cookie + 16, &st->st_ino, sizeof(st->st_ino));
data/libsolv-0.7.16/ext/repo_rpmdb.c:1628:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(cookie + 24, &st->st_dev, sizeof(st->st_dev));
data/libsolv-0.7.16/ext/repo_rpmdb.c:1652:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char newcookie[32];
data/libsolv-0.7.16/ext/repo_rpmdb.c:1943:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char lead[4096];
data/libsolv-0.7.16/ext/repo_rpmdb.c:1947:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char pkgid[16];
data/libsolv-0.7.16/ext/repo_rpmdb.c:1948:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char leadsigid[16];
data/libsolv-0.7.16/ext/repo_rpmdb.c:1949:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hdrid[32];
data/libsolv-0.7.16/ext/repo_rpmdb.c:1963: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).
  if ((fp = fopen(flags & REPO_USE_ROOTDIR ? pool_prepend_rootdir_tmp(pool, rpm) : rpm, "r")) == 0)
data/libsolv-0.7.16/ext/repo_rpmdb.c:2044:8:  [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(pkgid, chksum, 16);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2220:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(hash, "%08x%08x%08x%08x", r, l, 0, 0);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2241:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char md5[33];
data/libsolv-0.7.16/ext/repo_rpmdb.c:2367:8:  [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(md5, "%08x%08x%08x%08x", (fm[i] >> 12) & 65535, 0, 0, 0);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2512:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char lead[4096];
data/libsolv-0.7.16/ext/repo_rpmdb.c:2602:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(rpmhead->data, uh + 8, len);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:172:8:  [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(lpath, (O_RDWR|O_CREAT), 0644);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:216: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).
      r = dbenv->open(dbenv, dbpath, DB_CREATE|DB_PRIVATE|DB_INIT_MPOOL, 0);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:223: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).
      r = dbenv->open(dbenv, dbpath, eflags, 0644);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:229: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).
	  r = dbenv->open(dbenv, dbpath, eflags, 0644);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:234: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).
      r = dbenv->open(dbenv, dbpath, DB_CREATE|DB_PRIVATE|DB_INIT_MPOOL, 0);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:298: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).
  if (state->db->open(state->db, 0, "Packages", 0, DB_UNKNOWN, DB_RDONLY, 0664))
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:350:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (db->open(db, 0, index, 0, DB_UNKNOWN, DB_RDONLY, 0664))
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:385:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(namedata + namedatal, dbkey.data, dbkey.size);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:418:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[4];
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:460:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (db->open(db, 0, "Name", 0, DB_UNKNOWN, DB_RDONLY, 0664))
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:525:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096];
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:530: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).
  if ((fd = open(dbpath, O_RDONLY)) < 0)
data/libsolv-0.7.16/ext/repo_rpmdb_librpm.h:196:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
         memcpy(namedata + namedatal, key, keylen);
data/libsolv-0.7.16/ext/repo_rpmmd.c:553:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(d + 1, key, keyl);
data/libsolv-0.7.16/ext/repo_rpmmd.c:554:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(d + 1 + keyl, &id, sizeof(Id));
data/libsolv-0.7.16/ext/repo_rpmmd.c:585:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(&id, d + keyl, sizeof(Id));
data/libsolv-0.7.16/ext/repo_rpmmd.c:673: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.
	  unsigned char chk[256];
data/libsolv-0.7.16/ext/repo_rpmmd.c:812:13:  [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).
		medianr = atoi(base + l);
data/libsolv-0.7.16/ext/repo_rpmmd.c:829:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (str && (t = atoi(str)) != 0)
data/libsolv-0.7.16/ext/repo_rpmmd.c:843:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (str && (end = atoi(str)) != 0)
data/libsolv-0.7.16/ext/repo_rpmmd.c:882:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(space + 1, str, l - 1);
data/libsolv-0.7.16/ext/repo_rpmmd.c:970:11:  [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 chk[256];
data/libsolv-0.7.16/ext/repo_rpmmd.c:1005: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(pd->lastdirstr + 1, content, l);
data/libsolv-0.7.16/ext/repo_rpmmd.c:1011:8:  [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(pd->lastdirstr, content, l);
data/libsolv-0.7.16/ext/repo_susetags.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *sp[4];
data/libsolv-0.7.16/ext/repo_susetags.c:150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *sp[5];
data/libsolv-0.7.16/ext/repo_susetags.c:188:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *sp[3];
data/libsolv-0.7.16/ext/repo_susetags.c:456:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *sp[6];
data/libsolv-0.7.16/ext/repo_susetags.c:524:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line_lang[6];
data/libsolv-0.7.16/ext/repo_susetags.c:793:44:  [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).
		repodata_set_deltalocation(data, handle, atoi(sp[0]), i == 3 ? sp[2] : 0, sp[1]);
data/libsolv-0.7.16/ext/repo_susetags.c:829:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pd.filelist + pd.nfilelist, line + 6, l);
data/libsolv-0.7.16/ext/repo_susetags.c:912:44:  [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).
	      repodata_set_location(data, handle, atoi(sp[0]), i == 3 ? sp[2] : pool_id2str(pool, s->arch), sp[1]);
data/libsolv-0.7.16/ext/repo_susetags.c:927:25:  [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).
	      unsigned int t = atoi(line + 6);
data/libsolv-0.7.16/ext/repo_susetags.c:957:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      k = atoi(line + 6);
data/libsolv-0.7.16/ext/repo_susetags.c:1054: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).
		unsigned int end = (unsigned int)atoi(sp[1]);
data/libsolv-0.7.16/ext/repo_testcase.c:60:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(s2p, "namespace\\3a");
data/libsolv-0.7.16/ext/repo_testcase.c:77:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(s2p - 4, "\\3aany");
data/libsolv-0.7.16/ext/repo_testcase.c:166:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[64];
data/libsolv-0.7.16/ext/repo_testcase.c:167:7:  [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(buf, " <%u> ", rd->flags);
data/libsolv-0.7.16/ext/repo_testcase.c:246:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[128], *bp, *bp2;
data/libsolv-0.7.16/ext/repo_testcase.c:532:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *sp[5];
data/libsolv-0.7.16/ext/repo_testcase.c:591: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).
	  tagsversion = atoi(line + 6);
data/libsolv-0.7.16/ext/repo_testcase.c:628:8:  [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).
	  t = atoi(line + 6);
data/libsolv-0.7.16/ext/repo_testcase.c:650: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(filelist + nfilelist, line + 6, l);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:133:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(date);
data/libsolv-0.7.16/ext/repo_zyppdb.c:135:68:  [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).
      repodata_set_num(pd->data, pd->handle, SOLVABLE_INSTALLTIME, atol(content));
data/libsolv-0.7.16/ext/repo_zyppdb.c:175:14:  [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 ((fp = fopen(fullpath, "r")) == 0)
data/libsolv-0.7.16/ext/solv_ed25519.h:355:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char bebuf[64];	/* bufl must be <= 64 */
data/libsolv-0.7.16/ext/solv_ed25519.h:366:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char hbuf[64], rbuf[32];
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:42:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(target, source, len * MP_T_BYTES);
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:512:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c + clen - hashl, sig + 2, hashl);
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:513:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c + clen - hashl - *oid, oid + 1, *oid);
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:570:11:  [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 sigdata[64];
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:590:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(sigdata + 32 - rlen, r, rlen);
data/libsolv-0.7.16/ext/solv_pgpvrfy.c:592:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(sigdata + 64 - slen, s, rlen);
data/libsolv-0.7.16/ext/solv_xfopen.c:144:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1 << 15];
data/libsolv-0.7.16/ext/solv_xfopen.c:182:10:  [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).
    fp = fopen(path, encoding ? "w" : "r");
data/libsolv-0.7.16/ext/solv_xfopen.c:344:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[1 << 15];
data/libsolv-0.7.16/ext/solv_xfopen.c:368:10:  [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).
    fp = fopen(path, encoding ? "w" : "r");
data/libsolv-0.7.16/ext/solv_xfopen.c:554:14:  [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(path, O_RDONLY);
data/libsolv-0.7.16/ext/solv_xfopen.c:556:14:  [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(path, O_WRONLY | O_CREAT, 0666);
data/libsolv-0.7.16/ext/solv_xfopen.c:593:10:  [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).
    fp = fopen(path, mode);
data/libsolv-0.7.16/ext/solv_xfopen.c:678:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen(fn, mode);
data/libsolv-0.7.16/ext/solv_xfopen.c:810:7:  [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, *bc->bufp, n);
data/libsolv-0.7.16/ext/solv_xfopen.c:824:7:  [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(*bc->bufp, buf, n);
data/libsolv-0.7.16/ext/solv_xmlparser.c:52:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xmlp->content + xmlp->lcontent, s, len);
data/libsolv-0.7.16/ext/solv_xmlparser.c:294:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[8192];
data/libsolv-0.7.16/ext/solv_zchunk.c:121:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[4096];
data/libsolv-0.7.16/ext/solv_zchunk.c:403:7:  [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 + n, zck->buf + zck->buf_used, bite);
data/libsolv-0.7.16/ext/testcase.c:308:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(q->str[q->nstr], s, p - s);
data/libsolv-0.7.16/ext/testcase.c:354:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[20];
data/libsolv-0.7.16/ext/testcase.c:355:7:  [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(buf, "#%d", repoid);
data/libsolv-0.7.16/ext/testcase.c:365:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *str, buf[20];
data/libsolv-0.7.16/ext/testcase.c:398:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "@#%d", s->repo->repoid);
data/libsolv-0.7.16/ext/testcase.c:620:11:  [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[20];
data/libsolv-0.7.16/ext/testcase.c:621:4:  [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(buf, "#%d", repo->repoid);
data/libsolv-0.7.16/ext/testcase.c:1213:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cntbuf[20];
data/libsolv-0.7.16/ext/testcase.c:1224:7:  [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(cntbuf, "genid %2d: genid ", cnt++);
data/libsolv-0.7.16/ext/testcase.c:1229:7:  [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(cntbuf, "genid %2d: genid ", cnt++);
data/libsolv-0.7.16/ext/testcase.c:1406:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char num[20];
data/libsolv-0.7.16/ext/testcase.c:1409:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(num, " 0 ");
data/libsolv-0.7.16/ext/testcase.c:1612:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char priobuf[50];
data/libsolv-0.7.16/ext/testcase.c:1614:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(priobuf, "%d.%d", repo->priority, repo->subpriority);
data/libsolv-0.7.16/ext/testcase.c:1616:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(priobuf, "%d", repo->priority);
data/libsolv-0.7.16/ext/testcase.c:1760: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).
	  if (!(fp = fopen(out, "w")))
data/libsolv-0.7.16/ext/testcase.c:1789:14:  [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 (!(fp = fopen(out, "w")))
data/libsolv-0.7.16/ext/testcase.c:1823: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(buf, "#%d", repoid);
data/libsolv-0.7.16/ext/testcase.c:1833:11:  [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(mp, "_%d", mangle++);
data/libsolv-0.7.16/ext/testcase.c:1999:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!fp && !(fp = fopen(testcase, "r")))
data/libsolv-0.7.16/ext/testcase.c:2077:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      prio = atoi(pieces[2]);
data/libsolv-0.7.16/ext/testcase.c:2286: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 *rfp = fopen(rdata, "r");
data/libsolv-0.7.16/src/bitmap.c:43:7:  [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(target->map, source->map, source->size);
data/libsolv-0.7.16/src/chksum.c:29:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char result[64];
data/libsolv-0.7.16/src/chksum.c:111:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(chk->result, buf, l);
data/libsolv-0.7.16/src/chksum.c:260: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(cp, res, l);
data/libsolv-0.7.16/src/conda.c:180:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char zero[2] = {'0', 0};
data/libsolv-0.7.16/src/conda.c:239:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, version, versionlen);
data/libsolv-0.7.16/src/conda.c:673:7:  [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(p, build, buildend - build);
data/libsolv-0.7.16/src/md5.c:203:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&ctx->buffer[used], data, size);
data/libsolv-0.7.16/src/md5.c:207:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&ctx->buffer[used], data, free);
data/libsolv-0.7.16/src/md5.c:218:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ctx->buffer, data, size);
data/libsolv-0.7.16/src/md5.h:15:11:  [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[64];
data/libsolv-0.7.16/src/order.c:137:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(od->edgedata + od->nedgedata, od->edgedata + te->edges, sizeof(Id) * (i - te->edges));
data/libsolv-0.7.16/src/policy.c:1188:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char kn[256];
data/libsolv-0.7.16/src/policy.c:1190:8:  [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(kn, sn, devel - sn);
data/libsolv-0.7.16/src/policy.c:1219: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 kn[256];
data/libsolv-0.7.16/src/policy.c:1221: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(kn, "kernel", 7);
data/libsolv-0.7.16/src/policy.c:1222: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(kn + 6, flavor, release - flavor + 1);
data/libsolv-0.7.16/src/policy.c:1223: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(kn + 6 + (release - flavor) + 1, sn, flavor - sn);
data/libsolv-0.7.16/src/pool.c:564: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(pool->whatprovidesaux, pool->whatprovides, num * sizeof(Id));
data/libsolv-0.7.16/src/pool.c:652:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pool->whatprovidesdata + pool->whatprovidesdataoff, ids, count * sizeof(Id));
data/libsolv-0.7.16/src/pool.c:1558:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/libsolv-0.7.16/src/pool.c:1611:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(pool->errstr, "unknown error");
data/libsolv-0.7.16/src/pool.c:1705:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256], *p;
data/libsolv-0.7.16/src/pool.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf[POOL_TMPSPACEBUF];
data/libsolv-0.7.16/src/queue.c:51: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(target->alloc, source->elements, source->count * sizeof(Id));
data/libsolv-0.7.16/src/queue.c:94:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(q->alloc, q->elements, q->count * sizeof(Id));
data/libsolv-0.7.16/src/queue.c:182: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(q->elements + pos, elements, n * sizeof(Id));
data/libsolv-0.7.16/src/repo.c:650:7:  [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(repo->idarraydata + olddeps, idstart, count - num);
data/libsolv-0.7.16/src/repo_solv.c:368:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data->incoredata + data->incoredatalen, buf, len);
data/libsolv-0.7.16/src/repo_solv.c:590:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(spool->stringspace, "<NULL>");
data/libsolv-0.7.16/src/repo_solv.c:637:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(dest, old_str, same);
data/libsolv-0.7.16/src/repo_solv.c:638:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(dest + same, pp, len);
data/libsolv-0.7.16/src/repo_write.c:390:7:  [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(sids, lids, 64 * sizeof(Id));
data/libsolv-0.7.16/src/repo_write.c:475:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xd->buf + xd->len, blob, len);
data/libsolv-0.7.16/src/repo_write.c:921:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char cpage[REPOPAGE_BLOBSIZE];
data/libsolv-0.7.16/src/repo_write.c:990:7:  [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(vpage + lpage, dp, ll);
data/libsolv-0.7.16/src/repo_write.c:2021:16:  [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 vpage[REPOPAGE_BLOBSIZE];
data/libsolv-0.7.16/src/repodata.c:229:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data->schemadata + data->schemadatalen, schema, len * sizeof(Id));
data/libsolv-0.7.16/src/repodata.c:266:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[(DIRCACHE_SIZE * (DIRCACHE_SIZE - 1)) / 2];
data/libsolv-0.7.16/src/repodata.c:332:8:  [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->dircache->str + l * (l - 1) / 2, dirs, l);
data/libsolv-0.7.16/src/repodata.c:391:7:  [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(p, comps, l);
data/libsolv-0.7.16/src/repodata.c:904:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char wrongtype[2] = { 0x00 /* dir id 0 */, 0 /* "" */ };
data/libsolv-0.7.16/src/repodata.c:2053:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(di->parents, from->parents, sizeof(from->parents));
data/libsolv-0.7.16/src/repodata.c:2256: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(di->dupstr, di->kv.str, l);
data/libsolv-0.7.16/src/repodata.c:2527:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data->attrdata + data->attrdatalen, str, l);
data/libsolv-0.7.16/src/repodata.c:2558: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(dp, buf, len);
data/libsolv-0.7.16/src/repodata.c:2619:7:  [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->attriddata + data->attriddatalen, data->attriddata + pp[1], oldsize * sizeof(Id));
data/libsolv-0.7.16/src/repodata.c:2642:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data->attrdata + data->attrdatalen, str, l);
data/libsolv-0.7.16/src/repodata.c:2651:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[64];
data/libsolv-0.7.16/src/repodata.c:2932:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(data->attrdata + data->attrdatalen, str, l);
data/libsolv-0.7.16/src/repodata.c:3186:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(xd->buf + xd->len, blob, len);
data/libsolv-0.7.16/src/repodata.h:82:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char keybits[32];	/* keyname hash */
data/libsolv-0.7.16/src/repopage.c:257: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 + oo, in + litofs, easy_sz);
data/libsolv-0.7.16/src/repopage.c:279: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 + oo, in + litofs, 32);
data/libsolv-0.7.16/src/repopage.c:380:8:  [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 + oo, in + litofs, easy_sz);
data/libsolv-0.7.16/src/repopage.c:402:8:  [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 + oo, in + litofs, 32);
data/libsolv-0.7.16/src/repopage.c:587:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[REPOPAGE_BLOBSIZE];
data/libsolv-0.7.16/src/repopage.c:680:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(dest, store->blob_store + pnum_mapped_at, REPOPAGE_BLOBSIZE);
data/libsolv-0.7.16/src/repopage.c:700:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy(dest, store->blob_store + pnum_mapped_at, REPOPAGE_BLOBSIZE);
data/libsolv-0.7.16/src/repopage.c:789:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[REPOPAGE_BLOBSIZE];
data/libsolv-0.7.16/src/repopage.c:885:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char inb[BLOCK_SIZE];
data/libsolv-0.7.16/src/repopage.c:886:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char outb[BLOCK_SIZE];
data/libsolv-0.7.16/src/repopage.c:949:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char inb[BLOCK_SIZE];
data/libsolv-0.7.16/src/repopage.c:950:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char outb[BLOCK_SIZE];
data/libsolv-0.7.16/src/sha1.c:118: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(&block, buffer, 64);
data/libsolv-0.7.16/src/sha1.c: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(&context->buffer[j], data, (i = 64-j));
data/libsolv-0.7.16/src/sha1.c:195: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(&context->buffer[j], &data[i], len - i);
data/libsolv-0.7.16/src/sha2.c:173:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	memcpy((d), (s), (l))
data/libsolv-0.7.16/src/sha2.c:177:29:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define MEMCPY_BCOPY(d,s,l)	bcopy((s), (d), (l))
data/libsolv-0.7.16/src/solver.c:4799:7:  [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(b, "repo #%d", what);
data/libsolv-0.7.16/src/solver.c:4928:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[64];
data/libsolv-0.7.16/src/solver.c:4945:7:  [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(buf, "Rule #%d", id);
data/libsolv-0.7.16/src/solverdebug.c:366:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[76];
data/libsolv-0.7.16/src/solverdebug.c:442:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		      strcpy(line + linel, ", ");
data/libsolv-0.7.16/src/strpool.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ss->strings, from->strings, from->nstrings * sizeof(Offset));
data/libsolv-0.7.16/src/strpool.c:70:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ss->stringspace, from->stringspace, from->sstrings);
data/libsolv-0.7.16/src/strpool.c:157:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(ss->stringspace + ss->sstrings, str, len);
data/libsolv-0.7.16/src/suse.c:27:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024], *p, *dep;
data/libsolv-0.7.16/src/suse.c:214:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024], *dep;
data/libsolv-0.7.16/src/util.c:407:8:  [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(rp, p, l);
data/libsolv-0.7.16/src/util.h:102: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(newbuf, buf, len);
data/libsolv-0.7.16/src/util.h:113: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(newbuf, buf, num * len);
data/libsolv-0.7.16/tools/archpkgs2solv.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *p;
data/libsolv-0.7.16/tools/archpkgs2solv.c:83: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).
      else if ((fp = fopen(manifest, "r")) == 0)
data/libsolv-0.7.16/tools/archpkgs2solv.c:126:16:  [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.
    solv_free((char *)pkgs[c]);
data/libsolv-0.7.16/tools/cudftest.c:17: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).
  if ((fp = fopen(name, "w")) == 0)
data/libsolv-0.7.16/tools/cudftest.c:129:26:  [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 (cudfout && ((ofp = fopen(cudfout, "w")) == 0))
data/libsolv-0.7.16/tools/deb2solv.c:60:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *p;
data/libsolv-0.7.16/tools/deb2solv.c:84: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).
      else if ((fp = fopen(manifest, "r")) == 0)
data/libsolv-0.7.16/tools/deb2solv.c:129:14:  [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 ((fp = fopen(debs[i], "r")) == 0)
data/libsolv-0.7.16/tools/deb2solv.c:153:11:  [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.
    free((char *)debs[c]);
data/libsolv-0.7.16/tools/dumpsolv.c:367:8:  [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).
  fp = fopen (location, "r");
data/libsolv-0.7.16/tools/dumpsolv.c:470: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).
	      if (open)
data/libsolv-0.7.16/tools/dumpsolv.c:476:8:  [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 (open)
data/libsolv-0.7.16/tools/mergesolv.c:48:8:  [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).
  fp = fopen (location, "r");
data/libsolv-0.7.16/tools/mergesolv.c:99: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 ((fp = fopen(argv[optind], "r")) == NULL)
data/libsolv-0.7.16/tools/repo2solv.c:78: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).
  if ((fp = fopen(tmp, "r")) != 0)
data/libsolv-0.7.16/tools/repo2solv.c:80:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[512], *descrdir = 0;
data/libsolv-0.7.16/tools/repo2solv.c:319:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char lang[64], *p;
data/libsolv-0.7.16/tools/repo2solv.c:371: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).
  if ((fp = fopen(tmp, "r")) != 0)
data/libsolv-0.7.16/tools/repo2solv.c:439: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).
  if ((fp = fopen(tmp, "r")) != 0)
data/libsolv-0.7.16/tools/repo2solv.c:441:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char pbuf[4096];
data/libsolv-0.7.16/tools/repomdxml2solv.c:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char qbuf[256];
data/libsolv-0.7.16/tools/rpmdb2solv.c:155:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if ((reffp = fopen(refname, "r")) == NULL)
data/libsolv-0.7.16/tools/rpms2solv.c:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *p;
data/libsolv-0.7.16/tools/rpms2solv.c:109: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).
      else if ((fp = fopen(manifest, "r")) == 0)
data/libsolv-0.7.16/tools/rpms2solv.c:186:11:  [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.
    free((char *)rpms[c]);
data/libsolv-0.7.16/tools/susetags2solv.c:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char qbuf[256];
data/libsolv-0.7.16/tools/susetags2solv.c:110:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen(contentfile, "r");
data/libsolv-0.7.16/tools/susetags2solv.c:223:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char lang[6];
data/libsolv-0.7.16/tools/susetags2solv.c:269:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen(mergefile, "r");
data/libsolv-0.7.16/tools/testsolv.c:53:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char prefix[64];
data/libsolv-0.7.16/tools/testsolv.c:55:7:  [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(prefix, "callback%d:", sd->count);
data/libsolv-0.7.16/tools/testsolv.c:127:25:  [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).
	    queue_push2(&solq, atoi(optarg), atoi(p + 1));
data/libsolv-0.7.16/tools/testsolv.c:127:39:  [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).
	    queue_push2(&solq, atoi(optarg), atoi(p + 1));
data/libsolv-0.7.16/tools/testsolv.c:129:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    queue_push2(&solq, 1, atoi(optarg));
data/libsolv-0.7.16/tools/testsolv.c:148: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).
      fp = fopen(argv[optind], "r");
data/libsolv-0.7.16/win32/fmemopen.c:9:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temppath[MAX_PATH + 1];
data/libsolv-0.7.16/win32/fmemopen.c:10:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tempnam[MAX_PATH + 1];
data/libsolv-0.7.16/win32/fnmatch.c:141: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[16];
data/libsolv-0.7.16/win32/fnmatch.c:142:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf, p0, p-1-p0);
data/libsolv-0.7.16/win32/regcomp.c:556:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[CHARCLASS_NAME_MAX+1];
data/libsolv-0.7.16/win32/regcomp.c:560:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(tmp, s, len);
data/libsolv-0.7.16/win32/regcomp.c:671:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(nc, neg.a, neg.len*sizeof *neg.a);
data/libsolv-0.7.16/win32/regcomp.c:2869:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(initial[i].tags, p->tags, sizeof(*p->tags) * (j + 1));
data/libsolv-0.7.16/examples/solv/checksig.c:69: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).
      if (fwrite(pubkey, strlen(pubkey), 1, kfp) != 1)
data/libsolv-0.7.16/examples/solv/deltarpm.c:71:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(archstr) > 10 || strchr(archstr, '\'') != 0)
data/libsolv-0.7.16/examples/solv/mirror.c:83: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).
      l = strlen(bp);
data/libsolv-0.7.16/examples/solv/repoinfo.c:127: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).
  int l = strlen(filename);
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:37: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).
  solv_chksum_add(h, COOKIE_IDENT, strlen(COOKIE_IDENT));
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:48: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).
  solv_chksum_add(h, COOKIE_IDENT, strlen(COOKIE_IDENT));
data/libsolv-0.7.16/examples/solv/repoinfo_cache.c:67:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(p);
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:47:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(ent->d_name);
data/libsolv-0.7.16/examples/solv/repoinfo_config_debian.c:56:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(buf2);
data/libsolv-0.7.16/examples/solv/repoinfo_config_urpmi.c:35: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).
      l = strlen(buf);
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:73: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).
	  p = p2 + strlen(releaseevr);
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:94: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).
	  p = p2 + strlen(basearch);
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:115: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).
  rdlen = strlen(reposdir);
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:126: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).
      l = strlen(ent->d_name);
data/libsolv-0.7.16/examples/solv/repoinfo_config_yum.c:138:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(buf2);
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:52:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((l = read(fd, buf, sizeof(buf))) > 0)
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:115: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).
      int l = strlen(baseurl);
data/libsolv-0.7.16/examples/solv/repoinfo_download.c:116:16:  [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 pl = strlen(path);
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:45:16:  [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).
  lbinarydir = strlen(binarydir);
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:46: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).
  compl = strlen(comp);
data/libsolv-0.7.16/examples/solv/repoinfo_type_debian.c:54: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).
      l = strlen(buf);
data/libsolv-0.7.16/examples/solv/repoinfo_type_mdk.c:22:12:  [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 wl = strlen(what);
data/libsolv-0.7.16/examples/solv/repoinfo_type_susetags.c:234:16:  [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 l = strlen(pbuf);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:119: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).
    dhx = strlen(fn) + 1;	/* make sure dhx is not zero */
data/libsolv-0.7.16/ext/pool_fileconflicts.c:209:10:  [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).
    hx = strlen(fn) + 1;	/* make sure hx is not zero */
data/libsolv-0.7.16/ext/pool_fileconflicts.c:288:10:  [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).
    hx = strlen(fn) + 1;
data/libsolv-0.7.16/ext/pool_fileconflicts.c:434:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen((char *)cbdata->filesspace + dirnameid);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:464:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(cbdata->canonspace + cbdata->rootdirl + l, (char *)cbdata->filesspace + diroff + i, dirl - i);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:601:10:  [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).
    hx = strlen(fn) + 1;
data/libsolv-0.7.16/ext/pool_fileconflicts.c:662:10:  [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).
    hx = strlen(fn) + 1;
data/libsolv-0.7.16/ext/pool_fileconflicts.c:674:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(md5padded, info->digest, 32);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:677: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).
	  off = addfilesspace(cbdata, strlen(fn) + (34 + 1));
data/libsolv-0.7.16/ext/pool_fileconflicts.c:793: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).
	    hx = strlen(di.kv.str) + 1;
data/libsolv-0.7.16/ext/pool_fileconflicts.c:804: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).
	      lastdirlen = strlen(dir);
data/libsolv-0.7.16/ext/pool_fileconflicts.c:812: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).
	    hx = lastdirlen + strlen(di.kv.str) + 1;
data/libsolv-0.7.16/ext/pool_fileconflicts.c:884:20:  [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).
	cbdata.rootdirl = strlen(cbdata.rootdir);
data/libsolv-0.7.16/ext/repo_appdata.c:215:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int c, l = strlen(buf);
data/libsolv-0.7.16/ext/repo_appdata.c:221:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while ((c = getc(fp)) != EOF)
data/libsolv-0.7.16/ext/repo_appdata.c:274: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).
  int l = strlen(id);
data/libsolv-0.7.16/ext/repo_appdata.c:319:12:  [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 l = strlen(name);
data/libsolv-0.7.16/ext/repo_appdata.c:380:12:  [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 l = strlen(pd->description);
data/libsolv-0.7.16/ext/repo_appdata.c:477:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(str);
data/libsolv-0.7.16/ext/repo_appdata.c:544:14:  [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 len = strlen(entry->d_name);
data/libsolv-0.7.16/ext/repo_arch.c:257:12:  [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).
	      l = strlen(prefix);
data/libsolv-0.7.16/ext/repo_arch.c:267:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(th->path);
data/libsolv-0.7.16/ext/repo_arch.c:376:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(line);
data/libsolv-0.7.16/ext/repo_arch.c:483:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(s);
data/libsolv-0.7.16/ext/repo_arch.c:493: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).
      l = strlen(s);
data/libsolv-0.7.16/ext/repo_arch.c:534: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).
  for (p = fn + strlen(fn) - 1; p > fn; p--)
data/libsolv-0.7.16/ext/repo_arch.c:571: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).
      l = strlen(line);
data/libsolv-0.7.16/ext/repo_arch.c:689:12:  [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).
	      l = strlen(line);
data/libsolv-0.7.16/ext/repo_autopattern.c:98: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).
  keyname_len = strlen(keyname_str);
data/libsolv-0.7.16/ext/repo_autopattern.c:277:16:  [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 l = strlen(pn);
data/libsolv-0.7.16/ext/repo_autopattern.c:281:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(lang, pn + 17, l - 17 - 1);
data/libsolv-0.7.16/ext/repo_autopattern.c:447:76:  [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).
	  else if (!strncmp(pn, "product-url(", 12) && evr && pn[12] && pn[13] && strlen(pn + 12) < 32)
data/libsolv-0.7.16/ext/repo_autopattern.c:451: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).
	      type[strlen(type) - 1] = 0;	/* closing ) */
data/libsolv-0.7.16/ext/repo_conda.c:79:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  for (pe = p + strlen(p) - 1; pe > p; pe--)
data/libsolv-0.7.16/ext/repo_conda.c:120:14:  [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 l = strlen(fn), extl = 0;
data/libsolv-0.7.16/ext/repo_content.c:86:10:  [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).
    l += strlen(s1);
data/libsolv-0.7.16/ext/repo_content.c:88:10:  [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).
    l += strlen(s2);
data/libsolv-0.7.16/ext/repo_content.c:90:10:  [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).
    l += strlen(s3);
data/libsolv-0.7.16/ext/repo_content.c:100:12:  [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).
      p += strlen(s1);
data/libsolv-0.7.16/ext/repo_content.c:105:12:  [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).
      p += strlen(s2);
data/libsolv-0.7.16/ext/repo_content.c:110:12:  [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).
      p += strlen(s3);
data/libsolv-0.7.16/ext/repo_content.c:249:16:  [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).
      linep += strlen(linep);
data/libsolv-0.7.16/ext/repo_content.c:369:12:  [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(checksum) != 2 * l)
data/libsolv-0.7.16/ext/repo_cudf.c:201: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).
      bufl += strlen(buf + bufl);
data/libsolv-0.7.16/ext/repo_cudf.c:212:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(fp);
data/libsolv-0.7.16/ext/repo_deb.c:361: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).
	  if (!strcasecmp(tag, "md5sum") && !checksumtype && strlen(q) == 16 * 2)
data/libsolv-0.7.16/ext/repo_deb.c:385:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (!newtype || solv_chksum_len(newtype) * 2 != strlen(q))
data/libsolv-0.7.16/ext/repo_deb.c:495: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).
	  while ((l3 = strlen(p)) < ll)
data/libsolv-0.7.16/ext/repo_deb.c:735: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).
      l = strlen(buf);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:138:10:  [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).
    l += strlen(e) + 1;
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:140:10:  [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).
    l += strlen(v);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:142:10:  [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).
    l += strlen(r) + 1;
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:147:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:153:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_deltainfoxml.c:159:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_helix.c:187:10:  [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).
    l += strlen(e) + 1;  /* e: */
data/libsolv-0.7.16/ext/repo_helix.c:189:10:  [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).
    l += strlen(v);      /* v */
data/libsolv-0.7.16/ext/repo_helix.c:191:10:  [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).
    l += strlen(r) + 1;  /* -r */
data/libsolv-0.7.16/ext/repo_helix.c:200:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_helix.c:206:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_helix.c:212:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_helix.c:318: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).
      int l = strlen(k) + 1 + strlen(n) + 1;
data/libsolv-0.7.16/ext/repo_helix.c:318: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).
      int l = strlen(k) + 1 + strlen(n) + 1;
data/libsolv-0.7.16/ext/repo_helix.c:369:28:  [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).
          xmlp->lcontent = strlen(xmlp->content);
data/libsolv-0.7.16/ext/repo_mdk.c:36: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).
	ebp = bp + strlen(bp);
data/libsolv-0.7.16/ext/repo_mdk.c:97: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).
      bufl += strlen(buf + bufl);
data/libsolv-0.7.16/ext/repo_mdk.c:183: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).
	      if (n && !strncmp(n + 1, disttag, strlen(disttag)))
data/libsolv-0.7.16/ext/repo_mdk.c:189: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).
	      int le = strlen(distepoch);
data/libsolv-0.7.16/ext/repo_mdk.c:190: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).
	      int ln = strlen(nvra);
data/libsolv-0.7.16/ext/repo_mdk.c:298:12:  [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).
  p = fn + strlen(fn);
data/libsolv-0.7.16/ext/repo_products.c:327:14:  [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 len = strlen(entry->d_name);
data/libsolv-0.7.16/ext/repo_pubkey.c:127:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(startstr);
data/libsolv-0.7.16/ext/repo_pubkey.c:183: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).
  if (strncmp(pubkey, endstr, strlen(endstr)) != 0)
data/libsolv-0.7.16/ext/repo_pubkey.c:190:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = pubkey + strlen(pubkey);
data/libsolv-0.7.16/ext/repo_pubkey.c:193: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).
  return (p ? p + 1 : pubkey + strlen(pubkey)) - pubkeystart;
data/libsolv-0.7.16/ext/repo_pubkey.c:202: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).
  char *str = solv_malloc(strlen(startstr) + strlen(endstr) + strlen(version) + (pktl / 3) * 4 + (pktl / (ARMOR_NLAFTER * 3)) + 30);
data/libsolv-0.7.16/ext/repo_pubkey.c:202: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).
  char *str = solv_malloc(strlen(startstr) + strlen(endstr) + strlen(version) + (pktl / 3) * 4 + (pktl / (ARMOR_NLAFTER * 3)) + 30);
data/libsolv-0.7.16/ext/repo_pubkey.c:202: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).
  char *str = solv_malloc(strlen(startstr) + strlen(endstr) + strlen(version) + (pktl / 3) * 4 + (pktl / (ARMOR_NLAFTER * 3)) + 30);
data/libsolv-0.7.16/ext/repo_pubkey.c:209:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p += strlen(p);
data/libsolv-0.7.16/ext/repo_pubkey.c:996: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).
  sl = suffix ? strlen(suffix) : 0;
data/libsolv-0.7.16/ext/repo_pubkey.c:1003: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).
      l = strlen(dn);
data/libsolv-0.7.16/ext/repo_releasefile_products.c:54: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).
      int l = strlen(buf);
data/libsolv-0.7.16/ext/repo_releasefile_products.c:145: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).
      int len = strlen(entry->d_name);
data/libsolv-0.7.16/ext/repo_repomdxml.c:268: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).
      if (strlen(content) != 2 * solv_chksum_len(pd->chksumtype))
data/libsolv-0.7.16/ext/repo_rpmdb.c:347:14:  [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).
        d += strlen((char *)d) + 1;
data/libsolv-0.7.16/ext/repo_rpmdb.c:506: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).
      evr = solv_malloc(strlen(epochbuf) + 1 + strlen(version) + 1 + strlen(release) + 1);
data/libsolv-0.7.16/ext/repo_rpmdb.c:506:48:  [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).
      evr = solv_malloc(strlen(epochbuf) + 1 + strlen(version) + 1 + strlen(release) + 1);
data/libsolv-0.7.16/ext/repo_rpmdb.c:506:70:  [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).
      evr = solv_malloc(strlen(epochbuf) + 1 + strlen(version) + 1 + strlen(release) + 1);
data/libsolv-0.7.16/ext/repo_rpmdb.c:511: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).
      evr = solv_malloc(strlen(version) + 1 + strlen(release) + 1);
data/libsolv-0.7.16/ext/repo_rpmdb.c:511: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).
      evr = solv_malloc(strlen(version) + 1 + strlen(release) + 1);
data/libsolv-0.7.16/ext/repo_rpmdb.c:517: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).
      int l = strlen(evr);
data/libsolv-0.7.16/ext/repo_rpmdb.c:518: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).
      evr = solv_realloc(evr, l + strlen(distepoch) + 2);
data/libsolv-0.7.16/ext/repo_rpmdb.c:746: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).
  int l = strlen(str);
data/libsolv-0.7.16/ext/repo_rpmdb.c:1185: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).
	  if (str && strlen(str) == 40)
data/libsolv-0.7.16/ext/repo_rpmdb.c:1187:20:  [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).
	  else if (str && strlen(str) == 64)
data/libsolv-0.7.16/ext/repo_rpmdb.c:2050: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).
	  if (str && strlen(str) == 40)
data/libsolv-0.7.16/ext/repo_rpmdb.c:2055:20:  [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).
	  else if (str && strlen(str) == 64)
data/libsolv-0.7.16/ext/repo_rpmdb.c:2217:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(lt);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2329: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).
      l1 = lastdir == diidx ? lastdirl : strlen(dn[diidx]);
data/libsolv-0.7.16/ext/repo_rpmdb.c:2330:16:  [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).
      l = l1 + strlen(bn[i]) + 1;
data/libsolv-0.7.16/ext/repo_rpmdb.c:2413: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).
      l = strlen(name) + 1 + strlen(evr ? evr : "") + 1 + strlen(arch) + 1;
data/libsolv-0.7.16/ext/repo_rpmdb.c:2413: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).
      l = strlen(name) + 1 + strlen(evr ? evr : "") + 1 + strlen(arch) + 1;
data/libsolv-0.7.16/ext/repo_rpmdb.c:2413:59:  [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).
      l = strlen(name) + 1 + strlen(evr ? evr : "") + 1 + strlen(arch) + 1;
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:171:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  oldmask = umask(022);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:174:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask(oldmask);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:373:20:  [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).
      dbkey.size = strlen(match);
data/libsolv-0.7.16/ext/repo_rpmdb_bdb.h:532:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((l = read(fd, buf, sizeof(buf))) > 0)
data/libsolv-0.7.16/ext/repo_rpmdb_librpm.h:179:14:  [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).
    matchl = strlen(match);
data/libsolv-0.7.16/ext/repo_rpmmd.c:312:10:  [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).
    l += strlen(e) + 1;
data/libsolv-0.7.16/ext/repo_rpmmd.c:314:10:  [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).
    l += strlen(v);
data/libsolv-0.7.16/ext/repo_rpmmd.c:316:10:  [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).
    l += strlen(r) + 1;
data/libsolv-0.7.16/ext/repo_rpmmd.c:321:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_rpmmd.c:327:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_rpmmd.c:333:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_rpmmd.c:391: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).
      int l = strlen(k) + 1 + strlen(n) + 1;
data/libsolv-0.7.16/ext/repo_rpmmd.c:391: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).
      int l = strlen(k) + 1 + strlen(n) + 1;
data/libsolv-0.7.16/ext/repo_rpmmd.c:808:16:  [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 l = strlen(base);
data/libsolv-0.7.16/ext/repo_rpmmd.c:879: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).
		int l = strlen(str) + 2;
data/libsolv-0.7.16/ext/repo_susetags.c:201:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(sp[1]) != 2 * solv_chksum_len(type))
data/libsolv-0.7.16/ext/repo_susetags.c:263:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (l = 0; l < pd->nfilelist; l += strlen(pd->filelist + l) + 1)
data/libsolv-0.7.16/ext/repo_susetags.c:538:16:  [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).
      linep += strlen(linep);
data/libsolv-0.7.16/ext/repo_susetags.c:629:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
              strncpy(line_lang, line + 5, langsize);
data/libsolv-0.7.16/ext/repo_susetags.c:823: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).
		int l = strlen(line + 6) + 1;
data/libsolv-0.7.16/ext/repo_susetags.c:836: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).
		for (l = 0; l < pd.nfilelist; l += strlen(pd.filelist + l) + 1)
data/libsolv-0.7.16/ext/repo_testcase.c:57:39:  [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).
  s2 = s2p = pool_alloctmpspace(pool, strlen(s) + bad * 2 + 1);
data/libsolv-0.7.16/ext/repo_testcase.c:335: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 (!strncmp(s, op->opname, strlen(op->opname)))
data/libsolv-0.7.16/ext/repo_testcase.c:343: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).
	  s += strlen(op->opname);
data/libsolv-0.7.16/ext/repo_testcase.c:443:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	release = evr + strlen(evr);
data/libsolv-0.7.16/ext/repo_testcase.c:506:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      for (l = 0; l < nfilelist; l += strlen(filelist + l) + 1)
data/libsolv-0.7.16/ext/repo_testcase.c:559:16:  [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).
      linep += strlen(linep);
data/libsolv-0.7.16/ext/repo_testcase.c:644: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 l = strlen(line + 6) + 1;
data/libsolv-0.7.16/ext/repo_testcase.c:657:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  for (l = 0; l < nfilelist; l += strlen(filelist + l) + 1)
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:171:10:  [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).
    l += strlen(e) + 1;
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:173:10:  [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).
    l += strlen(v);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:175:10:  [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).
    l += strlen(r) + 1;
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:181:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:187:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/repo_updateinfoxml.c:193:12:  [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).
      c += strlen(c);
data/libsolv-0.7.16/ext/solv_jsonparser.c:65:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = getc(jp->fp);
data/libsolv-0.7.16/ext/solv_xfopen.c:852:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bc->bufl_int = *mode == 'w' ? 0 : strlen(*bufp);
data/libsolv-0.7.16/ext/testcase.c:282:12:  [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).
      l += strlen(q->str[i]) + 1;
data/libsolv-0.7.16/ext/testcase.c:290: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).
        rp += strlen(rp);
data/libsolv-0.7.16/ext/testcase.c:372: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).
  str = pool_alloctmpspace(pool, strlen(n) + strlen(e) + strlen(a) + 3);
data/libsolv-0.7.16/ext/testcase.c:372: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).
  str = pool_alloctmpspace(pool, strlen(n) + strlen(e) + strlen(a) + 3);
data/libsolv-0.7.16/ext/testcase.c:372:58:  [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).
  str = pool_alloctmpspace(pool, strlen(n) + strlen(e) + strlen(a) + 3);
data/libsolv-0.7.16/ext/testcase.c:391: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).
      int l = strlen(str);
data/libsolv-0.7.16/ext/testcase.c:423:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(repo->name);
data/libsolv-0.7.16/ext/testcase.c:461: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).
	  size_t partl = strlen(part);
data/libsolv-0.7.16/ext/testcase.c:485:14:  [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, l = strlen(str);
data/libsolv-0.7.16/ext/testcase.c:638:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  o = strlen(ret);
data/libsolv-0.7.16/ext/testcase.c:719:12:  [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 l = strlen(pieces[1]);
data/libsolv-0.7.16/ext/testcase.c:835: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 (*flags == '[' && flags[strlen(flags) - 1] == ']')
data/libsolv-0.7.16/ext/testcase.c:839:10:  [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).
	  flags[strlen(flags) - 1] = 0;
data/libsolv-0.7.16/ext/testcase.c:873: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 (*flags == '[' && flags[strlen(flags) - 1] == ']')
data/libsolv-0.7.16/ext/testcase.c:877:10:  [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).
	  flags[strlen(flags) - 1] = 0;
data/libsolv-0.7.16/ext/testcase.c:1043:37:  [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).
    solv_chksum_add(chk, sq.str[i], strlen(sq.str[i]) + 1);
data/libsolv-0.7.16/ext/testcase.c:1071:37:  [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).
    solv_chksum_add(chk, sq.str[i], strlen(sq.str[i]) + 1);
data/libsolv-0.7.16/ext/testcase.c:1101: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).
  solv_chksum_add(chk, s, strlen(s) + 1);
data/libsolv-0.7.16/ext/testcase.c:1120: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).
      solv_chksum_add(chk, s, strlen(s) + 1);
data/libsolv-0.7.16/ext/testcase.c:1122: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).
      solv_chksum_add(chk, s, strlen(s) + 1);
data/libsolv-0.7.16/ext/testcase.c:1127: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).
      solv_chksum_add(chk, s, strlen(s) + 1);
data/libsolv-0.7.16/ext/testcase.c:1767: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).
	  if (result && *result && fwrite(result, strlen(result), 1, fp) != 1)
data/libsolv-0.7.16/ext/testcase.c:1795: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).
  if (*result && fwrite(result, strlen(result), 1, fp) != 1)
data/libsolv-0.7.16/ext/testcase.c:1821:39:  [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).
      buf = solv_malloc((repo->name ? strlen(repo->name) : 0) + 40);
data/libsolv-0.7.16/ext/testcase.c:1891:12:  [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).
      rl = strlen(rp);
data/libsolv-0.7.16/ext/testcase.c:2032: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).
      l = strlen(buf);
data/libsolv-0.7.16/ext/testcase.c:2088: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).
		  rfp = solv_fmemopen(idata, strlen(idata), "rf");
data/libsolv-0.7.16/ext/testcase.c:2221:12:  [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(pieces[1]);
data/libsolv-0.7.16/ext/testcase.c:2369:39:  [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 (!strncmp(pieces[2], op->opname, strlen(op->opname)))
data/libsolv-0.7.16/ext/tools_util.h:64:10:  [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).
    l += strlen(s1);
data/libsolv-0.7.16/ext/tools_util.h:66:10:  [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).
    l += strlen(s2);
data/libsolv-0.7.16/ext/tools_util.h:68:10:  [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).
    l += strlen(s3);
data/libsolv-0.7.16/ext/tools_util.h:78:12:  [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).
      p += strlen(s1);
data/libsolv-0.7.16/ext/tools_util.h:83:12:  [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).
      p += strlen(s2);
data/libsolv-0.7.16/ext/tools_util.h:88:12:  [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).
      p += strlen(s3);
data/libsolv-0.7.16/src/conda.c:229: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).
  return pool_evrcmp_conda_int(evr1, evr1 + strlen(evr1), evr2, evr2 + strlen(evr2), 0);
data/libsolv-0.7.16/src/conda.c:229:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return pool_evrcmp_conda_int(evr1, evr1 + strlen(evr1), evr2, evr2 + strlen(evr2), 0);
data/libsolv-0.7.16/src/conda.c:337:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 0);
data/libsolv-0.7.16/src/conda.c:348:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 1);
data/libsolv-0.7.16/src/conda.c:353:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 0);
data/libsolv-0.7.16/src/conda.c:362:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 1);
data/libsolv-0.7.16/src/conda.c:386: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).
      r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 1);
data/libsolv-0.7.16/src/conda.c:393:40:  [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).
  r = pool_evrcmp_conda_int(evr, evr + strlen(evr), version, version + versionlen, 0);
data/libsolv-0.7.16/src/conda.c:480:28:  [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).
    versionend = version + strlen(version);
data/libsolv-0.7.16/src/conda.c:484: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).
  if (build && !solvable_conda_matchbuild(s, build, build + strlen(build)))
data/libsolv-0.7.16/src/conda.c:492: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 namestrlen = strlen(namestr);
data/libsolv-0.7.16/src/conda.c:524: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).
      l = strlen(namestr);
data/libsolv-0.7.16/src/conda.c:609:20:  [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).
  versionend = p + strlen(p);
data/libsolv-0.7.16/src/diskusage.c:89:12:  [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).
	  compl = strlen(compstr);
data/libsolv-0.7.16/src/diskusage.c:171:16:  [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).
	      compl = strlen(compstr);
data/libsolv-0.7.16/src/evr.c:497: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).
	  r = solv_vercmp(evr1, s1, epoch, epoch + strlen(epoch));
data/libsolv-0.7.16/src/evr.c:515:62:  [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).
      r = solv_vercmp(evr1, r1 ? r1 : s1, version, version + strlen(version));
data/libsolv-0.7.16/src/evr.c:523:54:  [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).
      r = solv_vercmp(r1 + 1, s1, release, release + strlen(release));
data/libsolv-0.7.16/src/filelistfilter.c:117:12:  [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).
      gl = strlen(g);
data/libsolv-0.7.16/src/filelistfilter.c:177: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 (!strncmp(str, g, strlen(g)))
data/libsolv-0.7.16/src/fileprovides.c:294:10:  [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).
	  dp += strlen((const char *)dp) + 1;
data/libsolv-0.7.16/src/linkedpkg.c:92:20:  [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 reqsl = strlen(reqs);
data/libsolv-0.7.16/src/linkedpkg.c:137: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).
      int nnl = strlen(nn);
data/libsolv-0.7.16/src/policy.c:1094: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).
		  if (strlen(s) >= 4)
data/libsolv-0.7.16/src/policy.c:1186: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 (devel && strlen(sn) < 256)
data/libsolv-0.7.16/src/policy.c:1211:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(sn) < 256 - 8 && *sn >= '0' && *sn <= '9' && sn[1] == '.')
data/libsolv-0.7.16/src/pool.c:1019: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).
      int knl = strlen(kn);
data/libsolv-0.7.16/src/pool.c:1711:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(n) + strlen(lang) + 2;
data/libsolv-0.7.16/src/pool.c:1711: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).
  l = strlen(n) + strlen(lang) + 2;
data/libsolv-0.7.16/src/pool.c:1713: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).
    p = solv_malloc(strlen(n) + strlen(lang) + 2);
data/libsolv-0.7.16/src/pool.c:1713: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).
    p = solv_malloc(strlen(n) + strlen(lang) + 2);
data/libsolv-0.7.16/src/pool.c:1780: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).
  l1 = str1 ? strlen(str1) : 0;
data/libsolv-0.7.16/src/pool.c:1781: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).
  l2 = str2 ? strlen(str2) : 0;
data/libsolv-0.7.16/src/pool.c:1782: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).
  l3 = str3 ? strlen(str3) : 0;
data/libsolv-0.7.16/src/pool.c:1809: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).
  l1 = str1 ? strlen(str1) : 0;
data/libsolv-0.7.16/src/pool.c:1810: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).
  l2 = str2 ? strlen(str2) : 0;
data/libsolv-0.7.16/src/pool.c:1811: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).
  l3 = str3 ? strlen(str3) : 0;
data/libsolv-0.7.16/src/poolid.c:254: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).
      l += 2 + dep2strlen(pool, rd->name) + strlen(pool_id2rel(pool, id));
data/libsolv-0.7.16/src/poolid.c:257:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return l + strlen(pool->ss.stringspace + pool->ss.strings[id]);
data/libsolv-0.7.16/src/poolid.c:273: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).
	      p += strlen(p);
data/libsolv-0.7.16/src/poolid.c:275: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).
	      p += strlen(p);
data/libsolv-0.7.16/src/poolid.c:277:8:  [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(p, ")");
data/libsolv-0.7.16/src/poolid.c:283: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).
	  p += strlen(p);
data/libsolv-0.7.16/src/poolid.c:290:12:  [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).
      p += strlen(p);
data/libsolv-0.7.16/src/poolid.c:295:4:  [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(p, ")");
data/libsolv-0.7.16/src/poolid.c:304:12:  [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).
      p += strlen(p);
data/libsolv-0.7.16/src/repo_solv.c:60:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(data->fp);
data/libsolv-0.7.16/src/repo_solv.c:83:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  c = getc(data->fp);
data/libsolv-0.7.16/src/repo_solv.c:107:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(data->fp);
data/libsolv-0.7.16/src/repo_solv.c:140:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(data->fp);
data/libsolv-0.7.16/src/repo_solv.c:628: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).
	  size_t len = strlen(pp) + 1;
data/libsolv-0.7.16/src/repo_solv.c:674:10:  [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).
	  sp += strlen(sp) + 1;
data/libsolv-0.7.16/src/repo_solv.c:729:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(sp) + 1;
data/libsolv-0.7.16/src/repo_write.c:730: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).
	data_addblob(xd, (unsigned char *)kv->str, strlen(kv->str) + 1);
data/libsolv-0.7.16/src/repo_write.c:783:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    xd->len += data_addideof_len(id) + strlen(kv->str) + 1;
data/libsolv-0.7.16/src/repo_write.c:787: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).
	data_addblob(xd, (unsigned char *)kv->str, strlen(kv->str) + 1);
data/libsolv-0.7.16/src/repo_write.c:834: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).
  data_addblob(xd, (unsigned char *)kv->str, strlen(kv->str) + 1);
data/libsolv-0.7.16/src/repo_write.c:975: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).
    if (!strncmp(keyname, languagetags[i], strlen(languagetags[i])))
data/libsolv-0.7.16/src/repo_write.c:1759: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).
      sizeid += strlen(spool->stringspace + spool->strings[needid[i].map]) + 1;
data/libsolv-0.7.16/src/repodata.c:257: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).
  return p ? p : str + strlen(str);
data/libsolv-0.7.16/src/repodata.c:292: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).
      l = strlen(dir);
data/libsolv-0.7.16/src/repodata.c:369:12:  [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).
      l += strlen(comps);
data/libsolv-0.7.16/src/repodata.c:375:10:  [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).
    l += strlen(suf) + 1;
data/libsolv-0.7.16/src/repodata.c:380:12:  [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).
      p -= strlen(suf);
data/libsolv-0.7.16/src/repodata.c:389: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).
      l = strlen(comps);
data/libsolv-0.7.16/src/repodata.c:874:10:  [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).
	  dp += strlen((const char *)dp) + 1;
data/libsolv-0.7.16/src/repodata.c:1419: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).
	  for (p = match + strlen(match) - 1; p >= match; p--)
data/libsolv-0.7.16/src/repodata.c:1459: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).
        return !strncasecmp(ma->match, str, strlen(ma->match));
data/libsolv-0.7.16/src/repodata.c:1461:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return !strncmp(ma->match, str, strlen(ma->match));
data/libsolv-0.7.16/src/repodata.c:1463: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).
      l = strlen(str) - strlen(ma->match);
data/libsolv-0.7.16/src/repodata.c:1463: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).
      l = strlen(str) - strlen(ma->match);
data/libsolv-0.7.16/src/repodata.c:1498: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).
      l = strlen(basename) - strlen(match);
data/libsolv-0.7.16/src/repodata.c:1498: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).
      l = strlen(basename) - strlen(match);
data/libsolv-0.7.16/src/repodata.c:2227: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).
        l = strlen(di->kv.str) + 1;
data/libsolv-0.7.16/src/repodata.c:2238:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(di->kv.str) + 1;
data/libsolv-0.7.16/src/repodata.c:2521:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(str) + 1;
data/libsolv-0.7.16/src/repodata.c:2730: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).
    l = strlen(dir);
data/libsolv-0.7.16/src/repodata.c:2749:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(str);
data/libsolv-0.7.16/src/repodata.c:2754: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).
      l = strlen(str);
data/libsolv-0.7.16/src/repodata.c:2759:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  l = strlen(str);
data/libsolv-0.7.16/src/repodata.c:2789: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).
    l = strlen(dir);
data/libsolv-0.7.16/src/repodata.c:2833:85:  [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).
  repodata_set_poolstrn(data, handle, DELTA_LOCATION_NAME, file, evr ? evr - file : strlen(file));
data/libsolv-0.7.16/src/repodata.c:2835:91:  [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).
    repodata_set_poolstrn(data, handle, DELTA_LOCATION_EVR, evr + 1, suf ? suf - evr - 1: strlen(evr + 1));
data/libsolv-0.7.16/src/repodata.c:2889:90:  [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).
    repodata_set_constantid(data, solvid, SOLVABLE_SOURCEARCH, pool_strn2id(pool, sarch, strlen(sarch) - 4, 1));
data/libsolv-0.7.16/src/repodata.c:2930:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  l = strlen(str) + 1;
data/libsolv-0.7.16/src/repodata.c:3309: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).
      data_addblob(xd, data->attrdata + val, strlen((char *)(data->attrdata + val)) + 1);
data/libsolv-0.7.16/src/repodata.c:3364: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).
	  data_addblob(xd, data->attrdata + ida[1], strlen((char *)(data->attrdata + ida[1])) + 1);
data/libsolv-0.7.16/src/repopack.h:151: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).
      return dp + strlen(kv->str) + 1;
data/libsolv-0.7.16/src/repopack.h:191: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).
      return dp + strlen(kv->str) + 1;
data/libsolv-0.7.16/src/repopage.c:771:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(fp);
data/libsolv-0.7.16/src/selection.c:1116: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).
	  char *evrx = solv_malloc(strlen(evr) + lastepochlen + 2);
data/libsolv-0.7.16/src/selection.c:1117:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(evrx, lastepoch, lastepochlen + 1);
data/libsolv-0.7.16/src/selection.c:1823: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).
      int knl = strlen(kn);
data/libsolv-0.7.16/src/selection.c:2080:12:  [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 o = strlen(s);
data/libsolv-0.7.16/src/solvable.c:38:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  nl = strlen(n);
data/libsolv-0.7.16/src/solvable.c:39:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  el = strlen(e);
data/libsolv-0.7.16/src/solvable.c:40:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  al = strlen(a);
data/libsolv-0.7.16/src/solvable.c:53:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(p + nl, e, el);
data/libsolv-0.7.16/src/solvable.c:363: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).
    l = strlen(mediadir) + 1;
data/libsolv-0.7.16/src/solvable.c:371: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).
      loc = pool_alloctmpspace(pool, l + strlen(name) + strlen(evr) + strlen(arch) + 7);
data/libsolv-0.7.16/src/solvable.c:371:57:  [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).
      loc = pool_alloctmpspace(pool, l + strlen(name) + strlen(evr) + strlen(arch) + 7);
data/libsolv-0.7.16/src/solvable.c:371:71:  [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).
      loc = pool_alloctmpspace(pool, l + strlen(name) + strlen(evr) + strlen(arch) + 7);
data/libsolv-0.7.16/src/solvable.c:382: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).
      loc = pool_alloctmpspace(pool, l + strlen(mediafile) + 1);
data/libsolv-0.7.16/src/solver.c:4777:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      b = pool_alloctmpspace(pool, 11 + strlen(s));
data/libsolv-0.7.16/src/solver.c:4881:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  o = strlen(s);
data/libsolv-0.7.16/src/solverdebug.c:428:12:  [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).
	      l = strlen(n);
data/libsolv-0.7.16/src/strpool.c:24:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    totalsize += strlen(strs[count]) + 1;
data/libsolv-0.7.16/src/strpool.c:36: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).
      ss->sstrings += strlen(strs[count]) + 1;
data/libsolv-0.7.16/src/strpool.c:170:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return stringpool_strn2id(ss, str, (unsigned int)strlen(str), create);
data/libsolv-0.7.16/src/suse.c:38:39:  [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 (!strncmp(dep, "locale(", 7) && strlen(dep) < sizeof(buf) - 2)
data/libsolv-0.7.16/src/suse.c:83:71:  [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).
	  else if ((p = strchr(dep, ':')) != 0 && p != dep && p[1] == '/' && strlen(dep) < sizeof(buf))
data/libsolv-0.7.16/src/suse.c:90:12:  [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).
	      l = strlen(p);
data/libsolv-0.7.16/src/suse.c:110:62:  [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 (!strncmp(dep, "modalias(", 9) && dep[9] && dep[10] && strlen(dep) < sizeof(buf))
data/libsolv-0.7.16/src/suse.c:118:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  p[strlen(p) - 1] = 0;
data/libsolv-0.7.16/src/suse.c:126:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  p[strlen(p) - 1] = 0;
data/libsolv-0.7.16/src/suse.c:133: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).
	  else if (!strncmp(dep, "packageand(", 11) && strlen(dep) < sizeof(buf))
data/libsolv-0.7.16/src/suse.c:162: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).
		  dep[strlen(dep) - 1] = 0;
data/libsolv-0.7.16/src/suse.c:172: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).
	  else if (!strncmp(dep, "filesystem(", 11) && strlen(dep) < sizeof(buf))
data/libsolv-0.7.16/src/suse.c:227:62:  [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 (!strncmp(dep, "otherproviders(", 15) && dep[15] && strlen(dep) < sizeof(buf) - 2)
data/libsolv-0.7.16/src/suse.c:230:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  buf[strlen(buf) - 1] = 0;
data/libsolv-0.7.16/src/util.c:125: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).
    solv_oom(0, strlen(s));
data/libsolv-0.7.16/src/util.c:209: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).
  l1 = str1 ? strlen(str1) : 0;
data/libsolv-0.7.16/src/util.c:210: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).
  l2 = str2 ? strlen(str2) : 0;
data/libsolv-0.7.16/src/util.c:211: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).
  l3 = str3 ? strlen(str3) : 0;
data/libsolv-0.7.16/tools/archpkgs2solv.c:34:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(stream);
data/libsolv-0.7.16/tools/deb2solv.c:35:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(stream);
data/libsolv-0.7.16/tools/installcheck.c:58:14:  [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 l = strlen(str);
data/libsolv-0.7.16/tools/repo2solv.c:83:12:  [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 l = strlen(buf);
data/libsolv-0.7.16/tools/repo2solv.c:88:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      while ((c = getc(fp)) != EOF && c != '\n')
data/libsolv-0.7.16/tools/repo2solv.c:186:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((c = getc(fp)) != EOF)
data/libsolv-0.7.16/tools/repo2solv.c:248:14:  [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 l = strlen(what);
data/libsolv-0.7.16/tools/repo2solv.c:322: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).
      if (strlen(fn + 9) + 1 >= sizeof(lang))
data/libsolv-0.7.16/tools/repo2solv.c:324:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(lang, fn + 9, sizeof(lang) - 1);
data/libsolv-0.7.16/tools/repo2solv.c:614:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t l = strlen(str);
data/libsolv-0.7.16/tools/rpmdb2solv.c:203:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  int rootlen = strlen(root);
data/libsolv-0.7.16/tools/rpms2solv.c:41:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc(stream);
data/libsolv-0.7.16/tools/susetags2solv.c:161: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).
      fnp = solv_malloc(strlen(descrdir) + 128);
data/libsolv-0.7.16/tools/susetags2solv.c:233: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 (!p || !p[1] || strlen(p + 1) > 5)
data/libsolv-0.7.16/tools/testsolv.c:275: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).
			      p2 = p2 ? p2 + 1 : p + strlen(p);
data/libsolv-0.7.16/win32/getopt.c:19: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).
	&& fwrite(b, strlen(b), 1, f)
data/libsolv-0.7.16/win32/regerror.c:33: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).
	for (s=messages; e && *s; e--, s+=strlen(s)+1);
data/libsolv-0.7.16/win32/strfncs.c:21: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).
	size_t l = strlen(n);
data/libsolv-0.7.16/win32/tre.h:70:21:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define tre_strlen  wcslen

ANALYSIS SUMMARY:

Hits = 858
Lines analyzed = 81105 in approximately 2.02 seconds (40190 lines/second)
Physical Source Lines of Code (SLOC) = 68043
Hits@level = [0] 582 [1] 341 [2] 377 [3]  26 [4] 113 [5]   1
Hits@level+ = [0+] 1440 [1+] 858 [2+] 517 [3+] 140 [4+] 114 [5+]   1
Hits/KSLOC@level+ = [0+] 21.1631 [1+] 12.6097 [2+] 7.59814 [3+] 2.05752 [4+] 1.67541 [5+] 0.0146966
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.