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/microdc2-0.15.6/lib/alloca.c
Examining data/microdc2-0.15.6/lib/alloca_.h
Examining data/microdc2-0.15.6/lib/argmatch.c
Examining data/microdc2-0.15.6/lib/argmatch.h
Examining data/microdc2-0.15.6/lib/asnprintf.c
Examining data/microdc2-0.15.6/lib/asprintf.c
Examining data/microdc2-0.15.6/lib/basename.c
Examining data/microdc2-0.15.6/lib/dirname.c
Examining data/microdc2-0.15.6/lib/dirname.h
Examining data/microdc2-0.15.6/lib/error.c
Examining data/microdc2-0.15.6/lib/error.h
Examining data/microdc2-0.15.6/lib/exit.h
Examining data/microdc2-0.15.6/lib/exitfail.c
Examining data/microdc2-0.15.6/lib/exitfail.h
Examining data/microdc2-0.15.6/lib/fnmatch.c
Examining data/microdc2-0.15.6/lib/fnmatch_.h
Examining data/microdc2-0.15.6/lib/fnmatch_loop.c
Examining data/microdc2-0.15.6/lib/free.c
Examining data/microdc2-0.15.6/lib/full-read.c
Examining data/microdc2-0.15.6/lib/full-read.h
Examining data/microdc2-0.15.6/lib/full-write.c
Examining data/microdc2-0.15.6/lib/full-write.h
Examining data/microdc2-0.15.6/lib/gai_strerror.c
Examining data/microdc2-0.15.6/lib/getaddrinfo.c
Examining data/microdc2-0.15.6/lib/getaddrinfo.h
Examining data/microdc2-0.15.6/lib/getdelim.c
Examining data/microdc2-0.15.6/lib/getdelim.h
Examining data/microdc2-0.15.6/lib/gethostname.c
Examining data/microdc2-0.15.6/lib/getline.c
Examining data/microdc2-0.15.6/lib/getline.h
Examining data/microdc2-0.15.6/lib/getopt.c
Examining data/microdc2-0.15.6/lib/getopt1.c
Examining data/microdc2-0.15.6/lib/getopt_.h
Examining data/microdc2-0.15.6/lib/getopt_int.h
Examining data/microdc2-0.15.6/lib/gettext.h
Examining data/microdc2-0.15.6/lib/human.c
Examining data/microdc2-0.15.6/lib/human.h
Examining data/microdc2-0.15.6/lib/iconvme.c
Examining data/microdc2-0.15.6/lib/iconvme.h
Examining data/microdc2-0.15.6/lib/intprops.h
Examining data/microdc2-0.15.6/lib/memmem.c
Examining data/microdc2-0.15.6/lib/memmem.h
Examining data/microdc2-0.15.6/lib/minmax.h
Examining data/microdc2-0.15.6/lib/printf-args.c
Examining data/microdc2-0.15.6/lib/printf-args.h
Examining data/microdc2-0.15.6/lib/printf-parse.c
Examining data/microdc2-0.15.6/lib/printf-parse.h
Examining data/microdc2-0.15.6/lib/progname.c
Examining data/microdc2-0.15.6/lib/progname.h
Examining data/microdc2-0.15.6/lib/quote.c
Examining data/microdc2-0.15.6/lib/quote.h
Examining data/microdc2-0.15.6/lib/quotearg.c
Examining data/microdc2-0.15.6/lib/quotearg.h
Examining data/microdc2-0.15.6/lib/safe-read.c
Examining data/microdc2-0.15.6/lib/safe-read.h
Examining data/microdc2-0.15.6/lib/safe-write.c
Examining data/microdc2-0.15.6/lib/safe-write.h
Examining data/microdc2-0.15.6/lib/sig2str.c
Examining data/microdc2-0.15.6/lib/sig2str.h
Examining data/microdc2-0.15.6/lib/size_max.h
Examining data/microdc2-0.15.6/lib/stdbool_.h
Examining data/microdc2-0.15.6/lib/stdint_.h
Examining data/microdc2-0.15.6/lib/stpcpy.c
Examining data/microdc2-0.15.6/lib/stpcpy.h
Examining data/microdc2-0.15.6/lib/strdup.c
Examining data/microdc2-0.15.6/lib/strdup.h
Examining data/microdc2-0.15.6/lib/strftime.c
Examining data/microdc2-0.15.6/lib/strftime.h
Examining data/microdc2-0.15.6/lib/stripslash.c
Examining data/microdc2-0.15.6/lib/strndup.c
Examining data/microdc2-0.15.6/lib/strndup.h
Examining data/microdc2-0.15.6/lib/strnlen.c
Examining data/microdc2-0.15.6/lib/strnlen.h
Examining data/microdc2-0.15.6/lib/strtoimax.c
Examining data/microdc2-0.15.6/lib/strtol.c
Examining data/microdc2-0.15.6/lib/strtoll.c
Examining data/microdc2-0.15.6/lib/strtoul.c
Examining data/microdc2-0.15.6/lib/strtoull.c
Examining data/microdc2-0.15.6/lib/strtoumax.c
Examining data/microdc2-0.15.6/lib/time_r.c
Examining data/microdc2-0.15.6/lib/time_r.h
Examining data/microdc2-0.15.6/lib/vasnprintf.c
Examining data/microdc2-0.15.6/lib/vasnprintf.h
Examining data/microdc2-0.15.6/lib/vasprintf.c
Examining data/microdc2-0.15.6/lib/vasprintf.h
Examining data/microdc2-0.15.6/lib/verify.h
Examining data/microdc2-0.15.6/lib/version-etc.c
Examining data/microdc2-0.15.6/lib/version-etc.h
Examining data/microdc2-0.15.6/lib/xalloc-die.c
Examining data/microdc2-0.15.6/lib/xalloc.h
Examining data/microdc2-0.15.6/lib/xasprintf.c
Examining data/microdc2-0.15.6/lib/xgethostname.c
Examining data/microdc2-0.15.6/lib/xgethostname.h
Examining data/microdc2-0.15.6/lib/xmalloc.c
Examining data/microdc2-0.15.6/lib/xsize.h
Examining data/microdc2-0.15.6/lib/xstrndup.c
Examining data/microdc2-0.15.6/lib/xstrndup.h
Examining data/microdc2-0.15.6/lib/xstrtol.c
Examining data/microdc2-0.15.6/lib/xstrtol.h
Examining data/microdc2-0.15.6/lib/xstrtoul.c
Examining data/microdc2-0.15.6/lib/xstrtoumax.c
Examining data/microdc2-0.15.6/lib/xvasprintf.c
Examining data/microdc2-0.15.6/lib/xvasprintf.h
Examining data/microdc2-0.15.6/src/charsets.c
Examining data/microdc2-0.15.6/src/charsets.h
Examining data/microdc2-0.15.6/src/connection.c
Examining data/microdc2-0.15.6/src/filelist-in.c
Examining data/microdc2-0.15.6/src/fs.c
Examining data/microdc2-0.15.6/src/hash.c
Examining data/microdc2-0.15.6/src/hub.c
Examining data/microdc2-0.15.6/src/huffman.c
Examining data/microdc2-0.15.6/src/lookup.c
Examining data/microdc2-0.15.6/src/microdc_tth.c
Examining data/microdc2-0.15.6/src/search.c
Examining data/microdc2-0.15.6/src/tth_file.c
Examining data/microdc2-0.15.6/src/tth_file.h
Examining data/microdc2-0.15.6/src/user.c
Examining data/microdc2-0.15.6/src/util.c
Examining data/microdc2-0.15.6/src/xml_flist.c
Examining data/microdc2-0.15.6/src/bzip2/blocksort.c
Examining data/microdc2-0.15.6/src/bzip2/bzip2.c
Examining data/microdc2-0.15.6/src/bzip2/bzlib.c
Examining data/microdc2-0.15.6/src/bzip2/bzlib.h
Examining data/microdc2-0.15.6/src/bzip2/bzlib_private.h
Examining data/microdc2-0.15.6/src/bzip2/compress.c
Examining data/microdc2-0.15.6/src/bzip2/crctable.c
Examining data/microdc2-0.15.6/src/bzip2/decompress.c
Examining data/microdc2-0.15.6/src/bzip2/huffman.c
Examining data/microdc2-0.15.6/src/bzip2/randtable.c
Examining data/microdc2-0.15.6/src/common/bksearch.c
Examining data/microdc2-0.15.6/src/common/bksearch.h
Examining data/microdc2-0.15.6/src/common/byteq.c
Examining data/microdc2-0.15.6/src/common/byteq.h
Examining data/microdc2-0.15.6/src/common/comparison.h
Examining data/microdc2-0.15.6/src/common/error.c
Examining data/microdc2-0.15.6/src/common/error.h
Examining data/microdc2-0.15.6/src/common/hmap.c
Examining data/microdc2-0.15.6/src/common/hmap.h
Examining data/microdc2-0.15.6/src/common/intutil.c
Examining data/microdc2-0.15.6/src/common/intutil.h
Examining data/microdc2-0.15.6/src/common/minmaxonce.h
Examining data/microdc2-0.15.6/src/common/msgq.c
Examining data/microdc2-0.15.6/src/common/msgq.h
Examining data/microdc2-0.15.6/src/common/optparser.c
Examining data/microdc2-0.15.6/src/common/optparser.h
Examining data/microdc2-0.15.6/src/common/ptrv.c
Examining data/microdc2-0.15.6/src/common/ptrv.h
Examining data/microdc2-0.15.6/src/common/quoting.c
Examining data/microdc2-0.15.6/src/common/quoting.h
Examining data/microdc2-0.15.6/src/common/range.c
Examining data/microdc2-0.15.6/src/common/range.h
Examining data/microdc2-0.15.6/src/common/strbuf.c
Examining data/microdc2-0.15.6/src/common/strbuf.h
Examining data/microdc2-0.15.6/src/common/strleftcmp.c
Examining data/microdc2-0.15.6/src/common/strleftcmp.h
Examining data/microdc2-0.15.6/src/common/substrcmp.c
Examining data/microdc2-0.15.6/src/common/substrcmp.h
Examining data/microdc2-0.15.6/src/common/swap.h
Examining data/microdc2-0.15.6/src/common/tempdir.c
Examining data/microdc2-0.15.6/src/common/tempdir.h
Examining data/microdc2-0.15.6/src/common/tempfailure.h
Examining data/microdc2-0.15.6/src/common/tmap.c
Examining data/microdc2-0.15.6/src/common/tmap.h
Examining data/microdc2-0.15.6/src/tth/base32.c
Examining data/microdc2-0.15.6/src/tth/base32.h
Examining data/microdc2-0.15.6/src/tth/sboxes.c
Examining data/microdc2-0.15.6/src/tth/tiger.c
Examining data/microdc2-0.15.6/src/tth/tiger.h
Examining data/microdc2-0.15.6/src/tth/tigertree.c
Examining data/microdc2-0.15.6/src/tth/tigertree.h
Examining data/microdc2-0.15.6/src/tth/tth.c
Examining data/microdc2-0.15.6/src/tth/tth.h
Examining data/microdc2-0.15.6/src/tth.c
Examining data/microdc2-0.15.6/src/microdc.h
Examining data/microdc2-0.15.6/src/command.c
Examining data/microdc2-0.15.6/src/main.c
Examining data/microdc2-0.15.6/src/variables.c
Examining data/microdc2-0.15.6/src/local_flist.c
Examining data/microdc2-0.15.6/src/screen.c

