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/reprepro-5.3.0/rredtool.c
Examining data/reprepro-5.3.0/debfilecontents.c
Examining data/reprepro-5.3.0/filelist.c
Examining data/reprepro-5.3.0/contents.c
Examining data/reprepro-5.3.0/pull.c
Examining data/reprepro-5.3.0/donefile.c
Examining data/reprepro-5.3.0/optionsfile.c
Examining data/reprepro-5.3.0/tracking.c
Examining data/reprepro-5.3.0/exports.c
Examining data/reprepro-5.3.0/filterlist.c
Examining data/reprepro-5.3.0/ignore.c
Examining data/reprepro-5.3.0/termdecide.c
Examining data/reprepro-5.3.0/terms.c
Examining data/reprepro-5.3.0/override.c
Examining data/reprepro-5.3.0/main.c
Examining data/reprepro-5.3.0/downloadcache.c
Examining data/reprepro-5.3.0/aptmethod.c
Examining data/reprepro-5.3.0/target.c
Examining data/reprepro-5.3.0/upgradelist.c
Examining data/reprepro-5.3.0/checkin.c
Examining data/reprepro-5.3.0/checkindsc.c
Examining data/reprepro-5.3.0/checkindeb.c
Examining data/reprepro-5.3.0/distribution.c
Examining data/reprepro-5.3.0/signedfile.c
Examining data/reprepro-5.3.0/signature_check.c
Examining data/reprepro-5.3.0/updates.c
Examining data/reprepro-5.3.0/release.c
Examining data/reprepro-5.3.0/dpkgversions.c
Examining data/reprepro-5.3.0/checks.c
Examining data/reprepro-5.3.0/sources.c
Examining data/reprepro-5.3.0/binaries.c
Examining data/reprepro-5.3.0/reference.c
Examining data/reprepro-5.3.0/files.c
Examining data/reprepro-5.3.0/guesscomponent.c
Examining data/reprepro-5.3.0/uploaderslist.c
Examining data/reprepro-5.3.0/incoming.c
Examining data/reprepro-5.3.0/changes.c
Examining data/reprepro-5.3.0/log.c
Examining data/reprepro-5.3.0/hooks.c
Examining data/reprepro-5.3.0/freespace.c
Examining data/reprepro-5.3.0/database.c
Examining data/reprepro-5.3.0/configparser.c
Examining data/reprepro-5.3.0/copypackages.c
Examining data/reprepro-5.3.0/remoterepository.c
Examining data/reprepro-5.3.0/atoms.c
Examining data/reprepro-5.3.0/pool.c
Examining data/reprepro-5.3.0/rredpatch.c
Examining data/reprepro-5.3.0/diffindex.c
Examining data/reprepro-5.3.0/printlistformat.c
Examining data/reprepro-5.3.0/globmatch.c
Examining data/reprepro-5.3.0/needbuild.c
Examining data/reprepro-5.3.0/archallflood.c
Examining data/reprepro-5.3.0/byhandhook.c
Examining data/reprepro-5.3.0/sourcecheck.c
Examining data/reprepro-5.3.0/sizes.c
Examining data/reprepro-5.3.0/descriptions.c
Examining data/reprepro-5.3.0/outhook.c
Examining data/reprepro-5.3.0/debfile.c
Examining data/reprepro-5.3.0/ar.c
Examining data/reprepro-5.3.0/extractcontrol.c
Examining data/reprepro-5.3.0/names.c
Examining data/reprepro-5.3.0/dirs.c
Examining data/reprepro-5.3.0/signature.c
Examining data/reprepro-5.3.0/chunks.c
Examining data/reprepro-5.3.0/mprintf.c
Examining data/reprepro-5.3.0/md5.c
Examining data/reprepro-5.3.0/sha256.c
Examining data/reprepro-5.3.0/sha1.c
Examining data/reprepro-5.3.0/checksums.c
Examining data/reprepro-5.3.0/strlist.c
Examining data/reprepro-5.3.0/chunkedit.c
Examining data/reprepro-5.3.0/tool.c
Examining data/reprepro-5.3.0/filecntl.c
Examining data/reprepro-5.3.0/readtextfile.c
Examining data/reprepro-5.3.0/sourceextraction.c
Examining data/reprepro-5.3.0/uncompression.c
Examining data/reprepro-5.3.0/package.h
Examining data/reprepro-5.3.0/diffindex.h
Examining data/reprepro-5.3.0/rredpatch.h
Examining data/reprepro-5.3.0/indexfile.h
Examining data/reprepro-5.3.0/uploaderslist.h
Examining data/reprepro-5.3.0/chunkedit.h
Examining data/reprepro-5.3.0/contents.h
Examining data/reprepro-5.3.0/filelist.h
Examining data/reprepro-5.3.0/ar.h
Examining data/reprepro-5.3.0/pull.h
Examining data/reprepro-5.3.0/donefile.h
Examining data/reprepro-5.3.0/optionsfile.h
Examining data/reprepro-5.3.0/trackingt.h
Examining data/reprepro-5.3.0/tracking.h
Examining data/reprepro-5.3.0/globals.h
Examining data/reprepro-5.3.0/exports.h
Examining data/reprepro-5.3.0/checkin.h
Examining data/reprepro-5.3.0/dpkgversions.h
Examining data/reprepro-5.3.0/filterlist.h
Examining data/reprepro-5.3.0/ignore.h
Examining data/reprepro-5.3.0/termdecide.h
Examining data/reprepro-5.3.0/terms.h
Examining data/reprepro-5.3.0/override.h
Examining data/reprepro-5.3.0/downloadcache.h
Examining data/reprepro-5.3.0/aptmethod.h
Examining data/reprepro-5.3.0/target.h
Examining data/reprepro-5.3.0/upgradelist.h
Examining data/reprepro-5.3.0/checkindsc.h
Examining data/reprepro-5.3.0/checkindeb.h
Examining data/reprepro-5.3.0/debfile.h
Examining data/reprepro-5.3.0/distribution.h
Examining data/reprepro-5.3.0/signature_p.h
Examining data/reprepro-5.3.0/signature.h
Examining data/reprepro-5.3.0/strlist.h
Examining data/reprepro-5.3.0/updates.h
Examining data/reprepro-5.3.0/mprintf.h
Examining data/reprepro-5.3.0/error.h
Examining data/reprepro-5.3.0/release.h
Examining data/reprepro-5.3.0/names.h
Examining data/reprepro-5.3.0/checks.h
Examining data/reprepro-5.3.0/sources.h
Examining data/reprepro-5.3.0/binaries.h
Examining data/reprepro-5.3.0/reference.h
Examining data/reprepro-5.3.0/chunks.h
Examining data/reprepro-5.3.0/files.h
Examining data/reprepro-5.3.0/dirs.h
Examining data/reprepro-5.3.0/md5.h
Examining data/reprepro-5.3.0/guesscomponent.h
Examining data/reprepro-5.3.0/incoming.h
Examining data/reprepro-5.3.0/changes.h
Examining data/reprepro-5.3.0/log.h
Examining data/reprepro-5.3.0/hooks.h
Examining data/reprepro-5.3.0/freespace.h
Examining data/reprepro-5.3.0/database.h
Examining data/reprepro-5.3.0/database_p.h
Examining data/reprepro-5.3.0/configparser.h
Examining data/reprepro-5.3.0/sha256.h
Examining data/reprepro-5.3.0/sha1.h
Examining data/reprepro-5.3.0/filecntl.h
Examining data/reprepro-5.3.0/readtextfile.h
Examining data/reprepro-5.3.0/checksums.h
Examining data/reprepro-5.3.0/sourceextraction.h
Examining data/reprepro-5.3.0/copypackages.h
Examining data/reprepro-5.3.0/remoterepository.h
Examining data/reprepro-5.3.0/uncompression.h
Examining data/reprepro-5.3.0/atoms.h
Examining data/reprepro-5.3.0/pool.h
Examining data/reprepro-5.3.0/printlistformat.h
Examining data/reprepro-5.3.0/globmatch.h
Examining data/reprepro-5.3.0/needbuild.h
Examining data/reprepro-5.3.0/archallflood.h
Examining data/reprepro-5.3.0/byhandhook.h
Examining data/reprepro-5.3.0/sourcecheck.h
Examining data/reprepro-5.3.0/sizes.h
Examining data/reprepro-5.3.0/descriptions.h
Examining data/reprepro-5.3.0/outhook.h
Examining data/reprepro-5.3.0/indexfile.c

