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/nototools-0.2.13/nototools/glyph_image/glyph_image.c FINAL RESULTS: data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:31:3: [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[32]; data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:106:7: [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(buf, "%d,%d", adv_int, adv_frac); data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:108:7: [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(buf, "%d", adv_int); data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:149: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). pixel_height = atoi(argv[2]); data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:156: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). first_glyph = atoi(argv[3]); data/nototools-0.2.13/nototools/glyph_image/glyph_image.c:159:18: [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). last_glyph = atoi(argv[4]); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 163 in approximately 0.11 seconds (1467 lines/second) Physical Source Lines of Code (SLOC) = 127 Hits@level = [0] 25 [1] 0 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 31 [1+] 6 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 244.094 [1+] 47.2441 [2+] 47.2441 [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.