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/apparix-11-062/src/apparix.c Examining data/apparix-11-062/src/version.c Examining data/apparix-11-062/src/version.h Examining data/apparix-11-062/util/alloc.c Examining data/apparix-11-062/util/alloc.h Examining data/apparix-11-062/util/array.c Examining data/apparix-11-062/util/array.h Examining data/apparix-11-062/util/compile.h Examining data/apparix-11-062/util/ding.c Examining data/apparix-11-062/util/ding.h Examining data/apparix-11-062/util/equate.c Examining data/apparix-11-062/util/equate.h Examining data/apparix-11-062/util/err.c Examining data/apparix-11-062/util/err.h Examining data/apparix-11-062/util/getpagesize.h Examining data/apparix-11-062/util/gralloc.c Examining data/apparix-11-062/util/gralloc.h Examining data/apparix-11-062/util/hash.c Examining data/apparix-11-062/util/hash.h Examining data/apparix-11-062/util/heap.c Examining data/apparix-11-062/util/heap.h Examining data/apparix-11-062/util/inttypes.h Examining data/apparix-11-062/util/io.c Examining data/apparix-11-062/util/io.h Examining data/apparix-11-062/util/let.c Examining data/apparix-11-062/util/let.h Examining data/apparix-11-062/util/list.c Examining data/apparix-11-062/util/list.h Examining data/apparix-11-062/util/minmax.h Examining data/apparix-11-062/util/opt.c Examining data/apparix-11-062/util/opt.h Examining data/apparix-11-062/util/rand.c Examining data/apparix-11-062/util/rand.h Examining data/apparix-11-062/util/ting.c Examining data/apparix-11-062/util/ting.h Examining data/apparix-11-062/util/tok.c Examining data/apparix-11-062/util/tok.h Examining data/apparix-11-062/util/tr.c Examining data/apparix-11-062/util/tr.h Examining data/apparix-11-062/util/types.c Examining data/apparix-11-062/util/types.h FINAL RESULTS: data/apparix-11-062/src/apparix.c:732:20: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ; int cpstat = system(cmd->str) data/apparix-11-062/src/apparix.c:1268:22: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ; FILE* p = popen("pwd", "r") data/apparix-11-062/util/err.c:44:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ; vfprintf(fp, fmt, *args) data/apparix-11-062/util/err.c:152:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ; vfprintf(stderr, fmt, args) data/apparix-11-062/util/err.c:170:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. ; vfprintf(fp, fmt, *args) data/apparix-11-062/util/err.h:218:25: [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. __attribute__ ((format (printf, 3, 4))) data/apparix-11-062/util/err.h:233:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/err.h:244:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/err.h:256:25: [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. __attribute__ ((format (printf, 3, 4))) data/apparix-11-062/util/err.h:267:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/err.h:277:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/err.h:288:25: [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. __attribute__ ((format (printf, 3, 4))) data/apparix-11-062/util/err.h:299:25: [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. __attribute__ ((format (printf, 3, 4))) data/apparix-11-062/util/opt.c:787:16: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. ; execlp("man", "man", minime->str, NULL) data/apparix-11-062/util/ting.c:138:13: [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. ; npf = vsnprintf(buf, PRINT_BUF_SIZE, fmt, args2) data/apparix-11-062/util/ting.c:141:13: [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. ; npf = vsnprintf(buf, PRINT_BUF_SIZE, fmt, *args) data/apparix-11-062/util/ting.c:165:19: [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. ; npf = vsnprintf(txtbuf->str, m+1, fmt, args2) data/apparix-11-062/util/ting.c:168:19: [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. ; npf = vsnprintf(txtbuf->str, m+1, fmt, *args) data/apparix-11-062/util/ting.h:316:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/ting.h:327:25: [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. __attribute__ ((format (printf, 2, 3))) data/apparix-11-062/util/ting.h:342:25: [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. __attribute__ ((format (printf, 4, 5))) data/apparix-11-062/src/apparix.c:617:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ; const char* s_exclude = getenv("APPARIXEXCLUDE") data/apparix-11-062/src/apparix.c:764:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ; const char* echo_s = getenv("APPARIXPURGE") data/apparix-11-062/src/apparix.c:972:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. { const char* logfile = getenv("APPARIXLOG") data/apparix-11-062/src/apparix.c:1465:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. { const char* h = getenv("HOME") data/apparix-11-062/src/apparix.c:1467:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ; const char* t = getenv("APPARIXTAG") data/apparix-11-062/util/alloc.c:71:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. { const char* tin = getenv("TINGEA_MEM_SIGNAL") data/apparix-11-062/util/array.c:460:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. { unsigned long r = (random() >> 3) % n /* Fisher-Yates shuffle */ data/apparix-11-062/util/err.c:97:30: [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. mcxLogLevelSetByString(getenv("TINGEA_LOG_TAG")) data/apparix-11-062/util/io.c:208:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ( getenv("TINGEA_PLUS_APPEND") data/apparix-11-062/util/rand.c:47:25: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. { double a = 1.0 - (random() * 1.0) / (RAND_MAX + 1.0) data/apparix-11-062/util/rand.c:48:25: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ; double b = 1.0 - (random() * 1.0) / (RAND_MAX + 1.0) data/apparix-11-062/util/rand.c:81:40: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ; double r = 2 * radius * (((1.0 * random()) / RAND_MAX) - 0.5) data/apparix-11-062/util/rand.c:84:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ; double p = (1.0 * random()) / RAND_MAX data/apparix-11-062/util/rand.c:87:36: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ; r = 2 * radius * (((1.0 * random()) / RAND_MAX) - 0.5) data/apparix-11-062/util/rand.c:229:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. { U = random() data/apparix-11-062/util/rand.c:232:14: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ; j = random() & 0x00FFFFFF /* 24 bit for the x-value */ data/apparix-11-062/util/rand.h:17:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define mcxUniform0 ((1.0 * random()) / ((double) RAND_MAX + 1.0)) data/apparix-11-062/util/rand.h:18:36: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define mcxUniform1 (1.0 - ((1.0 * random()) / ((double) RAND_MAX + 1.0))) data/apparix-11-062/src/apparix.c:765:36: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ; mcxenum echo_mode = echo_s ? atoi(echo_s) : 0 data/apparix-11-062/src/apparix.c:1258:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[MY_PATH_MAX+1] data/apparix-11-062/src/apparix.c:1620:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ; num = atoi(opt->val) data/apparix-11-062/src/apparix.c:1637:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). : pick = atoi(opt->val) data/apparix-11-062/util/alloc.c:73:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). { unsigned tintin = atoi(tin) data/apparix-11-062/util/array.c:111:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy data/apparix-11-062/util/array.c:145:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char*)base) + k * size, ((char*)base) + l * size, size) data/apparix-11-062/util/array.c:462:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(mem_cell, data + (n-1) * mem_size, mem_size) data/apparix-11-062/util/array.c:463:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ; memcpy(data + (n-1) * mem_size, data + r * mem_size, mem_size) data/apparix-11-062/util/array.c:464:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ; memcpy(data + r * mem_size, mem_cell, mem_size) data/apparix-11-062/util/ding.c:35:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rts, str, n) data/apparix-11-062/util/heap.c:116:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. { memcpy(heapRoot + i*elsz, heapRoot + elsz*((i-1)/2), elsz) data/apparix-11-062/util/heap.c:119:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(heapRoot + i*elsz, elemch, elsz) data/apparix-11-062/util/heap.c:134:16: [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(heapRoot+root*elsz, heapRoot+d*elsz, elsz) data/apparix-11-062/util/heap.c:140:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(heapRoot+root*elsz, elemch, elsz) data/apparix-11-062/util/io.c:297:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ; else if ((xf->fp = fopen(fname, xf->mode)) == NULL) data/apparix-11-062/util/io.c:527: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 cbuf[MCX_IORL_BSZ] data/apparix-11-062/util/io.h:388:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. , const unsigned char abcd[4] data/apparix-11-062/util/io.h:393:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. , const unsigned char abcd[4] data/apparix-11-062/util/opt.c:139:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char argcpy[501] data/apparix-11-062/util/opt.c:391:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. lftToken = (char *) rltSigns[i] data/apparix-11-062/util/opt.c:431:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. rgtToken = (char *) rltSigns[i] data/apparix-11-062/util/ting.c:127:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char buf[PRINT_BUF_SIZE], *src data/apparix-11-062/util/ting.c:316: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 num[500] data/apparix-11-062/util/ting.c:347: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 num[128] data/apparix-11-062/util/ting.c:564:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ting->str, str, sz) data/apparix-11-062/util/ting.c:600:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ; memcpy(ting->str, str, sz) data/apparix-11-062/util/ting.c:626:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(str, ting->str+offset, (dim) length) data/apparix-11-062/src/apparix.c:928:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ; int len = strlen(bm->mark->str) data/apparix-11-062/util/ding.c:25: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). { return mcxStrNDup(str, strlen(str)) data/apparix-11-062/util/ding.c:49:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ; z += (len >= 0) ? (dim) len : strlen(p) data/apparix-11-062/util/ding.c:88:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { const char* z = offset >= 0 ? p+offset : p + strlen(p) data/apparix-11-062/util/ding.c:100:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { const char* z = offset >= 0 ? p+offset : p + strlen(p) data/apparix-11-062/util/ding.c:396:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { dim ls = strlen(s) data/apparix-11-062/util/ding.c:397:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ; dim lt = strlen(t) data/apparix-11-062/util/hash.c:1083:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { dim l = strlen(s) data/apparix-11-062/util/io.c:427:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(xf->fp) data/apparix-11-062/util/io.c:589:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (k-- > 0 && (r = read(fileno(xf->fp), dst->str+dst->len, psz)) > 0) data/apparix-11-062/util/io.c:595:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). && (r = read(fileno(xf->fp), dst->str+dst->len, rem)) > 0 data/apparix-11-062/util/io.c:938:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ; n_trailing = strlen(s) /* truncintok */ data/apparix-11-062/util/io.c:967:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ; int patlen = strlen(pattern) /* truncintok */ data/apparix-11-062/util/opt.c:141:16: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). { strncpy(argcpy, arg, (eq-arg)) data/apparix-11-062/util/opt.c:569: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). { int thislen = strlen(opt->tag) /* truncintok */ data/apparix-11-062/util/opt.c:571:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). thislen += 1 + strlen(opt->descr_arg) /* truncintok */ data/apparix-11-062/util/opt.c:640: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). { dim srclen = strlen(src) data/apparix-11-062/util/ting.c:385:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { dim length = string ? strlen(string) : 0 data/apparix-11-062/util/ting.c:393:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). { strncpy(ting->str, string, length) data/apparix-11-062/util/ting.c:639: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). ; ting->len = strlen(str) data/apparix-11-062/util/ting.c:675:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , str? strlen(str) : 0 /* string length */ data/apparix-11-062/util/ting.c:690: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). { dim len = strlen(str) data/apparix-11-062/util/ting.c:745: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). , str ? strlen(str) : 0 /* string length */ data/apparix-11-062/util/tok.c:63:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(offset) data/apparix-11-062/util/tok.c:137:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(offset) data/apparix-11-062/util/tr.c:189: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). ; dim len = strlen(src) data/apparix-11-062/util/tr.c:521: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). ; const char* z = spec + strlen(spec) ANALYSIS SUMMARY: Hits = 94 Lines analyzed = 14907 in approximately 0.31 seconds (47591 lines/second) Physical Source Lines of Code (SLOC) = 10376 Hits@level = [0] 92 [1] 27 [2] 28 [3] 18 [4] 21 [5] 0 Hits@level+ = [0+] 186 [1+] 94 [2+] 67 [3+] 39 [4+] 21 [5+] 0 Hits/KSLOC@level+ = [0+] 17.926 [1+] 9.05937 [2+] 6.45721 [3+] 3.75867 [4+] 2.0239 [5+] 0 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.