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-igbinary-3.1.5+2.0.8/igbinary-2.0.8/igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/php_igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/hash_ptr.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary_macros.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/php_igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/hash_si_ptr.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/hash_si.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/ig_win32.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/hash.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/hash_ptr.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/apc_serializer.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary_macros.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/php_igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/hash_si_ptr.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/hash_si.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/ig_win32.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/hash.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/php_igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/hash_ptr.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary_macros.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/php_igbinary.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/hash_si_ptr.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/hash_si.c Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/ig_win32.h Examining data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/hash.h FINAL RESULTS: data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/hash_si.c:194: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(copy, key, key_len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c:916: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(igsd->buffer + igsd->buffer_size, s, len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c:1207: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(igsd->buffer + igsd->buffer_size, class_name, name_len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c:1317: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(igsd->buffer + igsd->buffer_size, serialized_data, serialized_len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c:1484: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[9], *it; data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php5/igbinary.c:1934:5: [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], *p; data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.c:1065: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(igsd->buffer + igsd->buffer_size, s, len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.c:1394: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(igsd->buffer + igsd->buffer_size, ZSTR_VAL(class_name), name_len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.c:1505: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(igsd->buffer + igsd->buffer_size, serialized_data, serialized_len); data/php-igbinary-3.1.5+2.0.8/igbinary-2.0.8/src/php7/igbinary.c:1708: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[9], *it; data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.c:1159: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(igsd->buffer + igsd->buffer_size, s, len); data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.c:1511: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(igsd->buffer + igsd->buffer_size, ZSTR_VAL(class_name), name_len); data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.c:1603: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(igsd->buffer + igsd->buffer_size, serialized_data, serialized_len); data/php-igbinary-3.1.5+2.0.8/igbinary-3.1.5/src/php7/igbinary.c:1913: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[9], *it; ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 11100 in approximately 0.29 seconds (38777 lines/second) Physical Source Lines of Code (SLOC) = 7266 Hits@level = [0] 0 [1] 0 [2] 14 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 14 [1+] 14 [2+] 14 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.92678 [1+] 1.92678 [2+] 1.92678 [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.