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-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c Examining data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_worker.c Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_client.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_task.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_client.c Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_job.c Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_task.c Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_worker.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_job.h Examining data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman.c FINAL RESULTS: data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4414: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(&gearman_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4422: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(&gearman_con_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4430: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(&gearman_packet_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4439: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(&gearman_client_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4447: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(&gearman_task_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4455: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(&gearman_worker_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4463: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(&gearman_job_obj_handlers, zend_get_std_object_handlers(), data/php-gearman-2.0.6+1.1.2/gearman-1.1.2/php_gearman.c:4964: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 port_str[6]; data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman.c:1698: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 port_str[6]; data/php-gearman-2.0.6+1.1.2/gearman-2.0.6/php_gearman_client.c:1212:26: [1] (buffer) strlen: 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). length = strlen(data); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 9810 in approximately 0.21 seconds (45881 lines/second) Physical Source Lines of Code (SLOC) = 7133 Hits@level = [0] 2 [1] 1 [2] 9 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 12 [1+] 10 [2+] 9 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.68232 [1+] 1.40193 [2+] 1.26174 [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.