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/gxmessage-3.4.3/gxmessage.c FINAL RESULTS: data/gxmessage-3.4.3/gxmessage.c:268:11: [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). value = atoi (++colon); data/gxmessage-3.4.3/gxmessage.c:244: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). memmove (str, str + 1, strlen (str)); data/gxmessage-3.4.3/gxmessage.c:333:8: [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/gxmessage-3.4.3/gxmessage.c:512:50: [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). gtk_text_buffer_set_text (buf, gx.message_text, strlen (gx.message_text)); data/gxmessage-3.4.3/gxmessage.c:680:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (ch = getc (stdin)) != EOF ) { data/gxmessage-3.4.3/gxmessage.c:738: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 (s); data/gxmessage-3.4.3/gxmessage.c:1010: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). gx.message_len = strlen (tmpstr); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 1036 in approximately 0.04 seconds (24141 lines/second) Physical Source Lines of Code (SLOC) = 819 Hits@level = [0] 0 [1] 6 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 8.54701 [1+] 8.54701 [2+] 1.221 [3+] 0 [4+] 0 [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.