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/unhtml-2.3.9/esc.c Examining data/unhtml-2.3.9/esc.h Examining data/unhtml-2.3.9/ops.c Examining data/unhtml-2.3.9/ops.h Examining data/unhtml-2.3.9/unhtml.c FINAL RESULTS: data/unhtml-2.3.9/esc.c:17:8: [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 bff[MXBF]; data/unhtml-2.3.9/unhtml.c:76:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((inStream = fopen (argv[1], "r")) == NULL) { data/unhtml-2.3.9/esc.c:23:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (ch=getchar()) != EOF) data/unhtml-2.3.9/ops.c:146:10: [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(tag) + 1; data/unhtml-2.3.9/unhtml.c:92:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); data/unhtml-2.3.9/unhtml.c:146:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); data/unhtml-2.3.9/unhtml.c:184:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); data/unhtml-2.3.9/unhtml.c:190:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); data/unhtml-2.3.9/unhtml.c:209:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); data/unhtml-2.3.9/unhtml.c:227:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc (inStream); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 772 in approximately 0.05 seconds (15686 lines/second) Physical Source Lines of Code (SLOC) = 486 Hits@level = [0] 17 [1] 8 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 27 [1+] 10 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 55.5556 [1+] 20.5761 [2+] 4.11523 [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.