FINAL RESULTS:

data/reprepro-5.3.0/main.c:3066:9:  [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.
		ret = readlink(linkname, buffer, bufsize - 4);
data/reprepro-5.3.0/main.c:5114:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		len = readlink("/proc/self/fd/0", terminalname, 1023);
data/reprepro-5.3.0/aptmethod.c:366:9:  [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.
		(void)execl(methodname, methodname, ENDOFARGUMENTS);
data/reprepro-5.3.0/aptmethod.c:482: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(s+new_len, todo->uri + old_len);
data/reprepro-5.3.0/byhandhook.c:181:9:  [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.
		(void)execl(h->script, h->script, codename,
data/reprepro-5.3.0/checks.c:74:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/checks.c:82:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/configparser.h:132:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/configparser.h:148:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/configparser.h:165:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/configparser.h:186:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/configparser.h:197:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, \
data/reprepro-5.3.0/exports.c:359:9:  [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.
		(void)execl(hook, hook, release_dirofdist(release),
data/reprepro-5.3.0/extractcontrol.c:87:9:  [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.
		ret = execl("/usr/bin/ar",
data/reprepro-5.3.0/extractcontrol.c:114:3:  [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("/bin/tar", "tar", "-xOzf", "-",
data/reprepro-5.3.0/extractcontrol.c:298:9:  [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.
		ret = execl("/usr/bin/ar",
data/reprepro-5.3.0/extractcontrol.c:325:3:  [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("/bin/tar", "tar", "-tzf", "-", ENDOFARGUMENTS);
data/reprepro-5.3.0/ignore.h:57:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 	fprintf(stderr, ## __VA_ARGS__); \
data/reprepro-5.3.0/incoming.c:2470:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, tried?"No distribution accepting '%s' (i.e. none of the candidate distributions allowed inclusion)!\n":
data/reprepro-5.3.0/log.c:603:9:  [4] (shell) execv:
  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.
		(void)execv(p->arguments[0], p->arguments);
data/reprepro-5.3.0/main.c:4910:8:  [4] (shell) execv:
  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.
	(void)execv(endhook, argv);
data/reprepro-5.3.0/mprintf.h:9:69:  [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.
/*@null@*/char * mprintf(const char *, ...) __attribute__ ((format (printf, 1, 2)));
data/reprepro-5.3.0/outhook.c:119:9:  [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.
		(void)execl(scriptname, scriptname, logfilename, (char*)NULL);
data/reprepro-5.3.0/rredtool.c:274:3:  [4] (shell) execvp:
  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.
		execvp(argv[0], (char * const *)argv);
data/reprepro-5.3.0/rredtool.c:703:3:  [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("gzip", "gzip", "-9", (char*)NULL);
data/reprepro-5.3.0/rredtool.c:1335:5:  [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(
data/reprepro-5.3.0/signature.c:62:6:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	p = getpass(msg);
data/reprepro-5.3.0/signedfile.c:263:9:  [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.
		(void)execl(command, command, filename,
data/reprepro-5.3.0/uncompression.c:105:3:  [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(extern_uncompressors[c], extern_uncompressors[c],
data/reprepro-5.3.0/uncompression.c:312: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(setting, X_OK) != 0)
data/reprepro-5.3.0/uncompression.c:334:6:  [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.
					access(program, X_OK) != 0) {
data/reprepro-5.3.0/updates.c:1398:3:  [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(listhook, listhook, oldfilename, newfilename,
data/reprepro-5.3.0/updates.c:1509:3:  [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("sh", "sh", "-c", shellhook, ENDOFARGUMENTS);
data/reprepro-5.3.0/uploaderslist.c:119:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, format "\n" , ##  __VA_ARGS__); \
data/reprepro-5.3.0/uploaderslist.c:124:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, format "\n" , ##  __VA_ARGS__); \
data/reprepro-5.3.0/uploaderslist.c:129:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, format "\n" , ##  __VA_ARGS__); \
data/reprepro-5.3.0/configparser.c:146:22:  [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.
		n = calc_dirconcat(getenv("HOME"), filename + 2);
data/reprepro-5.3.0/main.c:5039:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "+fVvshb:P:i:A:C:S:T:", longopts, NULL)) != -1) {
data/reprepro-5.3.0/main.c:5053:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("REPREPRO_BASE_DIR") != NULL) {
data/reprepro-5.3.0/main.c:5054:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		CONFIGDUP(x_basedir, getenv("REPREPRO_BASE_DIR"));
data/reprepro-5.3.0/main.c:5056:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("REPREPRO_CONFIG_DIR") != NULL) {
data/reprepro-5.3.0/main.c:5057:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		CONFIGDUP(x_confdir, getenv("REPREPRO_CONFIG_DIR"));
data/reprepro-5.3.0/main.c:5110:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (guessgpgtty && (getenv("GPG_TTY")==NULL) && isatty(0)) {
data/reprepro-5.3.0/rredtool.c:214:12:  [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.
	tempdir = getenv("TMPDIR");
data/reprepro-5.3.0/rredtool.c:216:13:  [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.
		tempdir = getenv("TEMPDIR");
data/reprepro-5.3.0/rredtool.c:1329:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((i = getopt_long(argc, (char**)argv, "+hVDmpR", options, NULL)) != -1) {
data/reprepro-5.3.0/tool.c:2987:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "+hi:s:", longopts, NULL)) != -1) {
data/reprepro-5.3.0/uncompression.c:316:10:  [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.
		path = getenv("PATH");
data/reprepro-5.3.0/aptmethod.c:481:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(s, method->fallbackbaseuri, new_len);
data/reprepro-5.3.0/aptmethod.c:686:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 * const method_hash_names[cs_COUNT] =
data/reprepro-5.3.0/aptmethod.c:692:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *hashes[cs_COUNT];
data/reprepro-5.3.0/ar.c:44: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 ah_filename[16];
data/reprepro-5.3.0/ar.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 ah_date[12];
data/reprepro-5.3.0/ar.c:46: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 ah_uid[6];
data/reprepro-5.3.0/ar.c:47: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 ah_gid[6];
data/reprepro-5.3.0/ar.c:48: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 ah_mode[8];
data/reprepro-5.3.0/ar.c:49: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 ah_size[10];
data/reprepro-5.3.0/ar.c:50: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 ah_magictrailer[2];
data/reprepro-5.3.0/ar.c:88:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[sizeof(AR_MAGIC)];
data/reprepro-5.3.0/ar.c:96: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).
	ar->fd = open(filename, O_NOCTTY|O_RDONLY);
data/reprepro-5.3.0/atoms.c:29:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const packagetypes[4] = { "!!NONE!!", "dsc", "deb", "udeb" };
data/reprepro-5.3.0/atoms.c:33: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.
static const char * const types[4] = {
data/reprepro-5.3.0/binaries.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const deb_checksum_headers[cs_COUNT] = {
data/reprepro-5.3.0/binaries.c:63:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *checksums[cs_COUNT];
data/reprepro-5.3.0/checksums.c:45:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const release_checksum_names[cs_hashCOUNT] = {
data/reprepro-5.3.0/checksums.c:76: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.
static const char * const hash_name[cs_COUNT] =
data/reprepro-5.3.0/checksums.c:83:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
retvalue checksums_init(/*@out@*/struct checksums **checksums_p, char *hashes[cs_COUNT]) {
data/reprepro-5.3.0/checksums.c:169: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, hashes[type], hashlens[type]);
data/reprepro-5.3.0/checksums.c:180:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(d, hashes[cs_md5sum], hashlens[cs_md5sum]);
data/reprepro-5.3.0/checksums.c:186: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(d, size, hashlens[cs_length] + 1);
data/reprepro-5.3.0/checksums.c:236: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, hashes[type].start, hashes[type].len);
data/reprepro-5.3.0/checksums.c:247: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, hashes[cs_md5sum].start, hashes[cs_md5sum].len);
data/reprepro-5.3.0/checksums.c:253: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(d, hashes[cs_length].start, hashes[cs_length].len);
data/reprepro-5.3.0/checksums.c:384: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(n, checksums, sizeof(struct checksums) + len + 1);
data/reprepro-5.3.0/checksums.c:800:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *filelines[cs_hashCOUNT];
data/reprepro-5.3.0/checksums.c:853: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(p, checksums_hashpart(c, cs),
data/reprepro-5.3.0/checksums.c:858: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(p, checksums_hashpart(c, cs_length),
data/reprepro-5.3.0/checksums.c:862: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(p, a->names.values[i], filenamelen[i]);
data/reprepro-5.3.0/checksums.c:919: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(&n[1], a->checksums, count*sizeof(struct checksums*));
data/reprepro-5.3.0/checksums.c:1005:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(source, O_RDONLY);
data/reprepro-5.3.0/checksums.c:1013:10:  [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).
	outfd = open(destination, O_NOCTTY|O_WRONLY|O_CREAT|O_EXCL, 0666);
data/reprepro-5.3.0/checksums.c:1139: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.
static const char tab[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
data/reprepro-5.3.0/checksums.c:1143: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 md5buffer[MD5_DIGEST_SIZE], sha1buffer[SHA1_DIGEST_SIZE],
data/reprepro-5.3.0/checksums.c:1228:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(fullfilename, O_RDONLY);
data/reprepro-5.3.0/checksums.c:1276:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(source, O_RDONLY);
data/reprepro-5.3.0/checksums.c:1284:10:  [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).
	outfd = open(destination, O_NOCTTY|O_WRONLY|O_CREAT|O_EXCL, 0666);
data/reprepro-5.3.0/checksums.c:1299: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).
				outfd = open(destination,
data/reprepro-5.3.0/checksums.c:1399:7:  [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(tempfilename, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666);
data/reprepro-5.3.0/checksums.h:48:55:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
retvalue checksums_init(/*@out@*/struct checksums **, char *hashes[cs_COUNT]);
data/reprepro-5.3.0/chunkedit.c:302: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(n+len, chunk + f->startofs, l);
data/reprepro-5.3.0/chunkedit.c:310: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(n+len, ef->field, ef->len_field);
data/reprepro-5.3.0/chunkedit.c:316: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(n+len, ef->data, ef->len_data);
data/reprepro-5.3.0/chunkedit.c:325: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(n+len, v, l);
data/reprepro-5.3.0/chunkedit.c:334: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(n+len, ef->lines[i].words[j],
data/reprepro-5.3.0/chunkedit.c:380: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(n+len, p, l);
data/reprepro-5.3.0/chunkedit.c:404: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(n+len, chunk + f->startofs, l);
data/reprepro-5.3.0/chunkedit.c:412: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(n+len, ef->field, ef->len_field);
data/reprepro-5.3.0/chunkedit.c:418: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(n+len, ef->data, ef->len_data);
data/reprepro-5.3.0/chunkedit.c:427: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(n+len, v, l);
data/reprepro-5.3.0/chunkedit.c:436: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(n+len, ef->lines[i].words[j],
data/reprepro-5.3.0/chunks.c:491: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(n, f->field, f->len_field);
data/reprepro-5.3.0/chunks.c:495: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(n, f->data, f->len_data);
data/reprepro-5.3.0/chunks.c:525: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(n, c, ce -c);
data/reprepro-5.3.0/chunks.c:541: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(n, f->field, f->len_field);
data/reprepro-5.3.0/chunks.c:545: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(n, f->data, f->len_data);
data/reprepro-5.3.0/chunks.c:679: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(n, firstfieldname, field_len); n += field_len;
data/reprepro-5.3.0/chunks.c:682: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(n, data, data_len); n += data_len;
data/reprepro-5.3.0/chunks.c:705: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(n, c, ce-c);
data/reprepro-5.3.0/configparser.c:176:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 key[100];
data/reprepro-5.3.0/configparser.c:200:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	iter.f = fopen(iter.filename, "r");
data/reprepro-5.3.0/database.c:105:7:  [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(lockfile, O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW|O_NOCTTY,
data/reprepro-5.3.0/database.c:119:10:  [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(lockfile, O_WRONLY|O_CREAT|O_EXCL
data/reprepro-5.3.0/database.c:266: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).
	database->open(database, NULL, filename, name, type, flags, 0664)
data/reprepro-5.3.0/database.c:270: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).
	database->open(database, NULL, filename, name, type, flags, 0664)
data/reprepro-5.3.0/database.c:274: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).
	database->open(database, filename, name, type, flags, 0664)
data/reprepro-5.3.0/database.c:559:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[21];
data/reprepro-5.3.0/database.c:599:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(versionfilename, "r");
data/reprepro-5.3.0/database.c:715:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(versionfilename, "w");
data/reprepro-5.3.0/descriptions.c:75: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.
static const char tab[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
data/reprepro-5.3.0/descriptions.c:83: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 md5buffer[MD5_DIGEST_SIZE];
data/reprepro-5.3.0/descriptions.c:173: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 found[2 * MD5_DIGEST_SIZE + 1];
data/reprepro-5.3.0/donefile.c:63: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).
	done->file = fopen(done->tempfilename, "w+");
data/reprepro-5.3.0/donefile.c:160: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).
	done->file = fopen(done->filename, "r");
data/reprepro-5.3.0/exports.c:68: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(buffer, compression_names[ic], l);
data/reprepro-5.3.0/exports.c:81: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(buffer, "script: ");
data/reprepro-5.3.0/exports.c:98:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer, hook, buffersize-5);
data/reprepro-5.3.0/exports.c:104:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buffer, hook, l);
data/reprepro-5.3.0/exports.c:314:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000];
data/reprepro-5.3.0/exports.c:466:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[100];
data/reprepro-5.3.0/filelist.c:115: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(p->name, section, section_len);
data/reprepro-5.3.0/filelist.c:117: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(p->name+section_len+1, name, name_len+1);
data/reprepro-5.3.0/filelist.c:286: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(d->name, name, namelen);
data/reprepro-5.3.0/filelist.c:539: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((*buffer_p) + ofs, dir->name, len);
data/reprepro-5.3.0/filelist.c:651: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(c->filelist + c->len, name, dirlen);
data/reprepro-5.3.0/filelist.c:666: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->filelist + c->len, name, name_len);
data/reprepro-5.3.0/filterlist.c:93:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[1001];
data/reprepro-5.3.0/filterlist.c:209:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "r");
data/reprepro-5.3.0/freespace.c:153:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[l+1];
data/reprepro-5.3.0/freespace.c:167: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(buffer, filename, l);
data/reprepro-5.3.0/incoming.c:2511:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char date[16], *dir;
data/reprepro-5.3.0/incoming.c:2527: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(date, "timeerror");
data/reprepro-5.3.0/log.c:124:16:  [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).
	logfile->fd = open(logfile->filename,
data/reprepro-5.3.0/main.c:338: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.
	const unsigned char *dirs[256];
data/reprepro-5.3.0/main.c:487:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[2000], *c, *m;
data/reprepro-5.3.0/main.c:590:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[5000], *nl;
data/reprepro-5.3.0/main.c:626:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[5000], *nl;
data/reprepro-5.3.0/main.c:1504:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[5000], *nl;
data/reprepro-5.3.0/main.c:1529:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[5000], *nl;
data/reprepro-5.3.0/main.c:4901:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 exitcode[4];
data/reprepro-5.3.0/main.c:4907: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(exitcode, "255", 4);
data/reprepro-5.3.0/main.c:5111: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 terminalname[1024];
data/reprepro-5.3.0/md5.c:89: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((md5byte *)ctx->in + 64 - t, buf, len);
data/reprepro-5.3.0/md5.c:93: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((md5byte *)ctx->in + 64 - t, buf, t);
data/reprepro-5.3.0/md5.c:101: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->in, buf, 64);
data/reprepro-5.3.0/md5.c:109: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->in, buf, len);
data/reprepro-5.3.0/md5.c:144: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(digest, ctx->buf, 16);
data/reprepro-5.3.0/md5.h:39:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void MD5Final(/*@out@*/unsigned char digest[MD5_DIGEST_SIZE], struct MD5Context *context);
data/reprepro-5.3.0/mprintf.c:66: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(r, str, n);
data/reprepro-5.3.0/names.c:133: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(p, name, name_l); p+=name_l;
data/reprepro-5.3.0/names.c:135: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(p, version, version_l); p+=version_l;
data/reprepro-5.3.0/names.c:142:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, architectures->values[i], a_l);
data/reprepro-5.3.0/names.c:146: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(p, ".changes", 9); p += 9;
data/reprepro-5.3.0/optionsfile.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1000];
data/reprepro-5.3.0/optionsfile.c:42:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "r");
data/reprepro-5.3.0/override.c:236:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1001];
data/reprepro-5.3.0/override.c:245: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).
	file = fopen(fn, "r");
data/reprepro-5.3.0/pool.c:115: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(node->sourcename, source, p - source);
data/reprepro-5.3.0/pool.c:138: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((*p) + 1, name, l + 1);
data/reprepro-5.3.0/pool.c:215:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(source, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/pool.c:300:7:  [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(firsttry, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666);
data/reprepro-5.3.0/pool.c:315: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(firsttry, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666);
data/reprepro-5.3.0/pool.c:338: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(try, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666);
data/reprepro-5.3.0/readtextfile.c:116:7:  [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(source, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/release.c:387:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *filename[ic_count];
data/reprepro-5.3.0/release.c:595:10:  [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).
	f->fd = open(f->fulltemporaryfilename,
data/reprepro-5.3.0/release.c:732: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.
static const char * const ics[ic_count] = { "", ".gz"
data/reprepro-5.3.0/release.c:924: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(p, "../", 3);
data/reprepro-5.3.0/release.c:927: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(p, target + common_len, 1 + t_len - common_len);
data/reprepro-5.3.0/release.c:1403: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(file->buffer + file->waiting_bytes, data, len);
data/reprepro-5.3.0/release.c:1408: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(file->buffer + file->waiting_bytes, data, free_bytes);
data/reprepro-5.3.0/release.c:1417: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(file->buffer, data, INPUT_BUFFER_SIZE);
data/reprepro-5.3.0/release.c:1423: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(file->buffer, data, len);
data/reprepro-5.3.0/release.c:1565:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[100], untilbuffer[100];
data/reprepro-5.3.0/release.c:1571:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 * const release_checksum_headers[cs_hashCOUNT] =
data/reprepro-5.3.0/remoterepository.c:165: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.
	const char *parts[MAXPARTS];
data/reprepro-5.3.0/remoterepository.c:249: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(p, global.listdir, listdirlen);
data/reprepro-5.3.0/remoterepository.c:254: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(p, basefilename, len); p += len;
data/reprepro-5.3.0/remoterepository.c:411: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.
	static char hex[16] = "0123456789ABCDEF";
data/reprepro-5.3.0/remoterepository.c:436: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.
	const char *fields[count];
data/reprepro-5.3.0/remoterepository.c:461: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(result, global.listdir, listdir_len);
data/reprepro-5.3.0/remoterepository.c:470: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(p, type, type_len + 1);
data/reprepro-5.3.0/remoterepository.c:478: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.
	const char *fields[count];
data/reprepro-5.3.0/remoterepository.c:596: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(n->ignorehashes, ignorehashes, sizeof(bool [cs_hashCOUNT]));
data/reprepro-5.3.0/remoterepository.c:796:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline retvalue release_getchecksums(const char *releasefile, const char *chunk, const bool ignorehash[cs_hashCOUNT], struct checksumsarray *out) {
data/reprepro-5.3.0/remoterepository.c:796:76:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline retvalue release_getchecksums(const char *releasefile, const char *chunk, const bool ignorehash[cs_hashCOUNT], struct checksumsarray *out) {
data/reprepro-5.3.0/remoterepository.c:1940:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(ri->cachefilename, "w");
data/reprepro-5.3.0/rredpatch.c:118:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_NOCTTY|O_RDONLY);
data/reprepro-5.3.0/rredpatch.c:590:6:  [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).
	i = fopen(source, "r");
data/reprepro-5.3.0/rredpatch.c:649:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[30];
data/reprepro-5.3.0/rredpatch.c:737:6:  [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).
	i = fopen(source, "r");
data/reprepro-5.3.0/rredtool.c:78: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.
static const char tab[16] = {'0', '1', '2', '3', '4', '5', '6', '7',
data/reprepro-5.3.0/rredtool.c:82:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 sha1[2*SHA1_DIGEST_SIZE+1];
data/reprepro-5.3.0/rredtool.c:88: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 sha1buffer[SHA1_DIGEST_SIZE];
data/reprepro-5.3.0/rredtool.c:115:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(fullfilename, O_RDONLY);
data/reprepro-5.3.0/rredtool.c:228:7:  [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(filename);
data/reprepro-5.3.0/rredtool.c:230:25:  [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).
#error Need mkostemp or mkstemp
data/reprepro-5.3.0/rredtool.c:394: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(oldindex->hash.sha1, p, 2 * SHA1_DIGEST_SIZE);
data/reprepro-5.3.0/rredtool.c:428: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(o->hash.sha1, q, 2 * SHA1_DIGEST_SIZE);
data/reprepro-5.3.0/rredtool.c:523:7:  [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(fullfilename, O_RDONLY);
data/reprepro-5.3.0/rredtool.c:613:60:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 retvalue new_diff_file(struct patch **root_p, const char *directory, const char *relfilename, const char *since, const char date[DATELEN+1], struct modification *r) {
data/reprepro-5.3.0/rredtool.c:613:83:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 retvalue new_diff_file(struct patch **root_p, const char *directory, const char *relfilename, const char *since, const char date[DATELEN+1], struct modification *r) {
data/reprepro-5.3.0/rredtool.c:613:108:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 retvalue new_diff_file(struct patch **root_p, const char *directory, const char *relfilename, const char *since, const char date[DATELEN+1], struct modification *r) {
data/reprepro-5.3.0/rredtool.c:613:127:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 retvalue new_diff_file(struct patch **root_p, const char *directory, const char *relfilename, const char *since, const char date[DATELEN+1], struct modification *r) {
data/reprepro-5.3.0/rredtool.c:642: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(p->fullfilename, O_CREAT|O_EXCL|O_NOCTTY|O_WRONLY, 0666);
data/reprepro-5.3.0/rredtool.c:787: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(newindexfilename,
data/reprepro-5.3.0/rredtool.c:885: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.
	const char *argv[6];
data/reprepro-5.3.0/rredtool.c:905: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.
	const char *args[4];
data/reprepro-5.3.0/rredtool.c:931:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char date[DATELEN + 1];
data/reprepro-5.3.0/rredtool.c:1272:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 retvalue handle_diff_dir(const char *args[4]) {
data/reprepro-5.3.0/rredtool.c:1348: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).
				max_patch_count = atoi(optarg);
data/reprepro-5.3.0/sha1.c:160: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/reprepro-5.3.0/sha1.c:168: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/reprepro-5.3.0/sha256.c:29:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/reprepro-5.3.0/sha256.c:187: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[bytes], fillbuf, pad);
data/reprepro-5.3.0/sha256.c:193: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 + bytes + pad + 4, &bitslow, 4);
data/reprepro-5.3.0/sha256.c:195: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 + bytes + pad, &bitshigh, 4);
data/reprepro-5.3.0/sha256.c:217: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 (&ctx->buffer[left_over], buffer, add);
data/reprepro-5.3.0/sha256.c:226: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, &ctx->buffer[(left_over + add) & ~63],
data/reprepro-5.3.0/sha256.c:247:28:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    sha256_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/reprepro-5.3.0/sha256.c:264: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 (&ctx->buffer[left_over], buffer, len);
data/reprepro-5.3.0/sha256.c:270: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, &ctx->buffer[64], left_over);
data/reprepro-5.3.0/sha256.h:11: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 buffer[128]; /* NB: always correctly aligned for uint32_t.  */
data/reprepro-5.3.0/signature_check.c:565:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 timebuffer[20];
data/reprepro-5.3.0/signature_check.c:676:10:  [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).
	gpgfd = open(releasegpg, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/signature_check.c:714:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/signedfile.c:105:7:  [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(signaturename, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_NOFOLLOW, 0666);
data/reprepro-5.3.0/signedfile.c:402: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(f->buffer + f->bufferlen, data, len);
data/reprepro-5.3.0/signedfile.c:421:7:  [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(newplainfilename, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, 0666);
data/reprepro-5.3.0/sourceextraction.c:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFSIZE];
data/reprepro-5.3.0/sourceextraction.c:526: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.
	static char mybuffer[4096];
data/reprepro-5.3.0/strlist.c:248: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, prefix, prefix_len);
data/reprepro-5.3.0/strlist.c:252: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(n, list->values[i], line_len);
data/reprepro-5.3.0/strlist.c:255: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(n, infix, infix_len);
data/reprepro-5.3.0/strlist.c:258: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(n, suffix, suffix_len);
data/reprepro-5.3.0/tool.c:561: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.
	const char * const hashname[cs_hashCOUNT] = {"Md5", "Sha1", "Sha256" };
data/reprepro-5.3.0/tool.c:1101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 datebuffer[100];
data/reprepro-5.3.0/tracking.c:389: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(data, pkg->sourceversion, versionsize);
data/reprepro-5.3.0/tracking.c:397: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(d, pkg->filekeys.values[i], l + 1);
data/reprepro-5.3.0/tracking.c:405: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 countstring[MAXREFCOUNTOCTETS];
data/reprepro-5.3.0/tracking.c:418: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, countstring+j, 7 - j);
data/reprepro-5.3.0/uncompression.c:44:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const uncompression_suffix[c_COUNT] = {
data/reprepro-5.3.0/uncompression.c:48:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const uncompression_option[c_COUNT] = {
data/reprepro-5.3.0/uncompression.c:51:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const uncompression_config[c_COUNT] = {
data/reprepro-5.3.0/uncompression.c:55: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.
/*@null@*/ char *extern_uncompressors[c_COUNT] = {
data/reprepro-5.3.0/uncompression.c:185: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).
	stdinfd = open(t->compressedfilename, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/uncompression.c:194: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).
	stdoutfd = open(t->uncompressedfilename,
data/reprepro-5.3.0/uncompression.c:361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/reprepro-5.3.0/uncompression.c:370: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).
	destfd = open(destination, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY, 0666);
data/reprepro-5.3.0/uncompression.c:792: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).
		f->fd = open(filename, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/uncompression.c:823: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(f->filename, O_RDONLY|O_NOCTTY);
data/reprepro-5.3.0/uncompression.c:1431: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.
	static char errorbuffer[ERRORBUFFERSIZE];
data/reprepro-5.3.0/uncompression.h:5:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char * const uncompression_suffix[c_COUNT];
data/reprepro-5.3.0/uncompression.h:6: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.
extern /*@null@*/ char *extern_uncompressors[c_COUNT];
data/reprepro-5.3.0/uncompression.h:8:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char * const uncompression_option[c_COUNT];
data/reprepro-5.3.0/uncompression.h:9:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char * const uncompression_config[c_COUNT];
data/reprepro-5.3.0/updates.c:1457:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	infd = open(oldfilename, O_RDONLY|O_NOCTTY|O_NOFOLLOW);
data/reprepro-5.3.0/updates.c:1467:10:  [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).
	outfd = open(newfilename,
data/reprepro-5.3.0/uploaderslist.c:1363:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fbp->f = fopen(fbp->filename, "r");
data/reprepro-5.3.0/uploaderslist.c:1424:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1025];
data/reprepro-5.3.0/aptmethod.c:473: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).
		old_len = strlen(method->baseuri);
data/reprepro-5.3.0/aptmethod.c:474: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).
		new_len = strlen(method->fallbackbaseuri);
data/reprepro-5.3.0/aptmethod.c:475: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(todo->uri);
data/reprepro-5.3.0/aptmethod.c:672: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).
		method->output_length = strlen(method->command);
data/reprepro-5.3.0/aptmethod.c:946:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(method->mstdout, method->inputbuffer + method->alreadyread,
data/reprepro-5.3.0/aptmethod.c:1029: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).
		method->output_length = strlen(method->command);
data/reprepro-5.3.0/ar.c:66:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		s = read(fd, buf, count);
data/reprepro-5.3.0/atoms.c:125: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).
		size_t len = strlen(name);
data/reprepro-5.3.0/atoms.c:139: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).
		size_t len = strlen(name);
data/reprepro-5.3.0/checkin.c:921: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->basename);
data/reprepro-5.3.0/checkin.c:927: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).
			size_t fl = strlen(f->basename);
data/reprepro-5.3.0/checkindeb.c:251:6:  [1] (buffer) strlen:
  Does not handle 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(pkg->deb.name);
data/reprepro-5.3.0/checksums.c:105: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).
		hashlens[cs_md5sum] = strlen(hashes[cs_md5sum]);
data/reprepro-5.3.0/checksums.c:106: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).
	hashlens[cs_length] = strlen(size);
data/reprepro-5.3.0/checksums.c:149: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).
		len += strlen(" :x:") + hashlens[type];
data/reprepro-5.3.0/checksums.c:218: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).
		len += strlen(" :x:") + hashes[type].len;
data/reprepro-5.3.0/checksums.c:270: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).
	size_t len = strlen(combinedchecksum);
data/reprepro-5.3.0/checksums.c:812: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).
		filenamelen[i] = strlen(a->names.values[i]);
data/reprepro-5.3.0/checksums.c:1024:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		sizeread = read(infd, buffer, bufsize);
data/reprepro-5.3.0/checksums.c:1195: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).
	assert (strlen(d) == n->parts[cs_length].len);
data/reprepro-5.3.0/checksums.c:1242:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		sizeread = read(infd, buffer, bufsize);
data/reprepro-5.3.0/checksums.c:1320:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		sizeread = read(infd, buffer, bufsize);
data/reprepro-5.3.0/chunkedit.c:55: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).
	n->len_field = strlen(field);
data/reprepro-5.3.0/chunkedit.c:76: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).
	cef_setdatalen(cef, data, strlen(data));
data/reprepro-5.3.0/chunkedit.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).
		len += 1+strlen(words->values[i]);
data/reprepro-5.3.0/chunkedit.c:123: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->wordlen[i] = strlen(word);
data/reprepro-5.3.0/chunkedit.c:168: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).
		l->wordlen[i + 2] = strlen(word);
data/reprepro-5.3.0/chunkedit.c:322: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).
				size_t l = strlen(v);
data/reprepro-5.3.0/chunkedit.c:424: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).
				size_t l = strlen(v);
data/reprepro-5.3.0/chunks.c:34:6:  [1] (buffer) strlen:
  Does not handle 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);
data/reprepro-5.3.0/chunks.c:468: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 = 2 + strlen(c);
data/reprepro-5.3.0/chunks.c:480:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len_beforethis = strlen(beforethis);
data/reprepro-5.3.0/chunks.c:579: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).
	n->len_field = strlen(field);
data/reprepro-5.3.0/chunks.c:582: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).
		n->len_data = strlen(data);
data/reprepro-5.3.0/chunks.c:599: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).
	n->len_field = strlen(field);
data/reprepro-5.3.0/chunks.c:601: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).
	n->len_data = strlen(data);
data/reprepro-5.3.0/chunks.c:616: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).
	n->len_field = strlen(field);
data/reprepro-5.3.0/chunks.c:631: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).
	n->len_field = strlen(field);
data/reprepro-5.3.0/chunks.c:651: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).
	toadd.len_field = strlen(fieldname);
data/reprepro-5.3.0/chunks.c:653: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).
	toadd.len_data = strlen(data);
data/reprepro-5.3.0/chunks.c:668: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).
	data_len = strlen(data);
data/reprepro-5.3.0/chunks.c:669: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).
	field_len = strlen(firstfieldname);
data/reprepro-5.3.0/chunks.c:673: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 = 2 + strlen(c) + 3 + data_len + field_len;
data/reprepro-5.3.0/configparser.c:69:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:72:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:86:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:89:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:92:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:212:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(iter.f);
data/reprepro-5.3.0/configparser.c:215:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = fgetc(iter.f);
data/reprepro-5.3.0/configparser.c:218:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(iter.f);
data/reprepro-5.3.0/configparser.c:222:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = fgetc(iter.f);
data/reprepro-5.3.0/configparser.c:258:16:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while ((c = fgetc(iter.f)) != EOF && c >= 'a' && c <= 'z') {
data/reprepro-5.3.0/configparser.c:342:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = fgetc(iter.f)) != EOF && c != ':' && c != '\n'
data/reprepro-5.3.0/configparser.c:413:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(iter.f);
data/reprepro-5.3.0/configparser.c:480: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(de->d_name);
data/reprepro-5.3.0/configparser.c:555:6:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:559:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:566:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			c = fgetc(iter->f);
data/reprepro-5.3.0/configparser.c:846:6:  [1] (buffer) strlen:
  Does not handle 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/reprepro-5.3.0/database.c:51:121:  [1] (buffer) strlen:
  Does not handle 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 SETDBT(dbt, datastr) {const char *my = datastr; memset(&dbt, 0, sizeof(dbt)); dbt.data = (void *)my; dbt.size = strlen(my) + 1;}
data/reprepro-5.3.0/database.c:575:6:  [1] (buffer) strlen:
  Does not handle 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(buffer);
data/reprepro-5.3.0/database.c:1040: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).
	size_t valuelen = strlen(value);
data/reprepro-5.3.0/database.c:1254: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 table_adduniqsizedrecord(table, key, data, strlen(data)+1,
data/reprepro-5.3.0/database.c:1423: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).
	size_t valuelen = strlen(value);
data/reprepro-5.3.0/debfilecontents.c:82: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 = filelistcompressor_add(&c, name, strlen(name));
data/reprepro-5.3.0/descriptions.c:88: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).
	MD5Update(&context, (const unsigned char*)description, strlen(description));
data/reprepro-5.3.0/descriptions.c:126: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).
	dlen = strlen(description);
data/reprepro-5.3.0/descriptions.c:163:6:  [1] (buffer) strlen:
  Does not handle 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(deb_description) == dlen) {
data/reprepro-5.3.0/dirs.c:88: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).
	size_t len = strlen(directory);
data/reprepro-5.3.0/dirs.c:150: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).
	size_t len = strlen(directory);
data/reprepro-5.3.0/dirs.c:191: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).
	len = strlen(filename);
