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/haskell-network-info-0.2.0.10/cbits/network-windows.c Examining data/haskell-network-info-0.2.0.10/cbits/common.h Examining data/haskell-network-info-0.2.0.10/cbits/network.h Examining data/haskell-network-info-0.2.0.10/cbits/network-unix.c FINAL RESULTS: data/haskell-network-info-0.2.0.10/cbits/common.h:8: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(dst, ((struct sockaddr_in6 *)addr)->sin6_addr.s6_addr, sizeof(ipv6)); data/haskell-network-info-0.2.0.10/cbits/network-unix.c:53:13: [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(dst, (unsigned char *)arpreq.arp_ha.sa_data, MAC_SIZE); data/haskell-network-info-0.2.0.10/cbits/network-unix.c:70: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(dst, ((struct sockaddr_ll *)addr)->sll_addr, MAC_SIZE); data/haskell-network-info-0.2.0.10/cbits/network-unix.c:74: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(dst, sdl->sdl_data + sdl->sdl_nlen, MAC_SIZE); data/haskell-network-info-0.2.0.10/cbits/network-unix.c:109:5: [2] (buffer) wchar_t: 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. wchar_t name[NAME_SIZE]; data/haskell-network-info-0.2.0.10/cbits/network-windows.c:47:13: [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(ns[i].mac_address, adapter->PhysicalAddress, MAC_SIZE); data/haskell-network-info-0.2.0.10/cbits/network.h:8:5: [2] (buffer) wchar_t: 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. wchar_t name[NAME_SIZE]; data/haskell-network-info-0.2.0.10/cbits/network.h:11: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. unsigned char mac_address[MAC_SIZE]; data/haskell-network-info-0.2.0.10/cbits/common.h:13:12: [1] (buffer) wcslen: 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). return wcslen(str) == 0; data/haskell-network-info-0.2.0.10/cbits/common.h:18:5: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). wcsncpy(dst, src, dst_size - 1); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 271 in approximately 0.04 seconds (7703 lines/second) Physical Source Lines of Code (SLOC) = 216 Hits@level = [0] 0 [1] 2 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 10 [1+] 10 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 46.2963 [1+] 46.2963 [2+] 37.037 [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.