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/xcb-util-image-0.4.0/test/test_xcb_image_shm.c Examining data/xcb-util-image-0.4.0/test/test_swap.c Examining data/xcb-util-image-0.4.0/test/test_bitmap.c Examining data/xcb-util-image-0.4.0/test/test_xcb_image.c Examining data/xcb-util-image-0.4.0/test/test_formats.c Examining data/xcb-util-image-0.4.0/image/xcb_image.h Examining data/xcb-util-image-0.4.0/image/xcb_image.c Examining data/xcb-util-image-0.4.0/image/xcb_bitops.h Examining data/xcb-util-image-0.4.0/image/xcb_pixel.h FINAL RESULTS: data/xcb-util-image-0.4.0/image/xcb_image.c:349: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(dst_plane, src_plane, size); data/xcb-util-image-0.4.0/image/xcb_image.c:946:7: [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(dst->data, src->data, src->size); data/xcb-util-image-0.4.0/test/test_bitmap.c:128:10: [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). strlen("white"), "white"); data/xcb-util-image-0.4.0/test/test_bitmap.c:131:10: [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). strlen("black"), "black"); data/xcb-util-image-0.4.0/test/test_xcb_image.c:175:24: [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). strlen ("drew"), "drew"); data/xcb-util-image-0.4.0/test/test_xcb_image.c:216:24: [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). strlen ("got"), "got"); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 3082 in approximately 0.11 seconds (28607 lines/second) Physical Source Lines of Code (SLOC) = 1968 Hits@level = [0] 53 [1] 4 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 59 [1+] 6 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 29.9797 [1+] 3.04878 [2+] 1.01626 [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.