data/reprepro-5.3.0/distribution.c:267:6:  [1] (buffer) strlen:
  Does not handle 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(d->fakecomponentprefix);
data/reprepro-5.3.0/exports.c:63: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).
			size_t l = strlen(compression_names[ic]);
data/reprepro-5.3.0/exports.c:87: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).
			size_t l = strlen(hook);
data/reprepro-5.3.0/exports.c:379:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(io[0], buffer + already, 999 - already);
data/reprepro-5.3.0/extractcontrol.c:354:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(pipe_2[0], list+len, listsize-len-1);
data/reprepro-5.3.0/filelist.c:108: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).
	size_t name_len = strlen(name);
data/reprepro-5.3.0/filelist.c:109: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 section_len = strlen(section);
data/reprepro-5.3.0/filelist.c:708: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).
		for (p = olddata ; (l = strlen(p)) != 0 ; p += l + 1) {
data/reprepro-5.3.0/files.c:494: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(filekey);
data/reprepro-5.3.0/files.c:520: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).
				p += strlen(p)+1;
data/reprepro-5.3.0/filterlist.c:267: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).
	size_t len = strlen(filename);
data/reprepro-5.3.0/freespace.c:152: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(filename);
data/reprepro-5.3.0/globals.h:60: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).
#define _D_EXACT_NAMLEN(r) (strlen((r)->d_name))
data/reprepro-5.3.0/globmatch.c:42:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int i, l = strlen(pattern);
data/reprepro-5.3.0/globmatch.c:47:6:  [1] (buffer) strlen:
  Does not handle 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(pattern) > (size_t)INT_MAX)
