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/atmel-firmware-1.3/atmel_fwl.c FINAL RESULTS: data/atmel-firmware-1.3/atmel_fwl.c:115: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(ifr.ifr_ifrn.ifrn_name, argv[1]); data/atmel-firmware-1.3/atmel_fwl.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 id[32]; data/atmel-firmware-1.3/atmel_fwl.c:58:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file = fopen(argv[2], "r"))) { data/atmel-firmware-1.3/atmel_fwl.c:90:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(com.id, id, 31); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 133 in approximately 0.03 seconds (5054 lines/second) Physical Source Lines of Code (SLOC) = 84 Hits@level = [0] 6 [1] 1 [2] 2 [3] 0 [4] 1 [5] 0 Hits@level+ = [0+] 10 [1+] 4 [2+] 3 [3+] 1 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 119.048 [1+] 47.619 [2+] 35.7143 [3+] 11.9048 [4+] 11.9048 [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.