FINAL RESULTS:

data/microdc2-0.15.6/src/bzip2/bzip2.c:1141:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
   retVal = chmod ( dstName, fileMetaInfo.st_mode );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1147:13:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
   retVal = chown ( dstName, fileMetaInfo.st_uid, fileMetaInfo.st_gid );
data/microdc2-0.15.6/lib/dirname.c:114:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
      sscanf (buff, "%s %s", file, expected_result);
data/microdc2-0.15.6/lib/error.c:166:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, message, args);
data/microdc2-0.15.6/lib/error.h:31:22:  [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.
#  define __printf__ printf
data/microdc2-0.15.6/lib/fnmatch.c:190:23:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
# define STRCAT(D, S) strcat (D, S)
data/microdc2-0.15.6/lib/fnmatch.c:221:25:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#   define STRCAT(D, S) wcscat (D, S)
data/microdc2-0.15.6/lib/sig2str.c:322:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (signame, numname_table[i].name);
data/microdc2-0.15.6/lib/sig2str.c:336:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf (signame, delta ? "RTMIN+%d" : "RTMIN", delta);
data/microdc2-0.15.6/lib/sig2str.c:341:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf (signame, delta ? "RTMAX-%d" : "RTMAX", delta);
data/microdc2-0.15.6/lib/time_r.c:34:10:  [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).
  return strcpy (dest, src);
data/microdc2-0.15.6/lib/vasnprintf.c:95:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/microdc2-0.15.6/lib/vasnprintf.c:106:20:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF _snprintf
data/microdc2-0.15.6/lib/vasnprintf.c:109:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/microdc2-0.15.6/lib/vasnprintf.c:625:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, arg);		    \
data/microdc2-0.15.6/lib/vasnprintf.c:628:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], arg);	    \
data/microdc2-0.15.6/lib/vasnprintf.c:631:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/microdc2-0.15.6/lib/vasnprintf.h:36:22:  [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.
#  define __printf__ printf
data/microdc2-0.15.6/lib/vasprintf.h:40:22:  [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.
#  define __printf__ printf
data/microdc2-0.15.6/lib/version-etc.c:72: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 (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR);
data/microdc2-0.15.6/lib/xvasprintf.h:33:22:  [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.
#  define __printf__ printf
data/microdc2-0.15.6/src/bzip2/bzip2.c:1199:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat ( name, newSuffix );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1701:4:  [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 (
data/microdc2-0.15.6/src/bzip2/bzip2.c:1807:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy ( tmp->name, name );
data/microdc2-0.15.6/src/bzip2/bzlib.c:1462:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(mode2, writing ? "w" : "r" );
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:103:7:  [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/microdc2-0.15.6/src/bzip2/bzlib_private.h:111:4:  [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,zf)
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:113:4:  [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,zf,za1)
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:115:4:  [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,zf,za1,za2)
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:117:4:  [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,zf,za1,za2,za3)
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:119:4:  [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,zf,za1,za2,za3,za4)
data/microdc2-0.15.6/src/bzip2/bzlib_private.h:121:4:  [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,zf,za1,za2,za3,za4,za5)
data/microdc2-0.15.6/src/command.c:59:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/command.c:585:25:  [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(full, X_OK) == 0) { /* ignore errors */
data/microdc2-0.15.6/src/command.c:722:17:  [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.
            if (execvp(args[0], args) < 0)
data/microdc2-0.15.6/src/command.c:725:17:  [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.
            if (execvp(argv[1], argv+1) < 0)
data/microdc2-0.15.6/src/common/byteq.h:44:87:  [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.
int byteq_vappendf(ByteQ *bq, const char *format, va_list ap) __attribute__ ((format (printf, 2, 0)));
data/microdc2-0.15.6/src/common/byteq.h:45:79:  [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.
int byteq_appendf(ByteQ *bq, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
data/microdc2-0.15.6/src/common/error.c:36:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf(stderr, format, ap);
data/microdc2-0.15.6/src/common/error.h:37: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.
void die(const char *format, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
data/microdc2-0.15.6/src/common/error.h:38:60:  [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.
void warn(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
data/microdc2-0.15.6/src/common/intutil.c:30:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(intstr, "%" m, value); \
data/microdc2-0.15.6/src/common/strbuf.h:54:85:  [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.
StrBuf *strbuf_newf_n(uint32_t times, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
data/microdc2-0.15.6/src/common/strbuf.h:55:93:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
StrBuf *strbuf_vnewf_n(uint32_t times, const char *fmt, va_list ap) __attribute__ ((format (printf, 2, 0)));
data/microdc2-0.15.6/src/common/strbuf.h:128:121:  [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.
int strbuf_replacef_n(StrBuf *sb, int32_t sp, int32_t ep, uint32_t times, const char *fmt, ...) __attribute__ ((format (printf, 5, 6)));
data/microdc2-0.15.6/src/common/strbuf.h:129:129:  [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.
int strbuf_vreplacef_n(StrBuf *sb, int32_t sp, int32_t ep, uint32_t times, const char *fmt, va_list ap) __attribute__ ((format (printf, 5, 0)));
data/microdc2-0.15.6/src/filelist-in.c:44:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/fs.c:56:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/fs.c:1219:22:  [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(name_fs, X_OK) == 0) == ((flags & DC_CPL_EXE) != 0)) {
data/microdc2-0.15.6/src/hub.c:320:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(portstr, "%" PRIu16, port);
data/microdc2-0.15.6/src/local_flist.c:32:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/microdc.h:406:64:  [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.
bool hub_putf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
data/microdc2-0.15.6/src/microdc.h:437:85:  [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.
void flag_putf(DCDisplayFlag flag, const char *format, ...) __attribute__ ((format (printf, 2, 3)));
data/microdc2-0.15.6/src/microdc.h:446:73:  [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.
void set_screen_prompt(const char *prompt, ...) __attribute__ ((format (printf, 1, 2)));
data/microdc2-0.15.6/src/screen.c:262:13:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            vprintf(format, args);
data/microdc2-0.15.6/src/search.c:42:18:  [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.
#define TRACE(x) printf x; fflush(stdout)
data/microdc2-0.15.6/src/tth/tigertree.c:31:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/tth/tth.c:39:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/xml_flist.c:28:21:  [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.
#define TRACE(x)    printf x; fflush(stdout);
data/microdc2-0.15.6/src/xml_flist.c:183:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                    sprintf(value, "%" PRIu64, node->size);
data/microdc2-0.15.6/src/xml_flist.c:331:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(value, "%" PRIu64, node->size);
data/microdc2-0.15.6/lib/argmatch.c:268: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.
  if ((cp = getenv ("VERSION_CONTROL")))
data/microdc2-0.15.6/lib/fnmatch_loop.c:208:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	      posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/microdc2-0.15.6/lib/fnmatch_loop.c:971: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.
	  posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/microdc2-0.15.6/lib/fnmatch_loop.c:1024: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.
	  posixly_correct = getenv ("POSIXLY_CORRECT") != NULL ? 1 : -1;
data/microdc2-0.15.6/lib/getopt.c:126:9:  [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.
#ifndef getenv
data/microdc2-0.15.6/lib/getopt.c:127:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/microdc2-0.15.6/lib/getopt.c:264:47:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
data/microdc2-0.15.6/lib/getopt.c:1166:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char *const *argv, const char *optstring)
data/microdc2-0.15.6/lib/getopt.c:1188:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/microdc2-0.15.6/lib/getopt1.c:44:1:  [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.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/microdc2-0.15.6/lib/getopt1.c:109:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/microdc2-0.15.6/lib/getopt_.h:39:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/microdc2-0.15.6/lib/getopt_.h:40:9:  [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.
# undef getopt_long
data/microdc2-0.15.6/lib/getopt_.h:49:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/microdc2-0.15.6/lib/getopt_.h:49:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/microdc2-0.15.6/lib/getopt_.h:50:10:  [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.
# define getopt_long __GETOPT_ID (getopt_long)
data/microdc2-0.15.6/lib/getopt_.h:50:35:  [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.
# define getopt_long __GETOPT_ID (getopt_long)
data/microdc2-0.15.6/lib/getopt_.h:203:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/microdc2-0.15.6/lib/getopt_.h:207:12:  [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.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/microdc2-0.15.6/lib/human.c:422: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.
  return getenv ("POSIXLY_CORRECT") ? 512 : DEFAULT_BLOCK_SIZE;
data/microdc2-0.15.6/lib/human.c:432:20:  [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.
      && ! (spec = getenv ("BLOCK_SIZE"))
data/microdc2-0.15.6/lib/human.c:433:20:  [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.
      && ! (spec = getenv ("BLOCKSIZE")))
data/microdc2-0.15.6/src/bzip2/bzip2.c:1825:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   envbase = getenv(varName);
data/microdc2-0.15.6/src/command.c:563: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.
    path = getenv("PATH");
data/microdc2-0.15.6/src/command.c:717:21:  [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.
            shell = getenv("SHELL");
data/microdc2-0.15.6/src/common/tempdir.c:48:18:  [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.
        tmpdir = getenv("TMPDIR");
data/microdc2-0.15.6/src/main.c:1173:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	    c = getopt_long(argc, argv, short_opts, long_opts, NULL);
data/microdc2-0.15.6/src/microdc_tth.c:73:41:  [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 (!print_help && (-1 != (opt = getopt_long(argc, argv, short_opts, long_opts, &long_idx)))) {
data/microdc2-0.15.6/src/tth.c:42:41:  [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 (!print_help && (-1 != (opt = getopt_long(argc, argv, short_opts, long_opts, &long_idx)))) {
data/microdc2-0.15.6/src/util.c:174: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.
    value = getenv(name);
data/microdc2-0.15.6/lib/alloca.c:135: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 align[ALIGN_SIZE];	/* To force sizeof(header).  */
data/microdc2-0.15.6/lib/argmatch.c:260: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.
  program_name = (char *) argv[0];
data/microdc2-0.15.6/lib/dirname.c:58: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 (dir, file, length);
data/microdc2-0.15.6/lib/dirname.c:104: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 buff[MAX_BUFF_LEN + 1];
data/microdc2-0.15.6/lib/dirname.c:111:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char file[MAX_BUFF_LEN];
data/microdc2-0.15.6/lib/dirname.c:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char expected_result[MAX_BUFF_LEN];
data/microdc2-0.15.6/lib/error.c:110: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 errbuf[1024];
data/microdc2-0.15.6/lib/fnmatch.c:197:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define MEMPCPY(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
data/microdc2-0.15.6/lib/fnmatch.c:242: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 s[CHAR_CLASS_MAX_LENGTH + 1];
data/microdc2-0.15.6/lib/fnmatch_loop.c:462:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			    char str[c1];
data/microdc2-0.15.6/lib/fnmatch_loop.c:670:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char str[c1];
data/microdc2-0.15.6/lib/getaddrinfo.c:159: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 (&sinp->sin6_addr, he->h_addr_list[0], sizeof sinp->sin6_addr);
data/microdc2-0.15.6/lib/getaddrinfo.c:183: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 (&sinp->sin_addr, he->h_addr_list[0], sizeof sinp->sin_addr);
data/microdc2-0.15.6/lib/human.c:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[2 * INT_STRLEN_BOUND (uintmax_t) + 1];
data/microdc2-0.15.6/lib/human.c:106:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, number, numberlen);
data/microdc2-0.15.6/lib/human.c:124: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 (d, buf + i, grouplen);
data/microdc2-0.15.6/lib/human.c:129: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 (d, thousands_sep, thousands_seplen);
data/microdc2-0.15.6/lib/human.c:246:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.0Lf", adjust_value (inexact_style, damt));
data/microdc2-0.15.6/lib/human.c:264:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (buf, "%.1Lf", adjust_value (inexact_style, damt));
data/microdc2-0.15.6/lib/human.c:272:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf (buf, "%.0Lf",
data/microdc2-0.15.6/lib/human.c:332:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, decimal_point, decimal_pointlen);
data/microdc2-0.15.6/lib/human.c:353: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, decimal_point, decimal_pointlen);
data/microdc2-0.15.6/lib/memmem.c:50:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if (begin[0] == ((const char *) needle)[0] &&
data/microdc2-0.15.6/lib/quotearg.c:573: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 slot0[256];
data/microdc2-0.15.6/lib/sig2str.c:44:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 struct numname { int num; char const name[8]; } numname_table[] =
data/microdc2-0.15.6/lib/strdup.c:49:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (char *) memcpy (new, s, len);
data/microdc2-0.15.6/lib/strftime.c:96:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define MEMCPY(d, s, n) memcpy (d, s, n)
data/microdc2-0.15.6/lib/strftime.c:103:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#   define MEMPCPY(d, s, n) ((void *) ((char *) memcpy (d, s, n) + (n)))
data/microdc2-0.15.6/lib/strftime.c:837:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ufmt[5];
data/microdc2-0.15.6/lib/strftime.c:839:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 ubuf[1024]; /* enough for any single format in practice */
data/microdc2-0.15.6/lib/strndup.c:47:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return memcpy (new, s, len);
data/microdc2-0.15.6/lib/vasnprintf.c:207: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 (memory, result, length * sizeof (CHAR_T));		     \
data/microdc2-0.15.6/lib/vasnprintf.c:219: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 (result + length, cp, n * sizeof (CHAR_T));
data/microdc2-0.15.6/lib/vasnprintf.c:523:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->width_start, n * sizeof (CHAR_T));
data/microdc2-0.15.6/lib/vasnprintf.c:529:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (p, dp->precision_start, n * sizeof (CHAR_T));
data/microdc2-0.15.6/lib/vasnprintf.c:840: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 (result + length, tmp, count * sizeof (CHAR_T));
data/microdc2-0.15.6/lib/xmalloc.c:232:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return memcpy (xmalloc (s), p, s);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1025:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *tmp   = fopen ( name, "rb" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1047: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).
   fh = open(name, O_WRONLY|O_CREAT|O_EXCL, S_IWUSR|S_IRUSR);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1053: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).
   return fopen(name, mode);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1226:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat ( outName, ".bz2" ); 
data/microdc2-0.15.6/src/bzip2/bzip2.c:1315:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         inStr = fopen ( inName, "rb" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1336:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         inStr = fopen ( inName, "rb" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1414:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat ( outName, ".out" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1501:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         inStr = fopen ( inName, "rb" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1513:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         inStr = fopen ( inName, "rb" );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1643:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         inStr = fopen ( inName, "rb" );
data/microdc2-0.15.6/src/bzip2/bzlib.c:1435:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   unused[BZ_MAX_UNUSED];
data/microdc2-0.15.6/src/bzip2/bzlib.c:1438:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   mode2[10]     = "";
data/microdc2-0.15.6/src/bzip2/bzlib.c:1470:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(path,mode2);
data/microdc2-0.15.6/src/command.c:714:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char *args[2] = { NULL, NULL };
data/microdc2-0.15.6/src/command.c:737:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sizebuf[LONGEST_HUMAN_READABLE+1];
data/microdc2-0.15.6/src/common/byteq.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(bq->buf + bq->cur, data, len);
data/microdc2-0.15.6/src/common/intutil.c:36: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.
static char intstr[23];
data/microdc2-0.15.6/src/common/msgq.c:256: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(intptr, buf, sizeof(*intptr));
data/microdc2-0.15.6/src/common/msgq.c:260: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(intptr, buf, sizeof(*intptr));
data/microdc2-0.15.6/src/common/msgq.c:264: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(intptr, buf, sizeof(*intptr));
data/microdc2-0.15.6/src/common/msgq.c:268:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(boolptr, buf, sizeof(*boolptr));
data/microdc2-0.15.6/src/common/strbuf.c:132: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(sb->buf + len*(times-1), mem, len);
data/microdc2-0.15.6/src/common/strbuf.c:222:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    	    memcpy(sb->buf+sp, mem, len);
data/microdc2-0.15.6/src/common/strbuf.c:340: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(str, sb->buf+sp, (ep-sp+1) * sizeof(char));
data/microdc2-0.15.6/src/connection.c:84:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(outkey+d, "/%%DCN%03d%%/", key[c]);
data/microdc2-0.15.6/src/filelist-in.c:82:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, &node->type, sizeof(node->type));
data/microdc2-0.15.6/src/filelist-in.c:84:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(data, node->name, strlen(node->name)+1);
data/microdc2-0.15.6/src/filelist-in.c:88:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &node->size, sizeof(uint64_t));
data/microdc2-0.15.6/src/filelist-in.c:92:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, node->reg.tth, sizeof(node->reg.tth));
data/microdc2-0.15.6/src/filelist-in.c:94:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &node->reg.mtime, sizeof(time_t));
data/microdc2-0.15.6/src/filelist-in.c:103:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, node->dir.real_path, strlen(node->dir.real_path)+1);
data/microdc2-0.15.6/src/filelist-in.c:108:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &children, sizeof(size_t));
data/microdc2-0.15.6/src/filelist-in.c:187:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&node->reg.mtime, data, sizeof(time_t));
data/microdc2-0.15.6/src/filelist-in.c:292: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(filename, O_RDONLY);
data/microdc2-0.15.6/src/fs.c:343:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char s1[2], s2[2];
data/microdc2-0.15.6/src/fs.c:699:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(filename, O_CREAT|O_EXCL|O_WRONLY, 0666);
data/microdc2-0.15.6/src/fs.c:705:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        xml_fd = open(xml_filename, O_CREAT|O_EXCL|O_WRONLY, 0666);
data/microdc2-0.15.6/src/fs.c:710:20:  [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).
        bzxml_fd = open(bzxml_filename, O_CREAT|O_EXCL|O_WRONLY, 0666);
data/microdc2-0.15.6/src/fs.c:1006: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(out, p1, l1);
data/microdc2-0.15.6/src/fs.c:1008: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(out+l1+1, p2, l2+1);
data/microdc2-0.15.6/src/hub.c:318:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char portstr[6];
data/microdc2-0.15.6/src/local_flist.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fn [300];
data/microdc2-0.15.6/src/local_flist.c:130:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    while ((fd = open (fn, O_RDONLY | O_CREAT | O_EXCL, 0600) < 0)) {
data/microdc2-0.15.6/src/local_flist.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fn [300];
data/microdc2-0.15.6/src/local_flist.c:180:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(path, O_RDONLY);
data/microdc2-0.15.6/src/local_flist.c:221:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(path, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
data/microdc2-0.15.6/src/local_flist.c:620:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy(h->reg.tth, hash, len);
data/microdc2-0.15.6/src/local_flist.c:894:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sizebuf[LONGEST_HUMAN_READABLE+1];
data/microdc2-0.15.6/src/lookup.c:84: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(&has_canon, data, sizeof(has_sockaddr)); data += sizeof(has_canon);
data/microdc2-0.15.6/src/lookup.c:124:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &ai->ai_flags, sizeof(ai->ai_flags)); data += sizeof(ai->ai_flags);
data/microdc2-0.15.6/src/lookup.c:125:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &ai->ai_family, sizeof(ai->ai_family)); data += sizeof(ai->ai_family);
data/microdc2-0.15.6/src/lookup.c:126:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &ai->ai_socktype, sizeof(ai->ai_socktype)); data += sizeof(ai->ai_socktype);
data/microdc2-0.15.6/src/lookup.c:127:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &ai->ai_protocol, sizeof(ai->ai_protocol)); data += sizeof(ai->ai_protocol);
data/microdc2-0.15.6/src/lookup.c:128:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &ai->ai_addrlen, sizeof(ai->ai_addrlen)); data += sizeof(ai->ai_addrlen);
data/microdc2-0.15.6/src/lookup.c:129:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &has_sockaddr, sizeof(has_sockaddr)); data += sizeof(has_sockaddr);
data/microdc2-0.15.6/src/lookup.c:131:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, ai->ai_addr, ai->ai_addrlen);
data/microdc2-0.15.6/src/lookup.c:134:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(data, &has_canon, sizeof(has_canon)); data += sizeof(has_canon);
data/microdc2-0.15.6/src/lookup.c:136:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data, ai->ai_canonname, strlen(ai->ai_canonname)+1);
data/microdc2-0.15.6/src/main.c:258:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char timebuf[LONGEST_ELAPSED_TIME+1];
data/microdc2-0.15.6/src/main.c:259:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ratebuf[LONGEST_HUMAN_READABLE+1];
data/microdc2-0.15.6/src/main.c:260:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sizebuf[LONGEST_HUMAN_READABLE+1];
data/microdc2-0.15.6/src/main.c:863:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char signame[SIG2STR_MAX];
data/microdc2-0.15.6/src/main.c:866:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(signame, "%d", WTERMSIG(status));
data/microdc2-0.15.6/src/main.c:887:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(filename, "r");
data/microdc2-0.15.6/src/main.c:939: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(msg->data, results, resultlen);
data/microdc2-0.15.6/src/microdc.h:196:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[0];
data/microdc2-0.15.6/src/microdc.h:284: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.
	        char    tth[39];
data/microdc2-0.15.6/src/microdc_tth.c:217:26:  [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).
                tth_fd = open(tth_fname, O_RDONLY);
data/microdc2-0.15.6/src/microdc_tth.c:221:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tth[39];
data/microdc2-0.15.6/src/microdc_tth.c:250:26:  [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).
                tth_fd = open(tth_fname, O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
data/microdc2-0.15.6/src/screen.c:136:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    log_fh = fopen(new_filename, "a");
data/microdc2-0.15.6/src/screen.c:232:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char c_time[1024];
data/microdc2-0.15.6/src/screen.c:288:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char c_time[1024];
data/microdc2-0.15.6/src/screen.c:534:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char *matches[ci.results->cur + 1];
data/microdc2-0.15.6/src/search.c:328:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char tth[40];
data/microdc2-0.15.6/src/search.c:329: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(tth, node->reg.tth, sizeof(node->reg.tth));
data/microdc2-0.15.6/src/tth/tiger.c:201:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char temp[64];
data/microdc2-0.15.6/src/tth/tigertree.h:26:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char leaf[1+BLOCKSIZE]; /* leaf in progress */
data/microdc2-0.15.6/src/tth/tigertree.h:30:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char node[1+NODESIZE]; /* node scratch space */
data/microdc2-0.15.6/src/tth/tigertree.h:35:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char nodes[STACKSIZE]; /* stack of interim node values */
data/microdc2-0.15.6/src/tth/tth.c:62:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char root[24];
data/microdc2-0.15.6/src/tth/tth.c:65:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buf[1 + 512 * BLOCKSIZE];
data/microdc2-0.15.6/src/tth/tth.c:70:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(filename, O_RDONLY);
data/microdc2-0.15.6/src/user.c:489:34:  [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).
        ucl->transfer_fd/*DL*/ = open/*64*/(conv_local_file/*DL*/, O_CREAT|O_WRONLY, 0644);
data/microdc2-0.15.6/src/user.c:491:34:  [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).
        ucl->transfer_fd/*DL*/ = open/*64*/(conv_local_file/*DL*/, O_CREAT|O_EXCL|O_WRONLY, 0644);
data/microdc2-0.15.6/src/user.c:651:30:  [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).
    ucl->transfer_fd/*UL*/ = open/*64*/(conv_local_file/*UL*/, O_RDONLY);
data/microdc2-0.15.6/src/user.c:1103:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filename[10240];
data/microdc2-0.15.6/src/util.c:53: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(newpath, O_CREAT|O_EXCL, 0600);
data/microdc2-0.15.6/src/util.c:206: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.
    static char buffer[16];
data/microdc2-0.15.6/src/util.c:217: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.
    static char buffer[22];
data/microdc2-0.15.6/src/util.c:300:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        s += sprintf(s, "%lud", (long) (elapsed / SECONDS_PER_DAY));
data/microdc2-0.15.6/src/util.c:304:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        s += sprintf(s, "%luh", (long) (elapsed / SECONDS_PER_HOUR));
data/microdc2-0.15.6/src/util.c:308:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        s += sprintf(s, "%lum", (long) (elapsed / SECONDS_PER_MINUTE));
data/microdc2-0.15.6/src/util.c:312:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	s += sprintf(s, "%lus", (long) elapsed);
data/microdc2-0.15.6/src/xml_flist.c:182:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 value[64];
data/microdc2-0.15.6/src/xml_flist.c:187:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(value, node->reg.tth, sizeof(node->reg.tth));
data/microdc2-0.15.6/src/xml_flist.c:330:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char value[64];
data/microdc2-0.15.6/src/xml_flist.c:335:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(value, node->reg.tth, sizeof(node->reg.tth));
data/microdc2-0.15.6/src/xml_flist.c:459:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    io_ctxt.fd = open(filename, O_RDONLY);
data/microdc2-0.15.6/lib/argmatch.c:95: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).
  arglen = strlen (arg);
data/microdc2-0.15.6/lib/argmatch.c:102:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen (arglist[i]) == arglen)
data/microdc2-0.15.6/lib/basename.c:75: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).
  for (len = strlen (name);  1 < len && ISSLASH (name[len - 1]);  len--)
data/microdc2-0.15.6/lib/error.c:142: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 len = strlen (message) + 1;
data/microdc2-0.15.6/lib/fnmatch.c:189: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).
# define STRLEN(S) strlen (S)
data/microdc2-0.15.6/lib/fnmatch.c:220:22:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define STRLEN(S) wcslen (S)
data/microdc2-0.15.6/lib/fnmatch.c:369:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return internal_fnmatch (pattern, string, string + strlen (string),
data/microdc2-0.15.6/lib/getdelim.c:82:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      i = getc (fp);
data/microdc2-0.15.6/lib/gethostname.c:48:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (name, uts.nodename, len);
data/microdc2-0.15.6/lib/gethostname.c:50:3:  [1] (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 character.
  strcpy (name, "");		/* Hardcode your system name if you want.  */
data/microdc2-0.15.6/lib/getopt.c:295:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      int len = d->__nonoption_flags_max_len = strlen (orig_str);
data/microdc2-0.15.6/lib/getopt.c:522: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).
		== (unsigned int) strlen (p->name))
data/microdc2-0.15.6/lib/getopt.c:574: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).
	  d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:650: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).
		  d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:693: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).
		  d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:698: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).
	  d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:910:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/microdc2-0.15.6/lib/getopt.c:958: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).
	    d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:1005: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).
		    d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:1046: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).
		    d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/getopt.c:1050: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).
	    d->__nextchar += strlen (d->__nextchar);
data/microdc2-0.15.6/lib/human.c:99:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t thousands_seplen = strlen (thousands_sep);
data/microdc2-0.15.6/lib/human.c:193: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).
  size_t pointlen = strlen (l->decimal_point);
data/microdc2-0.15.6/lib/human.c:200:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (l->thousands_sep) <= MB_LEN_MAX)
data/microdc2-0.15.6/lib/human.c:247: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).
	buflen = strlen (buf);
data/microdc2-0.15.6/lib/human.c:265: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).
	buflen = strlen (buf);
data/microdc2-0.15.6/lib/human.c:274: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).
	    buflen = strlen (buf);
data/microdc2-0.15.6/lib/iconvme.c:118:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t inbytes_remaining = strlen (p);
data/microdc2-0.15.6/lib/quotearg.c:251: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).
	quote_string_len = strlen (quote_string);
data/microdc2-0.15.6/lib/quotearg.c:421: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).
		  argsize = strlen (arg);
data/microdc2-0.15.6/lib/safe-read.c:50:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define rw read
data/microdc2-0.15.6/lib/strdup.c:43: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 (s) + 1;
data/microdc2-0.15.6/lib/strftime.c:97: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).
# define STRLEN(s) strlen (s)
data/microdc2-0.15.6/lib/strftime.c:606: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).
	      format_end = f + strlen (f) + 1;
data/microdc2-0.15.6/lib/strftime.c:618: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).
		    len += strlen (f + len);
data/microdc2-0.15.6/lib/strftime.c:877:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size_t len = strlen (era->era_name);
data/microdc2-0.15.6/lib/strftime.c:1373: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).
	  cpy (strlen (zone), zone);
data/microdc2-0.15.6/lib/vasnprintf.c:61:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define local_wcslen wcslen
data/microdc2-0.15.6/lib/vasnprintf.c:466: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).
			tmp_length = strlen (a.arg[dp->arg_index].a.a_string);
data/microdc2-0.15.6/lib/xmalloc.c:240: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).
  return xmemdup (string, strlen (string) + 1);
data/microdc2-0.15.6/src/bzip2/bzip2.c:411:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   Int32 c = fgetc ( f );
data/microdc2-0.15.6/src/bzip2/bzip2.c:994: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).
   if ( (Int32)strlen(s) >= longestFileName ) return;