data/reprepro-5.3.0/guesscomponent.c:65: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).
	section_len = strlen(section);
data/reprepro-5.3.0/guesscomponent.c:77: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).
		size_t len = strlen(component);
data/reprepro-5.3.0/guesscomponent.c:87: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).
		size_t len = strlen(component);
data/reprepro-5.3.0/incoming.c:1046:6:  [1] (buffer) strlen:
  Does not handle 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(file->deb.name);
data/reprepro-5.3.0/incoming.c:1454: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).
		size_t al = strlen(afn);
data/reprepro-5.3.0/incoming.c:1462: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).
			size_t l = strlen(fn);
data/reprepro-5.3.0/incoming.c:2134:6:  [1] (buffer) strlen:
  Does not handle 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/reprepro-5.3.0/incoming.c:2564: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(basefilename);
data/reprepro-5.3.0/incoming.c:2566: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).
		const size_t c_len = strlen(C_SUFFIX);
data/reprepro-5.3.0/main.c:511: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).
		r = checksums_setall(&checksums, m, strlen(m));
data/reprepro-5.3.0/main.c:1304: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->codename);
data/reprepro-5.3.0/main.c:1308: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(p->component);
data/reprepro-5.3.0/main.c:1313: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(v->version);
data/reprepro-5.3.0/main.c:2558:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                newcontrolchunk, strlen(newcontrolchunk));
data/reprepro-5.3.0/main.c:3058: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).
		bufsize = strlen(d->codename)+10;
