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/libkf5kdcraw-20.04.3/tests/libinfo.cpp Examining data/libkf5kdcraw-20.04.3/tests/raw2png.cpp Examining data/libkf5kdcraw-20.04.3/src/libkdcraw_debug.cpp Examining data/libkf5kdcraw-20.04.3/src/libkdcraw_debug.h Examining data/libkf5kdcraw-20.04.3/src/rawdecodingsettings.cpp Examining data/libkf5kdcraw-20.04.3/src/rawdecodingsettings.h Examining data/libkf5kdcraw-20.04.3/src/dcrawinfocontainer.h Examining data/libkf5kdcraw-20.04.3/src/kdcraw.h Examining data/libkf5kdcraw-20.04.3/src/rawfiles.h Examining data/libkf5kdcraw-20.04.3/src/kdcraw.cpp Examining data/libkf5kdcraw-20.04.3/src/kdcraw_p.cpp Examining data/libkf5kdcraw-20.04.3/src/kdcraw_p.h Examining data/libkf5kdcraw-20.04.3/src/dcrawinfocontainer.cpp FINAL RESULTS: data/libkf5kdcraw-20.04.3/src/kdcraw.cpp:217:12: [2] (misc) open: 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). buffer.open(QIODevice::WriteOnly); data/libkf5kdcraw-20.04.3/src/kdcraw.cpp:247:12: [2] (misc) open: 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). buffer.open(QIODevice::WriteOnly); data/libkf5kdcraw-20.04.3/src/kdcraw_p.cpp:142: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(&identify.cameraColorMatrix1, &raw->imgdata.color.cmatrix, sizeof(raw->imgdata.color.cmatrix)); data/libkf5kdcraw-20.04.3/src/kdcraw_p.cpp:143: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(&identify.cameraColorMatrix2, &raw->imgdata.color.rgb_cam, sizeof(raw->imgdata.color.rgb_cam)); data/libkf5kdcraw-20.04.3/src/kdcraw_p.cpp:144: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(&identify.cameraXYZMatrix, &raw->imgdata.color.cam_xyz, sizeof(raw->imgdata.color.cam_xyz)); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 2960 in approximately 0.11 seconds (28056 lines/second) Physical Source Lines of Code (SLOC) = 1697 Hits@level = [0] 0 [1] 0 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.94638 [1+] 2.94638 [2+] 2.94638 [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.