data/microdc2-0.15.6/src/bzip2/bzip2.c:995:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   for (i = 1; i <= longestFileName - (Int32)strlen(s); i++)
data/microdc2-0.15.6/src/bzip2/bzip2.c:1004:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if ( strlen(from) > FILE_NAME_LEN-10 )  {
data/microdc2-0.15.6/src/bzip2/bzip2.c:1016:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(to,from,FILE_NAME_LEN-10);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1186: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).
   Int32 ns = strlen(s);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1187: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).
   Int32 nx = strlen(suffix);
data/microdc2-0.15.6/src/bzip2/bzip2.c:1198: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).
   name[strlen(name)-strlen(oldSuffix)] = 0;
data/microdc2-0.15.6/src/bzip2/bzip2.c:1198: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).
   name[strlen(name)-strlen(oldSuffix)] = 0;
data/microdc2-0.15.6/src/bzip2/bzip2.c:1806:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tmp->name = (Char*) myMalloc ( 5 + strlen(name) );
data/microdc2-0.15.6/src/bzip2/bzip2.c:1915: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 (longestFileName < (Int32)strlen(aa->name) )
data/microdc2-0.15.6/src/bzip2/bzip2.c:1916: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).
         longestFileName = (Int32)strlen(aa->name);
data/microdc2-0.15.6/src/bzip2/bzlib.c:952:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   Int32 c = fgetc ( f );
data/microdc2-0.15.6/src/bzip2/bzlib.c:1463:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat(mode2,"b");   /* binary mode */
data/microdc2-0.15.6/src/command.c:373: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).
                sizemod = strlen(alias->alias_spec) - strlen(cmd->name);
