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/libnfnetlink-1.0.1/include/linux_list.h Examining data/libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink_compat.h Examining data/libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h Examining data/libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h Examining data/libnfnetlink-1.0.1/utils/iftest.c Examining data/libnfnetlink-1.0.1/src/rtnl.c Examining data/libnfnetlink-1.0.1/src/iftable.c Examining data/libnfnetlink-1.0.1/src/rtnl.h Examining data/libnfnetlink-1.0.1/src/libnfnetlink.c Examining data/libnfnetlink-1.0.1/src/iftable.h FINAL RESULTS: data/libnfnetlink-1.0.1/src/iftable.c:99:2: [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(this->name, RTA_DATA(cb[IFLA_IFNAME])); data/libnfnetlink-1.0.1/src/iftable.c:167:4: [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(name, this->name); data/libnfnetlink-1.0.1/src/iftable.c:34:2: [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 addr[8]; data/libnfnetlink-1.0.1/src/iftable.c:35:2: [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 name[16]; data/libnfnetlink-1.0.1/src/iftable.c:94: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(this->addr, RTA_DATA(cb[IFLA_ADDRESS]), alen); data/libnfnetlink-1.0.1/src/libnfnetlink.c:567:2: [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 buf[NFNL_BUFFSIZE] __attribute__ ((aligned)); data/libnfnetlink-1.0.1/src/libnfnetlink.c:676:2: [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 buf[NFNL_BUFFSIZE] __attribute__ ((aligned)); data/libnfnetlink-1.0.1/src/libnfnetlink.c:759:8: [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(answer, h, h->nlmsg_len); data/libnfnetlink-1.0.1/src/libnfnetlink.c:767:5: [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(answer, h, h->nlmsg_len); data/libnfnetlink-1.0.1/src/libnfnetlink.c:811: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(NFA_DATA(nfa), data, alen); data/libnfnetlink-1.0.1/src/libnfnetlink.c:844: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(NFA_DATA(subnfa), data, alen); data/libnfnetlink-1.0.1/src/libnfnetlink.c:1127: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(&ssh->cb[type], cb, sizeof(*cb)); data/libnfnetlink-1.0.1/src/libnfnetlink.c:1528: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[h->rcv_buffer_size] data/libnfnetlink-1.0.1/src/rtnl.c:138:2: [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 buf[8192]; data/libnfnetlink-1.0.1/utils/iftest.c:15:2: [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 name[IFNAMSIZ]; data/libnfnetlink-1.0.1/src/iftable.c:160:3: [1] (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). Risk is low because the source is a constant character. strcpy(name, "*"); ANALYSIS SUMMARY: Hits = 16 Lines analyzed = 3410 in approximately 0.13 seconds (25644 lines/second) Physical Source Lines of Code (SLOC) = 1983 Hits@level = [0] 17 [1] 1 [2] 13 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 33 [1+] 16 [2+] 15 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 16.6415 [1+] 8.06858 [2+] 7.5643 [3+] 1.00857 [4+] 1.00857 [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.