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-imagick-3.4.4/imagick-3.4.4/imagick_class.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagickdraw_class.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagickpixel_class.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagickpixeliterator_class.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagickkernel_class.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagick_helpers.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagick_file.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_defs.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_helpers.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_macros.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_shared.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_file.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/shim_im6_to_im7.c
Examining data/php-imagick-3.4.4/imagick-3.4.4/shim_im6_to_im7.h
Examining data/php-imagick-3.4.4/imagick-3.4.4/imagick.c

FINAL RESULTS:

data/php-imagick-3.4.4/imagick-3.4.4/imagick.c:3600: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(&imagick_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-imagick-3.4.4/imagick-3.4.4/imagick.c:3601: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(&imagickdraw_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-imagick-3.4.4/imagick-3.4.4/imagick.c:3602: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(&imagickpixeliterator_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-imagick-3.4.4/imagick-3.4.4/imagick.c:3603: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(&imagickpixel_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-imagick-3.4.4/imagick-3.4.4/imagick.c:3605: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(&imagickkernel_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:12236: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(kernel_info->values, color_matrix, order * order * sizeof(double));
data/php-imagick-3.4.4/imagick-3.4.4/imagick_file.c:93: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 magick_path[MaxTextExtent], head_path[MaxTextExtent], tail_path[MaxTextExtent], buffer[MaxTextExtent];
data/php-imagick-3.4.4/imagick-3.4.4/imagick_helpers.c:39:7:  [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).
	fp = fopen(intern->progress_monitor_name, "a+");
data/php-imagick-3.4.4/imagick-3.4.4/imagick_helpers.c:998:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	IMAGICK_REGISTER_CONST_LONG("QUANTUM_RANGE", atoi (MagickQuantumRange));
data/php-imagick-3.4.4/imagick-3.4.4/imagickkernel_class.c:749: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(values_copy, kernel_info->values, number_values * sizeof(KernelValueType));
data/php-imagick-3.4.4/imagick-3.4.4/php_imagick_file.h:42: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 filename[MaxTextExtent];
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8506:40:  [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).
		line_string = zend_string_init(line, strlen(line), 0);
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8511:43:  [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).
				if (strncmp (trim->val, str_keys [i], strlen (str_keys [i])) == 0) {
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8513:60:  [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).
					IM_add_assoc_string (array, arr_keys [i], trim->val + strlen (str_keys [i]));
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8522:25:  [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).
		trim = php_trim(line, strlen(line), NULL, 0, NULL, 3 TSRMLS_CC);
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8524:37:  [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).
			if (strncmp (trim, str_keys [i], strlen (str_keys [i])) == 0) {
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:8526:54:  [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).
				IM_add_assoc_string (array, arr_keys [i], trim + strlen (str_keys [i]));
data/php-imagick-3.4.4/imagick-3.4.4/imagick_class.c:9910:18:  [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).
		filename_len = strlen(filename);
data/php-imagick-3.4.4/imagick-3.4.4/imagick_file.c:115:6:  [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).
	if (strlen(magick_path) > 0) {
data/php-imagick-3.4.4/imagick-3.4.4/imagick_helpers.c:465:6:  [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).
	if (strlen(filename) >= MAXPATHLEN)
data/php-imagick-3.4.4/imagick-3.4.4/imagick_helpers.c:714:23:  [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).
	if (!description || (strlen (description) == 0)) {

ANALYSIS SUMMARY:

Hits = 21
Lines analyzed = 27012 in approximately 0.53 seconds (51451 lines/second)
Physical Source Lines of Code (SLOC) = 18941
Hits@level = [0]   2 [1]  10 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  23 [1+]  21 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 1.2143 [1+] 1.10871 [2+] 0.580751 [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.