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/gperiodic-3.0.3/gperiodic.c Examining data/gperiodic-3.0.3/gperiodic.h Examining data/gperiodic-3.0.3/table_data.h FINAL RESULTS: data/gperiodic-3.0.3/table_data.h:83:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buffer, entry->info[MELTING]); data/gperiodic-3.0.3/gperiodic.c:497:22: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while( -1 != (ch=getopt(argc,argv,optstr)) ) { data/gperiodic-3.0.3/gperiodic.c:68: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 fillout[HEADERTEXTLEN]; data/gperiodic-3.0.3/gperiodic.c:107: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 *buff, tmpbuf[128]; data/gperiodic-3.0.3/gperiodic.c:528:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int atomicNumber = atoi(argv[optind]); data/gperiodic-3.0.3/gperiodic.h:65: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 *info[MAX_INFO_NR]; data/gperiodic-3.0.3/table_data.h:80: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 buffer[20]; ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 942 in approximately 0.12 seconds (8111 lines/second) Physical Source Lines of Code (SLOC) = 693 Hits@level = [0] 16 [1] 0 [2] 5 [3] 1 [4] 1 [5] 0 Hits@level+ = [0+] 23 [1+] 7 [2+] 7 [3+] 2 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 33.189 [1+] 10.101 [2+] 10.101 [3+] 2.886 [4+] 1.443 [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.