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/empire-hub-1.0.2.2/hub.c FINAL RESULTS: data/empire-hub-1.0.2.2/hub.c:209:2: [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(line,com->buffer,len); data/empire-hub-1.0.2.2/hub.c:1166:27: [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). sock_in.sin_port = htons(atoi(port)); data/empire-hub-1.0.2.2/hub.c:1170:26: [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). listen_fd = open_listen(atoi(localport)); data/empire-hub-1.0.2.2/hub.c:136:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str,line+start,end-start+1); data/empire-hub-1.0.2.2/hub.c:360:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(args,line+first,last-first+1); data/empire-hub-1.0.2.2/hub.c:381:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(command,line+start,end-start); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 1184 in approximately 0.05 seconds (26029 lines/second) Physical Source Lines of Code (SLOC) = 888 Hits@level = [0] 109 [1] 3 [2] 3 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 115 [1+] 6 [2+] 3 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 129.505 [1+] 6.75676 [2+] 3.37838 [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.