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/py-radix-0.10.0/radix/_radix/radix.c Examining data/py-radix-0.10.0/radix/_radix/radix.h Examining data/py-radix-0.10.0/radix/_radix.c FINAL RESULTS: data/py-radix-0.10.0/radix/_radix/radix.h:76:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/py-radix-0.10.0/radix/_radix/radix.h:76:19: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define snprintf _snprintf data/py-radix-0.10.0/radix/_radix.c:67:9: [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 network[256], prefix[256]; data/py-radix-0.10.0/radix/_radix/radix.c:136:17: [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(&prefix->add.sin6, dest, 16); data/py-radix-0.10.0/radix/_radix/radix.c:144:17: [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(&prefix->add.sin, dest, 4); data/py-radix-0.10.0/radix/_radix/radix.c:795:9: [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 save[256], *cp, *ep; data/py-radix-0.10.0/radix/_radix/radix.c:806:9: [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(save, string, slen); data/py-radix-0.10.0/radix/_radix/radix.c:913:9: [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 addrbuf[128]; data/py-radix-0.10.0/radix/_radix/radix.c:802:21: [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). if ((slen = strlen(string) + 1) > sizeof(save)) { ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 2126 in approximately 0.09 seconds (23133 lines/second) Physical Source Lines of Code (SLOC) = 1574 Hits@level = [0] 1 [1] 1 [2] 6 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 10 [1+] 9 [2+] 8 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 6.35324 [1+] 5.71792 [2+] 5.08259 [3+] 1.27065 [4+] 1.27065 [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.