data/microdc2-0.15.6/src/command.c:373:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sizemod = strlen(alias->alias_spec) - strlen(cmd->name);
data/microdc2-0.15.6/src/command.c:401: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).
    newwe = strlen(word);
data/microdc2-0.15.6/src/command.c:646: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).
                if (strlen(builtin->usage_msg) < width/2) {
data/microdc2-0.15.6/src/command.c:1479:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    quotearg_n(1, queued->filename + strlen(queued->base_path)));
data/microdc2-0.15.6/src/command.c:1650: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).
	maxlen = max(maxlen, strlen(quotearg(ui->nick)));
data/microdc2-0.15.6/src/command.c:1669:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strbuf_append_char_n(out, maxlen+1-strlen(nick), ' ');
data/microdc2-0.15.6/src/command.c:1696: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).
	maxlen = max(maxlen, strlen(uc->name));
data/microdc2-0.15.6/src/common/byteq.c:108:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(str);
data/microdc2-0.15.6/src/common/byteq.c:157:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, bq->buf + bq->cur, len - bq->cur);
data/microdc2-0.15.6/src/common/byteq.c:191:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(fd, bq->buf + bq->cur, bq->max - bq->cur);
data/microdc2-0.15.6/src/common/msgq.c:140:60:  [1] (buffer) strlen:
  Does not handle 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 += sizeof(size_t) + (strval == NULL ? 0 : strlen(strval)+1);
