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/jmagick-6.6.9~20130201-svn99/src/magick/magick_ImageInfo.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_DrawInfo.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/jmagick.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MontageInfo.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_QuantizeInfo.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickInfo.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_Magick.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/magick_PixelPacket.c Examining data/jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h FINAL RESULTS: data/jmagick-6.6.9~20130201-svn99/src/magick/magick_ImageInfo.c:104:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(imageInfo->filename, cstr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_ImageInfo.c:719:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(imageInfo->magick, cstr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:328:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(image->filename, cstr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:2788:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(image->magick, cstr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MontageInfo.c:422:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(montageInfo->filename, cstr); data/jmagick-6.6.9~20130201-svn99/src/magick/jmagick.c:567: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(byteArrayCpy, byteArray, *size); data/jmagick-6.6.9~20130201-svn99/src/magick/jmagick.c:826: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(byteElements, data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:3768: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(byteElements, data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:901:34: [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). arraySize = width * height * strlen(mapStr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:967:34: [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). arraySize = width * height * strlen(mapStr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:1028:34: [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). arraySize = width * height * strlen(mapStr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:2599:34: [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). arraySize = width * height * strlen(mapStr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:2657:34: [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). arraySize = width * height * strlen(mapStr); data/jmagick-6.6.9~20130201-svn99/src/magick/magick_MagickImage.c:2716:34: [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). arraySize = width * height * strlen(mapStr); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 8103 in approximately 0.22 seconds (37084 lines/second) Physical Source Lines of Code (SLOC) = 4729 Hits@level = [0] 30 [1] 6 [2] 3 [3] 0 [4] 5 [5] 0 Hits@level+ = [0+] 44 [1+] 14 [2+] 8 [3+] 5 [4+] 5 [5+] 0 Hits/KSLOC@level+ = [0+] 9.30429 [1+] 2.96046 [2+] 1.69169 [3+] 1.05731 [4+] 1.05731 [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.