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/topal-80/externals-c.c Examining data/topal-80/ada-readline-c.c Examining data/topal-80/MIME-tool/mime.c Examining data/topal-80/ada-echo-c.c FINAL RESULTS: data/topal-80/MIME-tool/mime.c:231:2: [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[100]; data/topal-80/MIME-tool/mime.c:721:6: [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). f=fopen(path, "r"); data/topal-80/externals-c.c:46:10: [2] (misc) open: 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). return open (pathname, O_CREAT|O_APPEND|O_WRONLY, S_IRUSR|S_IWUSR); data/topal-80/externals-c.c:50:10: [2] (misc) open: 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). return open (pathname, O_CREAT|O_WRONLY, S_IRUSR|S_IWUSR); data/topal-80/externals-c.c:54:10: [2] (misc) open: 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). return open (pathname, O_RDONLY); data/topal-80/MIME-tool/mime.c:190:14: [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). wbuf=malloc(strlen(text)+2+(strlen(text)/max)); data/topal-80/MIME-tool/mime.c:190:30: [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). wbuf=malloc(strlen(text)+2+(strlen(text)/max)); data/topal-80/MIME-tool/mime.c:302:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch=fgetc(f))!=EOF) data/topal-80/MIME-tool/mime.c:335:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int nextch = fgetc(f); data/topal-80/MIME-tool/mime.c:378:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch=fgetc(f))!=EOF) data/topal-80/MIME-tool/mime.c:396:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch=fgetc(f))!=EOF) data/topal-80/MIME-tool/mime.c:419:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch=fgetc(f))!=EOF) ANALYSIS SUMMARY: Hits = 12 Lines analyzed = 1066 in approximately 0.05 seconds (21051 lines/second) Physical Source Lines of Code (SLOC) = 783 Hits@level = [0] 132 [1] 7 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 144 [1+] 12 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 183.908 [1+] 15.3257 [2+] 6.3857 [3+] 0 [4+] 0 [5+] 0 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.