data/microdc2-0.15.6/src/common/msgq.c:150:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    size += sizeof(size_t) + strlen(*aryval)+1;
data/microdc2-0.15.6/src/common/msgq.c:178:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_t len = (strval == NULL ? SIZE_MAX : strlen(strval)+1);
data/microdc2-0.15.6/src/common/msgq.c:200: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).
                    len = strlen(*aryval)+1;
data/microdc2-0.15.6/src/common/msgq.c:279: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).
		    buf += strlen(buf)+1;
data/microdc2-0.15.6/src/common/quoting.c:137: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).
    result = r = xmalloc(strlen(str) + 1);
data/microdc2-0.15.6/src/common/strbuf.c:64: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).
    pos += 1 + strlen(str);
data/microdc2-0.15.6/src/connection.c:104: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).
    cur = out = xmalloc(strlen(str)+1);
data/microdc2-0.15.6/src/filelist-in.c:67:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return sizeof(DCFileType) + strlen(node->name)+1 + sizeof(uint64_t) + 1 + sizeof(node->reg.tth) + sizeof(time_t);
data/microdc2-0.15.6/src/filelist-in.c:69: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 = sizeof(DCFileType) + strlen(node->name)+1 + 1 + (node->dir.real_path != NULL ? strlen(node->dir.real_path)+1 : 0) + sizeof(size_t);
data/microdc2-0.15.6/src/filelist-in.c:69:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = sizeof(DCFileType) + strlen(node->name)+1 + 1 + (node->dir.real_path != NULL ? strlen(node->dir.real_path)+1 : 0) + sizeof(size_t);
data/microdc2-0.15.6/src/filelist-in.c:84: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).
    memcpy(data, node->name, strlen(node->name)+1);
