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/haskell-attoparsec-0.13.2.4/examples/rfc2616.c FINAL RESULTS: data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:34:5: [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 value[0]; data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:69:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst->value, src, len); data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:84:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->value + (*dst)->len, src, len); data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:206: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[HTTP_MAX_HEADER_SIZE]; data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:228:7: [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). fd = open(argv[i], O_RDONLY); data/haskell-attoparsec-0.13.2.4/examples/rfc2616.c:209:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nread = read(fd, buf, sizeof(buf)); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 244 in approximately 0.08 seconds (3090 lines/second) Physical Source Lines of Code (SLOC) = 170 Hits@level = [0] 2 [1] 1 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 6 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 47.0588 [1+] 35.2941 [2+] 29.4118 [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.