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/geekcode-1.7.3/gc_appearance.c Examining data/geekcode-1.7.3/gc_computers.c Examining data/geekcode-1.7.3/gc_consoleio.c Examining data/geekcode-1.7.3/gc_entertainment.c Examining data/geekcode-1.7.3/gc_lifestyle.c Examining data/geekcode-1.7.3/gc_politics.c Examining data/geekcode-1.7.3/gc_type.c Examining data/geekcode-1.7.3/geekcode.c Examining data/geekcode-1.7.3/geekcode.h Examining data/geekcode-1.7.3/gc_translate.c FINAL RESULTS: data/geekcode-1.7.3/gc_translate.c:6:14: [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. void sexlife(char sexcode[16]){ data/geekcode-1.7.3/gc_translate.c:24:16: [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. void translate(char geekcode[64][16], int j){ data/geekcode-1.7.3/geekcode.c:27:14: [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. int readgeek(char geekcode[64][16],char *data,int *j,int *k){ data/geekcode-1.7.3/geekcode.c:46: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[256]; data/geekcode-1.7.3/geekcode.c:47: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 error[284]; data/geekcode-1.7.3/geekcode.c:48: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 data[1024]; data/geekcode-1.7.3/geekcode.c:49: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 geekcode[64][16]; data/geekcode-1.7.3/geekcode.c:70:10: [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). gcfile=fopen(filename,"r"); data/geekcode-1.7.3/geekcode.c:187:4: [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 junk[80]; data/geekcode-1.7.3/geekcode.c:714:12: [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). fcode = fopen("geekcode.sig", "w"); data/geekcode-1.7.3/geekcode.h:95:16: [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. void translate(char geekcode[64][16], int j); data/geekcode-1.7.3/geekcode.c:30:13: [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). for(i=0;i<strlen(data);i++){ data/geekcode-1.7.3/geekcode.c:60:12: [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). filename[strlen(filename)-1]=0; ANALYSIS SUMMARY: Hits = 13 Lines analyzed = 3468 in approximately 0.24 seconds (14392 lines/second) Physical Source Lines of Code (SLOC) = 2940 Hits@level = [0] 1939 [1] 2 [2] 11 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 1952 [1+] 13 [2+] 11 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 663.946 [1+] 4.42177 [2+] 3.7415 [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.