data/microdc2-0.15.6/src/filelist-in.c:85: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 += strlen(node->name)+1;
data/microdc2-0.15.6/src/filelist-in.c:103:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memcpy(data, node->dir.real_path, strlen(node->dir.real_path)+1);
data/microdc2-0.15.6/src/filelist-in.c:104: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).
            data += strlen(node->dir.real_path)+1;
data/microdc2-0.15.6/src/filelist-in.c:157: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 += strlen(node_name) + 1;
data/microdc2-0.15.6/src/filelist-in.c:165: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).
            data += strlen(node->dir.real_path) + 1;
data/microdc2-0.15.6/src/filelist-in.c:359: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).
        filename_len = strlen(filename);
data/microdc2-0.15.6/src/fs.c:252: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).
        end = filename + strlen(filename);
data/microdc2-0.15.6/src/fs.c:431:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                maxlen = max(maxlen, strlen(subnode->name));
data/microdc2-0.15.6/src/fs.c:435:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                maxlen = max(maxlen, strlen(subnode->name)+1);
data/microdc2-0.15.6/src/fs.c:441: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).
        maxlen = strlen(node->name);
data/microdc2-0.15.6/src/fs.c:500:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    for (d = maxlen-strlen(items[c]->name)-extlen+2; d > 0; d--)
data/microdc2-0.15.6/src/fs.c:655:103:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        filename = xasprintf("%s%s%sMyList.DcLst", listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", prefix == NULL ? "" : prefix);
data/microdc2-0.15.6/src/fs.c:670:104:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        xml_filename = xasprintf("%s%s%sfiles.xml", listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", prefix == NULL ? "" : prefix);
data/microdc2-0.15.6/src/fs.c:684:110:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bzxml_filename = xasprintf("%s%s%sfiles.xml.bz2", listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", prefix == NULL ? "" : prefix);
data/microdc2-0.15.6/src/fs.c:917: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).
        tmp = catfiles(download_dir, queued->filename + strlen(queued->base_path));
data/microdc2-0.15.6/src/fs.c:1000: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).
    l1 = strlen(p1);
data/microdc2-0.15.6/src/fs.c:1001: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).
    l2 = strlen(p2);
