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/clthreads-2.4.2/source/itc_ctrl.cc Examining data/clthreads-2.4.2/source/a_thread.cc Examining data/clthreads-2.4.2/source/itc_ip1q.cc Examining data/clthreads-2.4.2/source/p_thread.cc Examining data/clthreads-2.4.2/source/itc_mesg.cc Examining data/clthreads-2.4.2/source/textmsg.cc Examining data/clthreads-2.4.2/source/clthreads.h FINAL RESULTS: data/clthreads-2.4.2/source/a_thread.cc:47:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. M->vprintf (fmt, ap); data/clthreads-2.4.2/source/clthreads.h:685:10: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void vprintf (const char *fmt, va_list ap); data/clthreads-2.4.2/source/clthreads.h:686:10: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void printf (const char *fmt, ...); data/clthreads-2.4.2/source/textmsg.cc:42:15: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void Textmsg::vprintf (const char *fmt, va_list ap) data/clthreads-2.4.2/source/textmsg.cc:44:16: [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. _strlen += vsnprintf (_text + _strlen, _size - _strlen, fmt, ap); data/clthreads-2.4.2/source/textmsg.cc:49:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void Textmsg::printf (const char *fmt, ...) data/clthreads-2.4.2/source/textmsg.cc:54:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf (fmt, ap); data/clthreads-2.4.2/source/a_thread.cc:37:21: [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). if (*p) _inst = atoi (p); data/clthreads-2.4.2/source/clthreads.h:651: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 [32]; data/clthreads-2.4.2/source/a_thread.cc:34:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (_name, name, 32); data/clthreads-2.4.2/source/clthreads.h:675: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). size_t strlen (void) const { return _strlen; } ANALYSIS SUMMARY: Hits = 11 Lines analyzed = 1186 in approximately 0.07 seconds (16188 lines/second) Physical Source Lines of Code (SLOC) = 764 Hits@level = [0] 0 [1] 2 [2] 2 [3] 0 [4] 7 [5] 0 Hits@level+ = [0+] 11 [1+] 11 [2+] 9 [3+] 7 [4+] 7 [5+] 0 Hits/KSLOC@level+ = [0+] 14.3979 [1+] 14.3979 [2+] 11.7801 [3+] 9.1623 [4+] 9.1623 [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.