data/reprepro-5.3.0/mprintf.c:53: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).
	ret = write(fd, buffer, strlen(buffer));
data/reprepro-5.3.0/names.c:120: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).
	name_l = strlen(name);
data/reprepro-5.3.0/names.c:121: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).
	version_l = strlen(version);
data/reprepro-5.3.0/names.c:125: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(architectures->values[i]);
data/reprepro-5.3.0/names.c:138: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).
		size_t a_l = strlen(architectures->values[i]);
data/reprepro-5.3.0/names.h:34: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 ln = strlen(name), ls = strlen(suffix);
data/reprepro-5.3.0/names.h:34: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).
	size_t ln = strlen(name), ls = strlen(suffix);
data/reprepro-5.3.0/needbuild.c:51:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t archstringlen= strlen(archstring);
data/reprepro-5.3.0/needbuild.c:73: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).
				size_t l = strlen(b);
data/reprepro-5.3.0/needbuild.c:198: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).
			size_t al = strlen(a);
data/reprepro-5.3.0/optionsfile.c:53: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(buffer);
data/reprepro-5.3.0/optionsfile.c:61: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(buffer);
data/reprepro-5.3.0/override.c:264: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(buffer);
data/reprepro-5.3.0/pool.c:133: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(name);
data/reprepro-5.3.0/pool.c:227:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((readbytes = read(infd, buffer, bufsize)) > 0) {
data/reprepro-5.3.0/pool.c:458: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).
		size_t fixedpartlen = strlen(global.outdir);
