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/vizigrep-1.4/ut/test-data/c-source/xpad.c FINAL RESULTS: data/vizigrep-1.4/ut/test-data/c-source/xpad.c:342:11: [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 rum_data[XPAD_PKT_LEN]; data/vizigrep-1.4/ut/test-data/c-source/xpad.c:345:11: [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 led_data[XPAD_PKT_LEN]; data/vizigrep-1.4/ut/test-data/c-source/xpad.c:351: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 phys[64]; /* physical device path */ data/vizigrep-1.4/ut/test-data/c-source/xpad.c:715:4: [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(xpad->odata, xpad->rum_data, xpad->pend_rum); data/vizigrep-1.4/ut/test-data/c-source/xpad.c:719:4: [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(xpad->odata, xpad->led_data, xpad->pend_led); data/vizigrep-1.4/ut/test-data/c-source/xpad.c:888:4: [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(xpad->odata, xpad->rum_data, xpad->pend_rum); data/vizigrep-1.4/ut/test-data/c-source/xpad.c:938: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/vizigrep-1.4/ut/test-data/c-source/xpad.c:955:4: [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(xpad->odata, xpad->led_data, xpad->pend_led); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1357 in approximately 0.05 seconds (26875 lines/second) Physical Source Lines of Code (SLOC) = 969 Hits@level = [0] 1 [1] 0 [2] 8 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 8 [2+] 8 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 9.28793 [1+] 8.25593 [2+] 8.25593 [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.