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/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c Examining data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.h Examining data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4hc.c Examining data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4hc.h Examining data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/horde_lz4.c Examining data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/horde_lz4.h FINAL RESULTS: data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/horde_lz4.c:99: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(output + sizeof(horde_lz4_headerid), &data_len, sizeof(data_len)); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:633: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(op, anchor, iend - anchor); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:846: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(safeBuffer, previousDictEnd - dictSize, dictSize); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:945: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(op, ip, length); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:978: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(op, ref, length+MINMATCH); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:984: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(op, dictEnd - copySize, copySize); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4.c:995:21: [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(op, dest, copySize); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4hc.c:406: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((void*)(hc4->end - 64 KB - distance), (const void*)(hc4->end - 64 KB), 64 KB); data/php-horde-lz4-1.0.10/horde_lz4-1.0.10/lib/lz4hc.c:801: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(op, anchor, iend - anchor); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 2813 in approximately 0.11 seconds (25668 lines/second) Physical Source Lines of Code (SLOC) = 1745 Hits@level = [0] 0 [1] 0 [2] 9 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 9 [1+] 9 [2+] 9 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 5.15759 [1+] 5.15759 [2+] 5.15759 [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.