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/dynamite-0.1.1/lib/libdynamite.h Examining data/dynamite-0.1.1/lib/libdynamite.c Examining data/dynamite-0.1.1/src/dynamite.c Examining data/dynamite-0.1.1/src/queen_extract.c Examining data/dynamite-0.1.1/src/id-shr-extract.c FINAL RESULTS: data/dynamite-0.1.1/src/dynamite.c:35:31: [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 (!(cookie.input_file = fopen(argv[1], "r"))) { data/dynamite-0.1.1/src/dynamite.c:41:31: [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 (!(cookie.output_file = fopen(argv[2], "w"))) { data/dynamite-0.1.1/src/id-shr-extract.c:27:3: [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 (buffer, c->in_buffer + c->in_buffer_index, size); data/dynamite-0.1.1/src/id-shr-extract.c:45: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 filename[16]; data/dynamite-0.1.1/src/id-shr-extract.c:46:12: [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. unsigned char buf[4]; data/dynamite-0.1.1/src/id-shr-extract.c:54:13: [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). in_file = fopen(argv[1], "r"); data/dynamite-0.1.1/src/id-shr-extract.c:138:23: [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). cookie.out_file = fopen(filename, "w"); data/dynamite-0.1.1/src/queen_extract.c:41: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 filename[16]; data/dynamite-0.1.1/src/queen_extract.c:45:24: [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). cookie->input_file = fopen(filename, "r"); data/dynamite-0.1.1/src/queen_extract.c:107:26: [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). cookie.output_file = fopen(name, "w"); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 819 in approximately 0.08 seconds (10766 lines/second) Physical Source Lines of Code (SLOC) = 613 Hits@level = [0] 31 [1] 0 [2] 10 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 41 [1+] 10 [2+] 10 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 66.8842 [1+] 16.3132 [2+] 16.3132 [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.