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/jdupes-1.19.0/act_dedupefiles.c
Examining data/jdupes-1.19.0/act_dedupefiles.h
Examining data/jdupes-1.19.0/act_deletefiles.c
Examining data/jdupes-1.19.0/act_deletefiles.h
Examining data/jdupes-1.19.0/act_linkfiles.c
Examining data/jdupes-1.19.0/act_linkfiles.h
Examining data/jdupes-1.19.0/act_printjson.c
Examining data/jdupes-1.19.0/act_printjson.h
Examining data/jdupes-1.19.0/act_printmatches.c
Examining data/jdupes-1.19.0/act_printmatches.h
Examining data/jdupes-1.19.0/act_summarize.c
Examining data/jdupes-1.19.0/act_summarize.h
Examining data/jdupes-1.19.0/jdupes.c
Examining data/jdupes-1.19.0/jdupes.h
Examining data/jdupes-1.19.0/jody_cacheinfo.c
Examining data/jdupes-1.19.0/jody_cacheinfo.h
Examining data/jdupes-1.19.0/jody_paths.c
Examining data/jdupes-1.19.0/jody_paths.h
Examining data/jdupes-1.19.0/jody_sort.c
Examining data/jdupes-1.19.0/jody_sort.h
Examining data/jdupes-1.19.0/jody_strtoepoch.c
Examining data/jdupes-1.19.0/jody_strtoepoch.h
Examining data/jdupes-1.19.0/jody_win_unicode.c
Examining data/jdupes-1.19.0/jody_win_unicode.h
Examining data/jdupes-1.19.0/linux-dedupe-static.h
Examining data/jdupes-1.19.0/oom.c
Examining data/jdupes-1.19.0/oom.h
Examining data/jdupes-1.19.0/string_malloc.c
Examining data/jdupes-1.19.0/string_malloc.h
Examining data/jdupes-1.19.0/version.h
Examining data/jdupes-1.19.0/win_stat.c
Examining data/jdupes-1.19.0/win_stat.h
Examining data/jdupes-1.19.0/xxhash.c
Examining data/jdupes-1.19.0/xxhash.h

FINAL RESULTS:

data/jdupes-1.19.0/jody_paths.c:101:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat(p1, src, PATHBUF_SIZE);
data/jdupes-1.19.0/jody_paths.c:102:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat(p2, dest, PATHBUF_SIZE);
data/jdupes-1.19.0/act_linkfiles.c:164:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(dupelist[x]->d_name, W_OK) != 0)
data/jdupes-1.19.0/act_linkfiles.c:212:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(tempname, dupelist[x]->d_name);
data/jdupes-1.19.0/act_printjson.c:124:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    len = sprintf(temp_insert, " %s", argv[arg]);
data/jdupes-1.19.0/act_printjson.c:141:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(temp, "%s", files->d_name);
data/jdupes-1.19.0/act_printjson.c:148:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(temp, "%s", tmpfile->d_name);
data/jdupes-1.19.0/jdupes.c:339:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(args[x], argv[x]);
data/jdupes-1.19.0/jdupes.c:556:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(opt, option);
data/jdupes-1.19.0/jdupes.c:614:21:  [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).
    if (*p != '\0') strcpy(extf->param, p);
