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/perceptualdiff-1.2/CompareArgs.cpp Examining data/perceptualdiff-1.2/CompareArgs.h Examining data/perceptualdiff-1.2/LPyramid.cpp Examining data/perceptualdiff-1.2/LPyramid.h Examining data/perceptualdiff-1.2/Metric.cpp Examining data/perceptualdiff-1.2/Metric.h Examining data/perceptualdiff-1.2/PerceptualDiff.cpp Examining data/perceptualdiff-1.2/RGBAImage.cpp Examining data/perceptualdiff-1.2/RGBAImage.h FINAL RESULTS: data/perceptualdiff-1.2/RGBAImage.cpp:44: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(scanline, data, sizeof(data[0]) * image.Get_Width()); data/perceptualdiff-1.2/RGBAImage.cpp:65: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(dest, scanline, sizeof(dest[0]) * w); ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 1310 in approximately 0.04 seconds (31434 lines/second) Physical Source Lines of Code (SLOC) = 928 Hits@level = [0] 0 [1] 0 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.15517 [1+] 2.15517 [2+] 2.15517 [3+] 0 [4+] 0 [5+] 0 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.