data/reprepro-5.3.0/printlistformat.c:205: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).
			long value_length = strlen(v);
data/reprepro-5.3.0/readtextfile.c:60:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((readbytes = read(fd, buffer + readdata, buffersize-readdata))
data/reprepro-5.3.0/reference.c:61: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).
			neededby, strlen(neededby), false);
data/reprepro-5.3.0/reference.c:119: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).
				identifier, strlen(identifier), true);
data/reprepro-5.3.0/reference.c:159:6:  [1] (buffer) strlen:
  Does not handle 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(neededby);
data/reprepro-5.3.0/release.c:187:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(fakecomponentprefix);
data/reprepro-5.3.0/release.c:188: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).
		codenamelen = strlen(codename);
data/reprepro-5.3.0/release.c:204: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).
		if (suite != NULL && (suitelen = strlen(suite)) > len &&
data/reprepro-5.3.0/release.c:900: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).
	t_len = strlen(target);
data/reprepro-5.3.0/release.c:901: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_len = strlen(linkname);
data/reprepro-5.3.0/release.c:1613:65:  [1] (buffer) strlen:
  Does not handle 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 writestring(s) signedfile_write(release->signedfile, s, strlen(s))
data/reprepro-5.3.0/release.h:55: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).
#define release_writestring(file, data) release_writedata(file, data, strlen(data))
data/reprepro-5.3.0/remoterepository.c:304:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t listdirlen = strlen(global.listdir);
data/reprepro-5.3.0/remoterepository.c:452: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).
	listdir_len = strlen(global.listdir);