data/jdupes-1.19.0/jdupes.c:743:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(tp, newfile->d_name);
data/jdupes-1.19.0/jdupes.c:920:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(newfile->d_name, name);
data/jdupes-1.19.0/jody_cacheinfo.c:37: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(pathidx, name);
data/jdupes-1.19.0/jdupes.c:1831:16:  [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 getopt_long
data/jdupes-1.19.0/jdupes.c:1833:16:  [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
data/jdupes-1.19.0/act_dedupefiles.c:72: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).
    src_fd = open(curfile->d_name, O_RDWR);
data/jdupes-1.19.0/act_dedupefiles.c:77:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      src_fd = open(curfile2->d_name, O_RDWR);
data/jdupes-1.19.0/act_dedupefiles.c:94:23:  [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).
      fdri->dest_fd = open(dupefile->d_name, O_RDWR);
data/jdupes-1.19.0/act_deletefiles.c:26:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  file_t *tmpfile;
data/jdupes-1.19.0/act_deletefiles.c:59:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile) {
data/jdupes-1.19.0/act_deletefiles.c:60:31:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        dupelist[++counter] = tmpfile;
data/jdupes-1.19.0/act_linkfiles.c:43:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  static file_t *tmpfile;
data/jdupes-1.19.0/act_linkfiles.c:54: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 rel_path[PATHBUF_SIZE];
data/jdupes-1.19.0/act_linkfiles.c:64:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile) {
data/jdupes-1.19.0/act_linkfiles.c:88:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile) {
data/jdupes-1.19.0/act_linkfiles.c:90:28:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
       dupelist[counter] = tmpfile;
data/jdupes-1.19.0/act_linkfiles.c:213:9:  [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(tempname, ".__jdupes__.tmp");
data/jdupes-1.19.0/act_printjson.c:111:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  file_t * restrict tmpfile;
data/jdupes-1.19.0/act_printjson.c:146:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile != NULL) {
data/jdupes-1.19.0/act_printmatches.c:13:21:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  file_t * restrict tmpfile;
data/jdupes-1.19.0/act_printmatches.c:30:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile != NULL) {
data/jdupes-1.19.0/act_summarize.c:19:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    file_t *tmpfile;
data/jdupes-1.19.0/act_summarize.c:24:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      while (tmpfile != NULL) {
data/jdupes-1.19.0/jdupes.c:273:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tempname[PATHBUF_SIZE * 2];
data/jdupes-1.19.0/jdupes.c:337:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    args[x] = (char *)string_malloc(strlen(argv[x]) + 1);
data/jdupes-1.19.0/jdupes.c:1036: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(tp, dir, dirlen+1);
data/jdupes-1.19.0/jdupes.c:1043: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(tp, dirinfo->d_name, d_name_len);
data/jdupes-1.19.0/jdupes.c:1052: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(newfile->d_name, tp, dirlen + d_name_len);
data/jdupes-1.19.0/jdupes.c:1201:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(checkfile->d_name, FILE_MODE_RO);
data/jdupes-1.19.0/jdupes.c:2293:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      file1 = fopen(curfile->d_name, FILE_MODE_RO);
data/jdupes-1.19.0/jdupes.c:2305:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      file2 = fopen((*match)->d_name, FILE_MODE_RO);
data/jdupes-1.19.0/jdupes.h:67:11:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef wchar_t wpath_t[WPATH_MAX];
data/jdupes-1.19.0/jdupes.h:70:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
 #define M2W(a,b) MultiByteToWideChar(CP_UTF8, 0, a, -1, (LPWSTR)b, WPATH_MAX)
data/jdupes-1.19.0/jdupes.h:271: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.
extern char tempname[PATHBUF_SIZE * 2];
data/jdupes-1.19.0/jody_cacheinfo.c:19: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 buf[16];
data/jdupes-1.19.0/jody_cacheinfo.c:20: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 path[64] = "/sys/devices/system/cpu/cpu0/cache/index";
data/jdupes-1.19.0/jody_cacheinfo.c:38:7:  [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, "rb");
data/jdupes-1.19.0/jody_cacheinfo.c:74:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		size = (size_t)atoi(buf) * 1024;
data/jdupes-1.19.0/jody_paths.c:83: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 p1[PATHBUF_SIZE * 2], p2[PATHBUF_SIZE * 2];
data/jdupes-1.19.0/jody_win_unicode.c:24:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
 #define M2W(a,b) MultiByteToWideChar(CP_UTF8, 0, a, -1, (LPWSTR)b, WPATH_MAX)
data/jdupes-1.19.0/jody_win_unicode.c:26:8:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 wchar_t wstr[PATHBUF_SIZE];
data/jdupes-1.19.0/jody_win_unicode.c:42: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 temp[PATHBUF_SIZE * 2];
data/jdupes-1.19.0/win_stat.c:17:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
#define M2W(a,b) MultiByteToWideChar(CP_UTF8, 0, a, -1, (LPWSTR)b, WPATH_MAX)
data/jdupes-1.19.0/win_stat.c:24: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(&newstamp, timestamp, sizeof(uint64_t));
data/jdupes-1.19.0/win_stat.c:39:10:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 wchar_t wname2[WPATH_MAX];
data/jdupes-1.19.0/xxhash.c:112:76:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); }
data/jdupes-1.19.0/xxhash.c:370: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(dstState, srcState, sizeof(*dstState));
data/jdupes-1.19.0/xxhash.c:382: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(statePtr, &state, sizeof(state) - sizeof(state.reserved));
data/jdupes-1.19.0/xxhash.c:523: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(dst, &hash, sizeof(*dst));
data/jdupes-1.19.0/xxhash.c:751: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(dstState, srcState, sizeof(*dstState));
data/jdupes-1.19.0/xxhash.c:763: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(statePtr, &state, sizeof(state) - sizeof(state.reserved));
data/jdupes-1.19.0/xxhash.c:904: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(dst, &hash, sizeof(*dst));
data/jdupes-1.19.0/xxhash.h:204:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef struct { unsigned char digest[4]; } XXH32_canonical_t;
data/jdupes-1.19.0/xxhash.h:239:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef struct { unsigned char digest[8]; } XXH64_canonical_t;
data/jdupes-1.19.0/act_deletefiles.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).
        i = strlen(preservestr) - 1;
