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/di-4.47/C/display.c Examining data/di-4.47/C/Perl/ppport.h Examining data/di-4.47/C/digetentries.c Examining data/di-4.47/C/dimntopt.h Examining data/di-4.47/C/di.h Examining data/di-4.47/C/configs/config.ultrix.cc Examining data/di-4.47/C/configs/config.bsd43.cc Examining data/di-4.47/C/configs/conf.xenix.cc Examining data/di-4.47/C/didiskutil.c Examining data/di-4.47/C/tcldiskspace.c Examining data/di-4.47/C/display.h Examining data/di-4.47/C/dimain.c Examining data/di-4.47/C/dimain.h Examining data/di-4.47/C/trimchar.c Examining data/di-4.47/C/getoptn.h Examining data/di-4.47/C/di.c Examining data/di-4.47/C/options.c Examining data/di-4.47/C/strdup.c Examining data/di-4.47/C/realloc.c Examining data/di-4.47/C/getoptn.c Examining data/di-4.47/C/options.h Examining data/di-4.47/C/digetinfo.c Examining data/di-4.47/C/diquota.c Examining data/di-4.47/C/version.h Examining data/di-4.47/C/strstr.c Examining data/di-4.47/mkconfig/examples/dtcltk/hw_tk_c.c FINAL RESULTS: data/di-4.47/C/digetentries.c:1614:11: [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 (handleName, p, MSDOS_BUFFER_SIZE); data/di-4.47/C/dimain.c:1236:9: [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 (zi->zones[i].rootpath, "/", MAXPATHLEN); data/di-4.47/C/diquota.c:389:5: [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 (tname, "/quotas", DI_NAME_LEN); data/di-4.47/C/Perl/ppport.h:6890:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. retval = vsnprintf(buffer, len, format, ap); data/di-4.47/C/Perl/ppport.h:6892:14: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. retval = vsprintf(buffer, format, ap); data/di-4.47/C/Perl/ppport.h:6921:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buffer, pat, args); data/di-4.47/C/configs/conf.xenix.cc:270: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 Snprintf1 snprintf data/di-4.47/C/configs/conf.xenix.cc:271: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 Snprintf2 snprintf data/di-4.47/C/configs/conf.xenix.cc:272: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 Snprintf3 snprintf data/di-4.47/C/configs/conf.xenix.cc:273: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 Snprintf4 snprintf data/di-4.47/C/configs/conf.xenix.cc:275:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf1(a1,a2,a3,a4) sprintf(a1,a3,a4) data/di-4.47/C/configs/conf.xenix.cc:276:36: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf2(a1,a2,a3,a4,a5) sprintf(a1,a3,a4,a5) data/di-4.47/C/configs/conf.xenix.cc:277:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf3(a1,a2,a3,a4,a5,a6) sprintf(a1,a3,a4,a5,a6) data/di-4.47/C/configs/conf.xenix.cc:278:42: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf4(a1,a2,a3,a4,a5,a6,a7) sprintf(a1,a3,a4,a5,a6,a7) data/di-4.47/C/configs/config.bsd43.cc:262: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 Snprintf1 snprintf data/di-4.47/C/configs/config.bsd43.cc:263: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 Snprintf2 snprintf data/di-4.47/C/configs/config.bsd43.cc:264: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 Snprintf3 snprintf data/di-4.47/C/configs/config.bsd43.cc:265: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 Snprintf4 snprintf data/di-4.47/C/configs/config.bsd43.cc:267:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf1(a1,a2,a3,a4) sprintf(a1,a3,a4) data/di-4.47/C/configs/config.bsd43.cc:268:36: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf2(a1,a2,a3,a4,a5) sprintf(a1,a3,a4,a5) data/di-4.47/C/configs/config.bsd43.cc:269:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf3(a1,a2,a3,a4,a5,a6) sprintf(a1,a3,a4,a5,a6) data/di-4.47/C/configs/config.bsd43.cc:270:42: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf4(a1,a2,a3,a4,a5,a6,a7) sprintf(a1,a3,a4,a5,a6,a7) data/di-4.47/C/configs/config.ultrix.cc:256: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 Snprintf1 snprintf data/di-4.47/C/configs/config.ultrix.cc:257: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 Snprintf2 snprintf data/di-4.47/C/configs/config.ultrix.cc:258: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 Snprintf3 snprintf data/di-4.47/C/configs/config.ultrix.cc:259: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 Snprintf4 snprintf data/di-4.47/C/configs/config.ultrix.cc:261:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf1(a1,a2,a3,a4) sprintf(a1,a3,a4) data/di-4.47/C/configs/config.ultrix.cc:262:36: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf2(a1,a2,a3,a4,a5) sprintf(a1,a3,a4,a5) data/di-4.47/C/configs/config.ultrix.cc:263:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf3(a1,a2,a3,a4,a5,a6) sprintf(a1,a3,a4,a5,a6) data/di-4.47/C/configs/config.ultrix.cc:264:42: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. # define Snprintf4(a1,a2,a3,a4,a5,a6,a7) sprintf(a1,a3,a4,a5,a6,a7) data/di-4.47/C/digetentries.c:2088:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (displayTime, "%02hi-%s-%hi %02hi:%02hi:%02hi.%02hi", data/di-4.47/C/display.c:473:3: [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 (*ptr, val); data/di-4.47/C/display.c:959:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT("di version %s Default Format: %s\n"), data/di-4.47/C/options.c:572:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT("di version %s Default Format: %s\n"), DI_VERSION, DI_DEFAULT_FORMAT); data/di-4.47/C/options.c:730:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT("di version %s Default Format: %s\n"), DI_VERSION, DI_DEFAULT_FORMAT); data/di-4.47/C/options.c:732:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT("Usage: di [-ant] [-d display-size] [-f format] [-x exclude-fstyp-list]\n")); data/di-4.47/C/options.c:733:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" [-I include-fstyp-list] [file [...]]\n")); data/di-4.47/C/options.c:734:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -a : print all mounted devices\n")); data/di-4.47/C/options.c:735:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -d x : size to print blocks in (512 - POSIX, k - kbytes,\n")); data/di-4.47/C/options.c:736:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" m - megabytes, g - gigabytes, t - terabytes, h - human readable).\n")); data/di-4.47/C/options.c:737:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -f x : use format string <x>\n")); data/di-4.47/C/options.c:738:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -I x : include only file system types in <x>\n")); data/di-4.47/C/options.c:739:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -x x : exclude file system types in <x>\n")); data/di-4.47/C/options.c:740:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -l : display local filesystems only\n")); data/di-4.47/C/options.c:741:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -n : don't print header\n")); data/di-4.47/C/options.c:742:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" -t : print totals\n")); data/di-4.47/C/options.c:743:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" Format string values:\n")); data/di-4.47/C/options.c:744:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" m - mount point M - mount point, full length\n")); data/di-4.47/C/options.c:745:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" b - total kbytes B - kbytes available for use\n")); data/di-4.47/C/options.c:746:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" u - used kbytes c - calculated kbytes in use\n")); data/di-4.47/C/options.c:747:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" f - kbytes free v - kbytes available\n")); data/di-4.47/C/options.c:748:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" p - percentage not avail. for use 1 - percentage used\n")); data/di-4.47/C/options.c:749:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" 2 - percentage of user-available space in use.\n")); data/di-4.47/C/options.c:750:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" i - total file slots (i-nodes) U - used file slots\n")); data/di-4.47/C/options.c:751:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" F - free file slots P - percentage file slots used\n")); data/di-4.47/C/options.c:752:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" s - filesystem name S - filesystem name, full length\n")); data/di-4.47/C/options.c:753:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT(" t - disk partition type T - partition type, full length\n")); data/di-4.47/C/options.c:754:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (DI_GT("See manual page for more options.\n")); data/di-4.47/C/dimain.c:73:16: [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 _((const char *)); data/di-4.47/C/dimain.c:549:21: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath (dinfo->special, tspecial) != (char *) NULL) { data/di-4.47/C/dimain.c:1170: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. if ((localeptr = getenv ("DI_LOCALE_DIR")) == (char *) NULL) { data/di-4.47/C/options.c:174:16: [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 ((ptr = getenv ("DIFMT")) != (char *) NULL) { data/di-4.47/C/options.c:180: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. if ((ptr = getenv ("POSIXLY_CORRECT")) != (char *) NULL) { data/di-4.47/C/options.c:188: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. if ((ptr = getenv ("BLOCKSIZE")) != (char *) NULL) { data/di-4.47/C/options.c:193: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. if ((ptr = getenv ("DF_BLOCK_SIZE")) != (char *) NULL) { data/di-4.47/C/options.c:197: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. if ((ptr = getenv ("DI_ARGS")) != (char *) NULL) { data/di-4.47/C/tcldiskspace.c:50:16: [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 _((const char *)); data/di-4.47/C/Perl/ppport.h:3842:42: [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 CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t)) data/di-4.47/C/Perl/ppport.h:6745:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. && (xdigit = strchr((char *) PL_hexdigit, s[1]))) data/di-4.47/C/Perl/ppport.h:6967: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(dst + used, src, copy); data/di-4.47/C/Perl/ppport.h:6996: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(dst, src, copy); data/di-4.47/C/Perl/ppport.h:7088: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 octbuf[32] = "%123456789ABCDF"; data/di-4.47/C/Perl/ppport.h:7158: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 tmp[2]; data/di-4.47/C/di.h:86:11: [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(dst, src, cnt) (bcopy((src), (dst), (cnt)), dst) data/di-4.47/C/di.h:86:38: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy(dst, src, cnt) (bcopy((src), (dst), (cnt)), dst) data/di-4.47/C/di.h:162:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name [DI_NAME_LEN + 1]; /* mount point */ data/di-4.47/C/di.h:163: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 special [DI_SPEC_NAME_LEN + 1]; /* special device name */ data/di-4.47/C/di.h:164: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 fsType [DI_TYPE_LEN + 1]; /* type of file system */ data/di-4.47/C/di.h:165: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 options [DI_OPT_LEN + 1]; data/di-4.47/C/di.h:166: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 mountTime [DI_MNT_TIME_LEN + 1]; data/di-4.47/C/di.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 name [ZONENAME_MAX + 1]; data/di-4.47/C/di.h:197: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 rootpath [MAXPATHLEN + 1]; data/di-4.47/C/di.h:206: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 zoneDisplay [MAXPATHLEN + 1]; data/di-4.47/C/di.h:223: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 sortType [DI_SORT_MAX + 1]; data/di-4.47/C/di.h:248: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 blockFormat [15]; data/di-4.47/C/di.h:249: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 blockFormatNR [15]; /* no radix */ data/di-4.47/C/di.h:250: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 inodeFormat [15]; data/di-4.47/C/di.h:251:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char inodeLabelFormat [15]; data/di-4.47/C/di.h:252: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 mountFormat [10]; data/di-4.47/C/di.h:253: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 mTimeFormat [15]; data/di-4.47/C/di.h:254: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 optFormat [15]; data/di-4.47/C/di.h:255: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 specialFormat [15]; data/di-4.47/C/di.h:256: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 typeFormat [10]; data/di-4.47/C/didiskutil.c:379: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 tmp [64]; data/di-4.47/C/didiskutil.c:389: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 tmp [64]; data/di-4.47/C/digetentries.c:238:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen (DI_MOUNT_FILE, "r")) == (FILE *) NULL) data/di-4.47/C/digetentries.c:481: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 path [MAXPATHLEN + 1]; data/di-4.47/C/digetentries.c:493: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 tspecial [DI_SPEC_NAME_LEN]; data/di-4.47/C/digetentries.c:542:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fd = open (path, /* O_ACCMODE */ O_RDONLY | O_NOCTTY)) != -1) { data/di-4.47/C/digetentries.c:620:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen (DI_MOUNT_FILE, "r")) == (FILE *) NULL) data/di-4.47/C/digetentries.c:1391: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 *AIX_fsType [NUM_AIX_FSTYPES] = data/di-4.47/C/digetentries.c:1574: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 buff [MSDOS_BUFFER_SIZE]; data/di-4.47/C/digetentries.c:1609:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char handleName [MSDOS_BUFFER_SIZE + 1]; data/di-4.47/C/digetentries.c:1679: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 buff [B_FILE_NAME_LENGTH]; data/di-4.47/C/digetentries.c:1860: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 *monthNames[12] = { data/di-4.47/C/digetentries.c:1936: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 context[8] = {0,0,0,0,0,0,0,0}; data/di-4.47/C/digetentries.c:1944: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 returnedDevName [65]; data/di-4.47/C/digetentries.c:1946: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 displayTime[100]; data/di-4.47/C/digetentries.c:2053:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *) returnBuffers[i]); data/di-4.47/C/digetinfo.c:419: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 volName [MSDOS_BUFFER_SIZE]; data/di-4.47/C/digetinfo.c:420: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 fsName [MSDOS_BUFFER_SIZE]; data/di-4.47/C/dimain.c:301: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 tempSortType [DI_SORT_MAX + 1]; data/di-4.47/C/dimain.c:317:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (argv[i], O_RDONLY | O_NOCTTY); data/di-4.47/C/dimain.c:331: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 lastpool [DI_SPEC_NAME_LEN + 1]; data/di-4.47/C/dimain.c:548: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 tspecial [DI_SPEC_NAME_LEN + 1]; data/di-4.47/C/diquota.c:383: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 tname [DI_NAME_LEN + 1]; data/di-4.47/C/diquota.c:390: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 (tname, O_RDONLY | O_NOCTTY); data/di-4.47/C/diquota.c:608: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 host [DI_SPEC_NAME_LEN + 1]; data/di-4.47/C/display.c:156: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 lastpool [DI_SPEC_NAME_LEN + 1]; data/di-4.47/C/display.c:242:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempSortType [DI_SORT_MAX + 1]; data/di-4.47/C/display.c:422: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 tdata [1024]; data/di-4.47/C/display.c:440: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 tdata [1024]; data/di-4.47/C/display.c:498: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 tfmt[2]; data/di-4.47/C/display.c:503: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 percFormat [15]; data/di-4.47/C/display.c:506: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 ttext[2]; data/di-4.47/C/display.c:822: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 tdata [1024]; data/di-4.47/C/display.c:946: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 tformat [30]; data/di-4.47/C/display.c:947: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 ttext [2]; data/di-4.47/C/display.c:1270: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 tdata [1024]; data/di-4.47/C/getoptn.c:240:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *v = atoi (ptr); data/di-4.47/C/getoptn.c:247:10: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *v = atol (ptr); data/di-4.47/C/getoptn.c:254:19: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *v = (Size_t) atol (ptr); data/di-4.47/C/getoptn.c:442: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 tmp[40]; data/di-4.47/C/getoptn.c:443: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[40]; data/di-4.47/C/getoptn.c:444: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 s2[5]; data/di-4.47/C/getoptn.c:454: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. const char *av[10]; data/di-4.47/C/getoptn.c:493:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test: %d", testno); data/di-4.47/C/getoptn.c:509:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:525:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:541:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:557:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:575:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:591:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:609:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:626:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:642:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:658:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:676:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:695:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:713:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:729:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:745:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:762:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:778:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:794:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:811:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:828:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:844:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:860:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:876:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:893:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:909:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:925:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:942:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:961:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:979:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:997:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1015:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1035:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1055:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1075:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1095:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1116:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1136:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1156:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1178:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1195:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1212:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1229:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1246:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1263:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1281:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1299:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1320:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/getoptn.c:1336:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (tmp, "test %d", testno); data/di-4.47/C/options.c:52:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *disp[2]; data/di-4.47/C/options.c:109: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. const char *nargv [DI_MAX_ARGV]; data/di-4.47/C/options.c:157: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 dbsstr [30]; data/di-4.47/C/options.c:639:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). debug = atoi (value); data/di-4.47/C/options.c:770: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 tempbl [15]; data/di-4.47/C/options.c:771: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 ttempbl [15]; data/di-4.47/C/Perl/ppport.h:5335: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). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); data/di-4.47/C/Perl/ppport.h:5343: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). # define sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/di-4.47/C/Perl/ppport.h:5347: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). # define sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/di-4.47/C/Perl/ppport.h:5367: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). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/di-4.47/C/Perl/ppport.h:5395: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). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/di-4.47/C/Perl/ppport.h:5416: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). sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/di-4.47/C/Perl/ppport.h:5438: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). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/di-4.47/C/Perl/ppport.h:5466: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). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/di-4.47/C/Perl/ppport.h:5487: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). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/di-4.47/C/Perl/ppport.h:5541:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define HvNAMELEN_get(hv) (HvNAME_get(hv) ? (I32)strlen(HvNAME_get(hv)) : 0) data/di-4.47/C/Perl/ppport.h:6339: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). STRLEN len = strlen(radix); data/di-4.47/C/Perl/ppport.h:6923: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). return strlen(buffer); data/di-4.47/C/Perl/ppport.h:6963: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). used = strlen(dst); data/di-4.47/C/Perl/ppport.h:6964: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). length = strlen(src); data/di-4.47/C/Perl/ppport.h:6993: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). length = strlen(src); data/di-4.47/C/didiskutil.c:122:9: [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 (diptr->options, "ro,", data/di-4.47/C/didiskutil.c:123: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:127:9: [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 (diptr->options, "rw,", data/di-4.47/C/didiskutil.c:128: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:134:9: [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 (diptr->options, "expro,", data/di-4.47/C/didiskutil.c:135: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:141:9: [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 (diptr->options, "exprwany,", data/di-4.47/C/didiskutil.c:142: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:148:9: [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 (diptr->options, "expanon,", data/di-4.47/C/didiskutil.c:149: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:155:9: [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 (diptr->options, "expkerb,", data/di-4.47/C/didiskutil.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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:162:9: [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 (diptr->options, "force,", data/di-4.47/C/didiskutil.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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:169:9: [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 (diptr->options, "grpid,", data/di-4.47/C/didiskutil.c:170: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:176:9: [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 (diptr->options, "magiclinks,", data/di-4.47/C/didiskutil.c:177: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:183:9: [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 (diptr->options, "mlsd,", data/di-4.47/C/didiskutil.c:184: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:190:9: [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 (diptr->options, "noatime,", data/di-4.47/C/didiskutil.c:191: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:197:9: [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 (diptr->options, "nocache,", data/di-4.47/C/didiskutil.c:198: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:204:9: [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 (diptr->options, "nocoredump,", data/di-4.47/C/didiskutil.c:205: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:211:9: [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 (diptr->options, "nodev,", data/di-4.47/C/didiskutil.c:212: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:218:9: [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 (diptr->options, "nodevmtime,", data/di-4.47/C/didiskutil.c:219: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:225:9: [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 (diptr->options, "noexec,", data/di-4.47/C/didiskutil.c:226: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:232:9: [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 (diptr->options, "nosuid,", data/di-4.47/C/didiskutil.c:233: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:239:9: [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 (diptr->options, "quota,", data/di-4.47/C/didiskutil.c:240: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:246:9: [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 (diptr->options, "secure,", data/di-4.47/C/didiskutil.c:247: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:253:9: [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 (diptr->options, "smsync2,", data/di-4.47/C/didiskutil.c:254: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:260:9: [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 (diptr->options, "softdep,", data/di-4.47/C/didiskutil.c:261: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:267:9: [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 (diptr->options, "symperm,", data/di-4.47/C/didiskutil.c:268: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:274:9: [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 (diptr->options, "sync,", data/di-4.47/C/didiskutil.c:275: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:281:9: [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 (diptr->options, "sync,", data/di-4.47/C/didiskutil.c:282: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:288:9: [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 (diptr->options, "throttle,", data/di-4.47/C/didiskutil.c:289: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:295:9: [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 (diptr->options, "union,", data/di-4.47/C/didiskutil.c:296: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:302:9: [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 (diptr->options, "union,", data/di-4.47/C/didiskutil.c:303: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:309:9: [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 (diptr->options, "removable,", data/di-4.47/C/didiskutil.c:310: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:316:9: [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 (diptr->options, "persistent,", data/di-4.47/C/didiskutil.c:317: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:323:9: [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 (diptr->options, "shared,", data/di-4.47/C/didiskutil.c:324: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:330:9: [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 (diptr->options, "blockbased,", data/di-4.47/C/didiskutil.c:331: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:337:9: [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 (diptr->options, "mime,", data/di-4.47/C/didiskutil.c:338: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:344:9: [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 (diptr->options, "query,", data/di-4.47/C/didiskutil.c:345: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:351:9: [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 (diptr->options, "attr,", data/di-4.47/C/didiskutil.c:352: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:372:9: [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 (diptr->options, "hard,", data/di-4.47/C/didiskutil.c:373: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:382:9: [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. strncat (diptr->options, tmp, data/di-4.47/C/didiskutil.c:383: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:392:9: [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. strncat (diptr->options, tmp, data/di-4.47/C/didiskutil.c:393: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:400:9: [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 (diptr->options, "intr,", data/di-4.47/C/didiskutil.c:401: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:407:9: [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 (diptr->options, "udp,", data/di-4.47/C/didiskutil.c:408: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/didiskutil.c:528: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). return strlen (poolname); data/di-4.47/C/digetentries.c:257:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, mntEntry.mnt_special, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:258:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mntEntry.mnt_mountp, DI_NAME_LEN); data/di-4.47/C/digetentries.c:281:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->options, mntEntry.mnt_mntopts, DI_OPT_LEN); data/di-4.47/C/digetentries.c:284:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, mntEntry.mnt_fstype, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:381:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, mntEntry->mnt_fsname, data/di-4.47/C/digetentries.c:383:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mntEntry->mnt_dir, (Size_t) DI_NAME_LEN); data/di-4.47/C/digetentries.c:384:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, mntEntry->mnt_type, (Size_t) DI_TYPE_LEN); data/di-4.47/C/digetentries.c:415:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->options, mntEntry->mnt_opts, (Size_t) DI_OPT_LEN); data/di-4.47/C/digetentries.c:499:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (path, ipath, MAXPATHLEN); data/di-4.47/C/digetentries.c:500: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 (path); data/di-4.47/C/digetentries.c:514:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (len + strlen(dent->d_name) + 1 > MAXPATHLEN) { data/di-4.47/C/digetentries.c:519:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (&path[len+1], dent->d_name, MAXPATHLEN - len - 1); data/di-4.47/C/digetentries.c:569:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, tspecial, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:570:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, path + 11, DI_NAME_LEN); data/di-4.47/C/digetentries.c:572:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy (diptr->name, "/", DI_NAME_LEN); data/di-4.47/C/digetentries.c:646:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mntEntry.mt_dev, DI_NAME_LEN); data/di-4.47/C/digetentries.c:647:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, mntEntry.mt_filsys, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:649:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, mntEntry.mt_dev, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:650:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mntEntry.mt_filsys, DI_NAME_LEN); data/di-4.47/C/digetentries.c:653:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->options, mntEntry.mt_mntopts, DI_OPT_LEN); data/di-4.47/C/digetentries.c:760:13: [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 (diptr->options, "v3,", data/di-4.47/C/digetentries.c:761: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:789:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, sp->f_mntfromname, (Size_t) DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:790:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, sp->f_mntonname, (Size_t) DI_NAME_LEN); data/di-4.47/C/digetentries.c:806:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, sp->f_fstypename, (Size_t) DI_TYPE_LEN); data/di-4.47/C/digetentries.c:816:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, mnt_names [fstype], DI_TYPE_LEN); data/di-4.47/C/digetentries.c:905:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, mntbufp [idx].f_mntfromname, data/di-4.47/C/digetentries.c:907:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mntbufp [idx].f_mntonname, DI_NAME_LEN); data/di-4.47/C/digetentries.c:936:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "none", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:943:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "ufs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:950:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "nfs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:957:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "mfs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:964:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "msdos", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:971:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "lfs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:978:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "lofs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:985:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "fdesc", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:992:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "portal", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:999:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "null", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1006:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "umap", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1013:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "kernfs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1020:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "pfs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1027:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "afs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1034:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "iso9660fs", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1041:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "iso9660", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1048:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "cd9660", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1055:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "union", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1063:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, mntbufp [idx].f_fstypename, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1070:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, mnt_names [fstype], DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1211:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, sp->f_mntfromname, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:1212:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, sp->f_mntonname, DI_NAME_LEN); data/di-4.47/C/digetentries.c:1213:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, sp->f_fstypename, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1316:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, fsdbuf [idx].fd_devname, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:1317:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, fsdbuf [idx].fd_path, DI_NAME_LEN); data/di-4.47/C/digetentries.c:1341:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, gt_names [fstype], DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1502:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, data/di-4.47/C/digetentries.c:1505:13: [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 (diptr->special, ":", data/di-4.47/C/digetentries.c:1506:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DI_SPEC_NAME_LEN - strlen (diptr->special) - 1); data/di-4.47/C/digetentries.c:1508:9: [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. strncat (diptr->special, data/di-4.47/C/digetentries.c:1510: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). DI_SPEC_NAME_LEN - strlen (diptr->special) - 1); data/di-4.47/C/digetentries.c:1511:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, data/di-4.47/C/digetentries.c:1520:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, data/di-4.47/C/digetentries.c:1526:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, ve->vfsent_name, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1529:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->options, (char *) vmt2dataptr (vmtp, VMT_ARGS), data/di-4.47/C/digetentries.c:1594:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, p, DI_NAME_LEN); data/di-4.47/C/digetentries.c:1613:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (handleName, "\\\\.\\", MSDOS_BUFFER_SIZE); data/di-4.47/C/digetentries.c:1615: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). handleName[strlen(handleName)-1] = '\0'; data/di-4.47/C/digetentries.c:1712:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, path.Path(), DI_NAME_LEN); data/di-4.47/C/digetentries.c:1713:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, fsinfo.device_name, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:1714:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, fsinfo.fsh_name, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:1804:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, mpString.c_str(), DI_NAME_LEN); data/di-4.47/C/digetentries.c:1805:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, fsinfo.fi_device_path, DI_SPEC_NAME_LEN); data/di-4.47/C/digetentries.c:1806:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, fsinfo.fi_driver_name, DI_TYPE_LEN); data/di-4.47/C/digetentries.c:2035:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "ODS-2", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:2037: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 (returnedDevName) > 4 && returnedDevName[4] == 'L') data/di-4.47/C/digetentries.c:2039:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "LD", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:2057:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, returnBuffers[i], returnLengths[i]); data/di-4.47/C/digetentries.c:2062:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->name, returnBuffers[i], returnLengths[i]); data/di-4.47/C/digetentries.c:2068:15: [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 (diptr->options, "dev=", data/di-4.47/C/digetentries.c:2069:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2070:15: [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. strncat (diptr->options, returnBuffers[i], data/di-4.47/C/digetentries.c:2071:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2072:15: [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 (diptr->options, ",", data/di-4.47/C/digetentries.c:2073:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2079:17: [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. strncat (diptr->options, returnBuffers[i], data/di-4.47/C/digetentries.c:2080: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2081:17: [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 (diptr->options, "),", data/di-4.47/C/digetentries.c:2082: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2152:17: [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 (diptr->options, "Offline,", data/di-4.47/C/digetentries.c:2153: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2157:17: [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 (diptr->options, "Online,", data/di-4.47/C/digetentries.c:2158: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2165:17: [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 (diptr->options, "Mounted,", data/di-4.47/C/digetentries.c:2166: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2177:17: [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 (diptr->options, "Shareable,", data/di-4.47/C/digetentries.c:2178: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2185:17: [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 (diptr->options, "Shadow Master,", data/di-4.47/C/digetentries.c:2186: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2193:17: [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 (diptr->options, "Shadow Member(", data/di-4.47/C/digetentries.c:2194: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). DI_OPT_LEN - strlen (diptr->options) - 1); data/di-4.47/C/digetentries.c:2201:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "ODS-2/0", DI_TYPE_LEN); data/di-4.47/C/digetentries.c:2208:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (diptr->fsType, "ODS-5", DI_TYPE_LEN); data/di-4.47/C/digetinfo.c:164:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, statBuf.f_basetype, DI_TYPE_LEN); data/di-4.47/C/digetinfo.c:443:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->fsType, fsName, DI_TYPE_LEN); data/di-4.47/C/digetinfo.c:444:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diptr->special, volName, DI_SPEC_NAME_LEN); data/di-4.47/C/dimain.c:156:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy (diopts->sortType, "m", DI_SORT_MAX); /* default - by mount point*/ data/di-4.47/C/dimain.c:303:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tempSortType, diopts->sortType, DI_SORT_MAX); data/di-4.47/C/dimain.c:304:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy (diopts->sortType, "s", DI_SORT_MAX); data/di-4.47/C/dimain.c:306:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diopts->sortType, tempSortType, DI_SORT_MAX); data/di-4.47/C/dimain.c:350:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lastpool, dinfo->special, DI_SPEC_NAME_LEN); data/di-4.47/C/dimain.c:550:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dinfo->special, tspecial, DI_SPEC_NAME_LEN); data/di-4.47/C/dimain.c:1247:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (zi->zoneDisplay, zi->zones[i].name, MAXPATHLEN); data/di-4.47/C/dimain.c:1305:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (spec); data/di-4.47/C/diquota.c:388:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tname, diqinfo->name, DI_NAME_LEN); data/di-4.47/C/diquota.c:623:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (host, diqinfo->special, DI_SPEC_NAME_LEN); data/di-4.47/C/display.c:176:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (totals.name, DI_GT("Total"), (Size_t) DI_NAME_LEN); data/di-4.47/C/display.c:245:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (tempSortType, diopts->sortType, DI_SORT_MAX); data/di-4.47/C/display.c:246:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy (diopts->sortType, "s", DI_SORT_MAX); data/di-4.47/C/display.c:248:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (diopts->sortType, tempSortType, DI_SORT_MAX); data/di-4.47/C/display.c:268:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lastpool, dinfo->special, DI_SPEC_NAME_LEN); data/di-4.47/C/display.c:273: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). strcmp (dinfo->special + strlen (dinfo->special) - 5, data/di-4.47/C/display.c:466: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). vlen = strlen (val); data/di-4.47/C/display.c:1189: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). olen = (Size_t) strlen (pstr); data/di-4.47/C/display.c:1220:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (tformat, "%s", sizeof (tformat)); data/di-4.47/C/display.c:1222:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (tformat, "\"%s\"", sizeof (tformat)); data/di-4.47/C/display.c:1232:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (fstr, tformat, maxsize); data/di-4.47/C/display.c:1420: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). len = (unsigned int) strlen (dinfo->name); data/di-4.47/C/display.c:1426: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). len = (unsigned int) strlen (dinfo->special); data/di-4.47/C/display.c:1432: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). len = (unsigned int) strlen (dinfo->fsType); data/di-4.47/C/display.c:1438: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). len = (unsigned int) strlen (dinfo->options); data/di-4.47/C/display.c:1444: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). len = (unsigned int) strlen (dinfo->mountTime); data/di-4.47/C/display.c:1470: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). slen = strlen (str); data/di-4.47/C/display.c:1475:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return strlen (str); data/di-4.47/C/display.c:1482:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/di-4.47/C/getoptn.c:89: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). info->optinfo[i].optionlen = strlen (info->opts[i].option); data/di-4.47/C/getoptn.c:268:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (v, ptr, opt->valsiz - 1); data/di-4.47/C/getoptn.c:361: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). info.arglen = strlen (arg); data/di-4.47/C/options.c:165:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dbsstr, DI_DEFAULT_DISP_SIZE, sizeof (dbsstr)); /* default */ data/di-4.47/C/options.c:168: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). argvptr = argv [0] + strlen (argv [0]) - 2; data/di-4.47/C/options.c:181:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (dbsstr, "512", sizeof (dbsstr)); data/di-4.47/C/options.c:189:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dbsstr, ptr, sizeof (dbsstr)-1); data/di-4.47/C/options.c:194:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dbsstr, ptr, sizeof (dbsstr)-1); data/di-4.47/C/options.c:555:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (padata->diData->zoneInfo.zoneDisplay, "all", MAXPATHLEN); data/di-4.47/C/options.c:562:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (padata->dbsstr, "512", padata->dbsstr_sz); data/di-4.47/C/options.c:570:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant character. strncpy (padata->dbsstr, "H", padata->dbsstr_sz); data/di-4.47/C/options.c:624:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (padata->diopts->sortType, value, DI_SORT_MAX); data/di-4.47/C/options.c:629:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (padata->diopts->sortType, "rm", DI_SORT_MAX); data/di-4.47/C/options.c:634:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy (padata->diopts->sortType, "tm", DI_SORT_MAX); data/di-4.47/C/options.c:700: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). len = (unsigned int) strlen (ptr); data/di-4.47/C/options.c:708:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lptr, ptr, (Size_t) len); data/di-4.47/C/options.c:783: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). len = (unsigned int) strlen (ptr); data/di-4.47/C/strdup.c:49:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (ptr); data/di-4.47/C/strdup.c:51:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (nptr, ptr, len); data/di-4.47/C/strstr.c:39:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (srch); data/di-4.47/C/trimchar.c:32: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 = (int) strlen (str); ANALYSIS SUMMARY: Hits = 439 Lines analyzed = 18863 in approximately 0.55 seconds (34415 lines/second) Physical Source Lines of Code (SLOC) = 13083 Hits@level = [0] 302 [1] 248 [2] 124 [3] 9 [4] 55 [5] 3 Hits@level+ = [0+] 741 [1+] 439 [2+] 191 [3+] 67 [4+] 58 [5+] 3 Hits/KSLOC@level+ = [0+] 56.6384 [1+] 33.555 [2+] 14.5991 [3+] 5.12115 [4+] 4.43323 [5+] 0.229305 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.