data/reprepro-5.3.0/remoterepository.c:454: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).
		type_len = strlen(type);
data/reprepro-5.3.0/remoterepository.c:764: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).
	size_t len = strlen(filename);
data/reprepro-5.3.0/remoterepository.c:989:6:  [1] (buffer) strlen:
  Does not handle 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(ri->cachebasename);
data/reprepro-5.3.0/remoterepository.c:1013:6:  [1] (buffer) strlen:
  Does not handle 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(ri->cachebasename);
data/reprepro-5.3.0/remoterepository.c:1712:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(ri->cachefilename)) == 0) {
data/reprepro-5.3.0/remoterepository.c:1861: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).
		c = ri->patchfilename + strlen(ri->cachefilename);
data/reprepro-5.3.0/rredpatch.c:606:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = getc(i);
data/reprepro-5.3.0/rredpatch.c:613:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((c = getc(i)) != '\n') {
data/reprepro-5.3.0/rredtool.c:138:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		sizeread = read(infd, buffer, bufsize);
data/reprepro-5.3.0/rredtool.c:358: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).
				size_t l = strlen(p->nameprefix);
data/reprepro-5.3.0/rredtool.c:386: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).
#define checkorfail(val) if (e - p < (intptr_t)strlen(val) || memcmp(p, val, strlen(val)) != 0) return RET_NOTHING; else { p += strlen(val); }
data/reprepro-5.3.0/rredtool.c:386:78:  [1] (buffer) strlen:
  Does not handle 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 checkorfail(val) if (e - p < (intptr_t)strlen(val) || memcmp(p, val, strlen(val)) != 0) return RET_NOTHING; else { p += strlen(val); }