data/microdc2-0.15.6/src/fs.c:1204:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        input[strlen(input)-1] = '\0';
data/microdc2-0.15.6/src/fs.c:1208:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        input[strlen(input)] = '"';
data/microdc2-0.15.6/src/fs.c:1466: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).
        min = strlen(s1);
data/microdc2-0.15.6/src/hub.c:624: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).
        len = strlen(token);
data/microdc2-0.15.6/src/local_flist.c:619:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            int len = MIN(sizeof(h->reg.tth), strlen(hash));
data/microdc2-0.15.6/src/local_flist.c:684: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).
                            len = strlen(name);
data/microdc2-0.15.6/src/local_flist.c:904:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *dc_flist_from    = xasprintf("%s%s%sMyList.DcLst", listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", filelist_prefix),
data/microdc2-0.15.6/src/local_flist.c:906:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         *xml_flist_from   = xasprintf("%s%s%sfiles.xml",    listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", filelist_prefix),
data/microdc2-0.15.6/src/local_flist.c:907:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         *bzxml_flist_from = xasprintf("%s%s%sfiles.xml.bz2",listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/", filelist_prefix),
data/microdc2-0.15.6/src/local_flist.c:908:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         *xml_flist_to     = xasprintf("%s%sfiles.xml",      listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/"),
data/microdc2-0.15.6/src/local_flist.c:909:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         *bzxml_flist_to   = xasprintf("%s%sfiles.xml.bz2",  listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/"),
data/microdc2-0.15.6/src/local_flist.c:911:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         *dc_flist_to      = xasprintf("%s%sMyList.DcLst",   listing_dir, listing_dir[0] == '\0' || listing_dir[strlen(listing_dir)-1] == '/' ? "" : "/");
data/microdc2-0.15.6/src/lookup.c:87: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).
            data += strlen(ai->ai_canonname)+1;
data/microdc2-0.15.6/src/lookup.c:113: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).
            size += strlen(ai->ai_canonname)+1;
data/microdc2-0.15.6/src/lookup.c:136: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).
            memcpy(data, ai->ai_canonname, strlen(ai->ai_canonname)+1);
data/microdc2-0.15.6/src/lookup.c:137: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).
            data += strlen(ai->ai_canonname)+1;
data/microdc2-0.15.6/src/main.c:370:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char *final_file = xstrndup(uc->local_file, strlen(uc->local_file)-5);
data/microdc2-0.15.6/src/main.c:823:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(signal_pipe[0], &signal, sizeof(uint8_t)) < 0) {
data/microdc2-0.15.6/src/main.c:895: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).
	for (c = strlen(line)-1; c > 0 && (line[c] == '\n' || line[c] == '\r'); c--)
