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/screen-message-0.25/gtkzoom.h Examining data/screen-message-0.25/sm.c Examining data/screen-message-0.25/gtkzoom.c FINAL RESULTS: data/screen-message-0.25/sm.c:296:14: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long (argc, argv, "hVf:b:n:r:a:i", long_options, (int *) 0)) != EOF) { data/screen-message-0.25/sm.c:320:16: [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). rotation = atoi(optarg); data/screen-message-0.25/sm.c:323:17: [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). alignment = atoi(optarg); data/screen-message-0.25/sm.c:110:6: [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(text) > 0) { data/screen-message-0.25/sm.c:194:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gsize read; data/screen-message-0.25/sm.c:197:66: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((stat = g_io_channel_read_chars(chan, buf, sizeof(buf), &read, &err)) == G_IO_STATUS_NORMAL && err == NULL) { data/screen-message-0.25/sm.c:198:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_string_append_len(partial_input, buf, read); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 627 in approximately 0.04 seconds (14793 lines/second) Physical Source Lines of Code (SLOC) = 489 Hits@level = [0] 4 [1] 4 [2] 2 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 11 [1+] 7 [2+] 3 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 22.4949 [1+] 14.3149 [2+] 6.13497 [3+] 2.04499 [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.