data/reprepro-5.3.0/rredtool.c:386:129:  [1] (buffer) strlen:
  Does not handle 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 checkorfail(val) if (e - p < (intptr_t)strlen(val) || memcmp(p, val, strlen(val)) != 0) return RET_NOTHING; else { p += strlen(val); }
data/reprepro-5.3.0/rredtool.c:539:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes_read = read(fd, buffer + available,
data/reprepro-5.3.0/rredtool.c:631: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).
	p->basefilename_len = strlen(p->basefilename);
data/reprepro-5.3.0/rredtool.c:849: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).
		size_t len = strlen(de->d_name);
data/reprepro-5.3.0/signature.c:63: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).
	write(fd, p, strlen(p));
data/reprepro-5.3.0/signature_check.c:185: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(name);
data/reprepro-5.3.0/signature_check.c:250: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).
		s->name_len = strlen(s->name);
data/reprepro-5.3.0/signature_check.c:314: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(sig->fpr);
data/reprepro-5.3.0/signature_check.c:366: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(sig->fpr);
data/reprepro-5.3.0/signature_check.c:866: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).
		len = chunk_extract(chunk, n, strlen(n), false, &n);
data/reprepro-5.3.0/sizes.c:222: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).
		s->codename_len = strlen(d->codename);
data/reprepro-5.3.0/sourceextraction.c:68: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 bl = strlen(basefilename);
data/reprepro-5.3.0/strlist.c:236: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).
	prefix_len = strlen(prefix);
data/reprepro-5.3.0/strlist.c:237: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).
	infix_len = strlen(infix);
data/reprepro-5.3.0/strlist.c:238: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).
	suffix_len = strlen(suffix);
data/reprepro-5.3.0/strlist.c:242: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(list->values[i]);
data/reprepro-5.3.0/strlist.c:251: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).
		line_len = strlen(list->values[i]);
data/reprepro-5.3.0/target.c:111: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).
	len = strlen(fakecomponentprefix);
data/reprepro-5.3.0/target.c:771:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				newcontrolchunk, strlen(newcontrolchunk));
data/reprepro-5.3.0/target.c:833:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				newcontrolchunk, strlen(newcontrolchunk));
data/reprepro-5.3.0/tool.c:364: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 basenamelen = strlen(basefilename);
data/reprepro-5.3.0/tool.c:757: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).
				basefilename, strlen(basefilename),
data/reprepro-5.3.0/tool.c:918: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).
		n->binary = get_binary(changes, n->name, strlen(n->name));
data/reprepro-5.3.0/tool.c:1390: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).
	size_t len = strlen(name);
data/reprepro-5.3.0/tool.c:1446: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).
	nlen = strlen(name);
data/reprepro-5.3.0/tool.c:1460: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).
	vlen = strlen(versionwithoutepoch);
data/reprepro-5.3.0/tool.c:1470: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).
	alen = strlen(architecture);
data/reprepro-5.3.0/tool.c:1562: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(p+1);
data/reprepro-5.3.0/tool.c:1569: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).
			namelen = strlen(name);
data/reprepro-5.3.0/tool.c:1574: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).
				namelen = strlen(name);
data/reprepro-5.3.0/tool.c:1590: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).
			versionlen = strlen(version);
data/reprepro-5.3.0/tool.c:1595: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).
				versionlen = strlen(version);
data/reprepro-5.3.0/tool.c:2354: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).
		file = add_fileentry(c, b, strlen(b), true, NULL);
data/reprepro-5.3.0/tool.c:2503:6:  [1] (buffer) strlen:
  Does not handle 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(fullfilename) > 5 &&
data/reprepro-5.3.0/tool.c:2504: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).
			strcmp(fullfilename+strlen(fullfilename)-5, ".udeb") == 0) {
data/reprepro-5.3.0/tool.c:2609: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).
	deb->binary = get_binary(c, deb->name, strlen(deb->name));
data/reprepro-5.3.0/tool.c:2767: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(filename);
data/reprepro-5.3.0/tool.c:2797: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).
		fp = find_fileentry(c, argv[0], strlen(argv[0]), NULL);
data/reprepro-5.3.0/tracking.c:374: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 versionsize = strlen(pkg->sourceversion)+1;
data/reprepro-5.3.0/tracking.c:382: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(pkg->filekeys.values[i]);
data/reprepro-5.3.0/tracking.c:393: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(pkg->filekeys.values[i]);
data/reprepro-5.3.0/tracking.c:1188: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).
	component_len = strlen(component);
data/reprepro-5.3.0/tracking.c:1189: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).
	arch_len = strlen(architecture);
data/reprepro-5.3.0/uncompression.c:327: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).
				colon = path + strlen(path);
data/reprepro-5.3.0/uncompression.c:602:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(f->fd, f->uncompress.buffer, len);
data/reprepro-5.3.0/uncompression.c:959:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			return read(file->fd, buffer, size);
data/reprepro-5.3.0/uncompression.c:979:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					im->ready = read(file->infd,
data/reprepro-5.3.0/uncompression.c:990:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					return read(file->fd, buffer, size);
data/reprepro-5.3.0/uncompression.c:1005:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			return read(file->fd, buffer, size);
data/reprepro-5.3.0/uncompression.c:1380:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		s = read(file->fd, buffer, size);
data/reprepro-5.3.0/uncompression.c:1402:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			s = read(file->fd, buffer, size);
data/reprepro-5.3.0/uncompression.c:1755: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(uncompression_suffix[c]);
data/reprepro-5.3.0/uploaderslist.c:294: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).
	len = strlen(fingerprint);
data/reprepro-5.3.0/uploaderslist.c:318: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).
	primary_len = strlen(primary_fingerprint);
data/reprepro-5.3.0/uploaderslist.c:1104: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(buffer);
data/reprepro-5.3.0/uploaderslist.c:1497: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).
	len = strlen(filename);

ANALYSIS SUMMARY:

Hits = 469
Lines analyzed = 62231 in approximately 1.62 seconds (38298 lines/second)
Physical Source Lines of Code (SLOC) = 52309
Hits@level = [0] 1472 [1] 200 [2] 221 [3]  12 [4]  34 [5]   2
Hits@level+ = [0+] 1941 [1+] 469 [2+] 269 [3+]  48 [4+]  36 [5+]   2
Hits/KSLOC@level+ = [0+] 37.1064 [1+] 8.96595 [2+] 5.14252 [3+] 0.917624 [4+] 0.688218 [5+] 0.0382343
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.