data/microdc2-0.15.6/src/microdc_tth.c:209:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char *tth_fname = xasprintf("%s%s%s%s", tth_path, tth_path[0] == '\0' || tth_path[strlen(tth_path)-1] == '/' ? "" : "/", ep->d_name, ".tth");
data/microdc2-0.15.6/src/microdc_tth.c:222:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read(tth_fd, &fsize, sizeof(fsize)) != sizeof(fsize) || st.st_size != fsize || 
data/microdc2-0.15.6/src/microdc_tth.c:223:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        read(tth_fd, &mtime, sizeof(mtime)) != sizeof(mtime) || st.st_mtime != mtime || 
data/microdc2-0.15.6/src/microdc_tth.c:224:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        read(tth_fd, &ctime, sizeof(ctime)) != sizeof(ctime) || st.st_ctime != ctime ||
data/microdc2-0.15.6/src/microdc_tth.c:225:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        read(tth_fd, tth, sizeof(tth)) != sizeof(tth)) {
data/microdc2-0.15.6/src/microdc_tth.c:258:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        write(tth_fd, p_tth, strlen(p_tth)) != strlen(p_tth)) {
data/microdc2-0.15.6/src/microdc_tth.c:258:64:  [1] (buffer) strlen:
  Does not handle 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(tth_fd, p_tth, strlen(p_tth)) != strlen(p_tth)) {
data/microdc2-0.15.6/src/microdc_tth.c:299: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).
        int len = strlen(ep->d_name);
data/microdc2-0.15.6/src/microdc_tth.c:318:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(fullname);
data/microdc2-0.15.6/src/microdc_tth.c:344: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).
	    p1, p1[0] == '\0' || p1[strlen(p1)-1] == '/' ? "" : "/",
data/microdc2-0.15.6/src/screen.c:469: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).
        ce->input[strlen(ce->input)-1] = '\0';
data/microdc2-0.15.6/src/screen.c:539: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).
        minlen = strlen(input);
data/microdc2-0.15.6/src/screen.c:541: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).
        maxlen = strlen(matches[1]);
data/microdc2-0.15.6/src/screen.c:551:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            maxlen = MAX(maxlen, strlen(matches[c+1]));
data/microdc2-0.15.6/src/search.c:123:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str);
data/microdc2-0.15.6/src/search.c:167:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       search_string_new(ss->patterns+c, t1, strlen(t1));
data/microdc2-0.15.6/src/search.c:231:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) >= 1 << 16) /* Needed for delta match */
data/microdc2-0.15.6/src/search.c:267: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).
    tlen = strlen(t);
data/microdc2-0.15.6/src/tth/tth.c:103:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while ( (numbytes = read(fd, &buf[1], sizeof(buf) - 1) ) > 0) {
data/microdc2-0.15.6/src/tth_file.h:6:100:  [1] (buffer) strlen:
  Does not handle 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 IS_SPECIAL_DIR(x) (IS_CURRENT_DIR(x) || IS_PARENT_DIR(x) || strncmp(x, tth_directory_name, strlen(tth_directory_name)) == 0)
data/microdc2-0.15.6/src/user.c:567:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(str) > 0) {
data/microdc2-0.15.6/src/user.c:743: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).
    if ((strlen(str) == 4 + 39)
data/microdc2-0.15.6/src/user.c:1024: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).
            filename_len = strlen(buf+5);
data/microdc2-0.15.6/src/user.c:1362:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(ucl->signal_pipe[0], &signal, sizeof(uint8_t)) < 0) {
data/microdc2-0.15.6/src/util.c:155: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).
	    p1, p1[0] == '\0' || p1[strlen(p1)-1] == '/' ? "" : "/",
data/microdc2-0.15.6/src/util.c:156: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).
	    p2, p2[0] == '\0' || p2[strlen(p2)-1] == '/' ? "" : "/");
data/microdc2-0.15.6/src/util.c:163: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).
	    p1, p1[0] == '\0' || p1[strlen(p1)-1] == '/' ? "" : "/",
data/microdc2-0.15.6/src/util.c:275: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).
        len += strlen(strs[c]);
data/microdc2-0.15.6/src/variables.c:511:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(value);
data/microdc2-0.15.6/src/variables.c:529: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).
    wlen = strlen(ci->word);
data/microdc2-0.15.6/src/variables.c:886: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).
	    max_len = MAX(max_len, strlen(variables[c].name));
data/microdc2-0.15.6/src/xml_flist.c:57:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str);
data/microdc2-0.15.6/src/xml_flist.c:148:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(pctxt->fd, buffer, len);

ANALYSIS SUMMARY:

Hits = 373
Lines analyzed = 44146 in approximately 1.13 seconds (38936 lines/second)
Physical Source Lines of Code (SLOC) = 31185
Hits@level = [0] 188 [1] 146 [2] 136 [3]  30 [4]  59 [5]   2
Hits@level+ = [0+] 561 [1+] 373 [2+] 227 [3+]  91 [4+]  61 [5+]   2
Hits/KSLOC@level+ = [0+] 17.9894 [1+] 11.9609 [2+] 7.27914 [3+] 2.91807 [4+] 1.95607 [5+] 0.0641334
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.