data/jdupes-1.19.0/act_deletefiles.c:89: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).
          tstr = (char *)realloc(preservestr, strlen(preservestr) + 1 + INPUT_SIZE);
data/jdupes-1.19.0/act_deletefiles.c:98: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).
          i = strlen(preservestr) - 1;
data/jdupes-1.19.0/act_linkfiles.c:209: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).
        name_len = strlen(dupelist[x]->d_name) + 14;
data/jdupes-1.19.0/jdupes.c:337: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).
    args[x] = (char *)string_malloc(strlen(argv[x]) + 1);
data/jdupes-1.19.0/jdupes.c:434: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).
  extlen = strlen(dot);
data/jdupes-1.19.0/jdupes.c:554: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).
  opt = string_malloc(strlen(option) + 1);
data/jdupes-1.19.0/jdupes.c:578:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    extf->next = string_malloc(sizeof(struct extfilter) + strlen(p) + 1);
data/jdupes-1.19.0/jdupes.c:583: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).
    extfilter_head = string_malloc(sizeof(struct extfilter) + strlen(p) + 1);
data/jdupes-1.19.0/jdupes.c:918: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).
  newfile = init_newfile(strlen(name) + 2, filelistp);
data/jdupes-1.19.0/jdupes.c:994:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(tempname, dir, PATHBUF_SIZE * 2 - 1);
data/jdupes-1.19.0/jdupes.c:995: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).
  dirlen = strlen(tempname) - 1;
data/jdupes-1.19.0/jdupes.c:998:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
  strncat(tempname, "\\*", PATHBUF_SIZE * 2 - 1);
data/jdupes-1.19.0/jdupes.c:1034: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).
    dirlen = strlen(dir);
data/jdupes-1.19.0/jdupes.c:1035: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).
    d_name_len = strlen(dirinfo->d_name);
data/jdupes-1.19.0/jody_cacheinfo.c:58:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(path);
data/jdupes-1.19.0/jody_paths.c:92:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
    strncat(p1, "/", PATHBUF_SIZE * 2 - 1);
data/jdupes-1.19.0/jody_paths.c:93:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(p2, p1, PATHBUF_SIZE * 2);
data/jdupes-1.19.0/jody_win_unicode.c:52:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(argv[counter], temp, (size_t)len + 1);

ANALYSIS SUMMARY:

Hits = 83
Lines analyzed = 6168 in approximately 0.26 seconds (23302 lines/second)
Physical Source Lines of Code (SLOC) = 4456
Hits@level = [0] 398 [1]  19 [2]  49 [3]   2 [4]  11 [5]   2
Hits@level+ = [0+] 481 [1+]  83 [2+]  64 [3+]  15 [4+]  13 [5+]   2
Hits/KSLOC@level+ = [0+] 107.944 [1+] 18.6266 [2+] 14.3627 [3+] 3.36625 [4+] 2.91741 [5+] 0.448833
Symlinks skipped = 3 (--allowlink overrides but see doc for security issue)
Dot directories skipped = 2 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.