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/tcl-signal-1.4.4/signal_ext.c FINAL RESULTS: data/tcl-signal-1.4.4/signal_ext.c:328:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(signal_handlers[sig].signal_proc, procname); data/tcl-signal-1.4.4/signal_ext.c:592:12: [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). return atoi(arg); data/tcl-signal-1.4.4/signal_ext.c:599: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 tmp_sig_name[10]; /* 7 + 2 + 1 */ data/tcl-signal-1.4.4/signal_ext.c:605: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_sig_name, "Signal %d", i); data/tcl-signal-1.4.4/signal_ext.c:233:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( (result = read(fds[0], &sig, sizeof(sig))) <= 0 ) data/tcl-signal-1.4.4/signal_ext.c:327: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). if ((signal_handlers[sig].signal_proc = (char *)ckalloc(strlen(procname)+1))) ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 608 in approximately 0.03 seconds (23888 lines/second) Physical Source Lines of Code (SLOC) = 448 Hits@level = [0] 3 [1] 2 [2] 3 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 9 [1+] 6 [2+] 4 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 20.0893 [1+] 13.3929 [2+] 8.92857 [3+] 2.23214 [4+] 2.23214 [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.