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/prison-kf5-5.74.0/autotests/reedsolomontest.cpp Examining data/prison-kf5-5.74.0/autotests/aztecbarcodetest.cpp Examining data/prison-kf5-5.74.0/autotests/code128barcodetest.cpp Examining data/prison-kf5-5.74.0/tests/prison.h Examining data/prison-kf5-5.74.0/tests/main.cpp Examining data/prison-kf5-5.74.0/tests/barcodeexamplewidget.cpp Examining data/prison-kf5-5.74.0/tests/prison.cpp Examining data/prison-kf5-5.74.0/tests/barcodeexamplewidget.h Examining data/prison-kf5-5.74.0/src/quick/prisonquickplugin.cpp Examining data/prison-kf5-5.74.0/src/quick/barcodequickitem.cpp Examining data/prison-kf5-5.74.0/src/quick/barcodequickitem.h Examining data/prison-kf5-5.74.0/src/lib/abstractbarcode.h Examining data/prison-kf5-5.74.0/src/lib/reedsolomon_p.h Examining data/prison-kf5-5.74.0/src/lib/code93barcode.cpp Examining data/prison-kf5-5.74.0/src/lib/code39barcode.h Examining data/prison-kf5-5.74.0/src/lib/bitvector.cpp Examining data/prison-kf5-5.74.0/src/lib/code39barcode.cpp Examining data/prison-kf5-5.74.0/src/lib/prison.h Examining data/prison-kf5-5.74.0/src/lib/datamatrixbarcode.h Examining data/prison-kf5-5.74.0/src/lib/code128barcode.h Examining data/prison-kf5-5.74.0/src/lib/datamatrixbarcode.cpp Examining data/prison-kf5-5.74.0/src/lib/bitvector_p.h Examining data/prison-kf5-5.74.0/src/lib/code128barcode.cpp Examining data/prison-kf5-5.74.0/src/lib/prison.cpp Examining data/prison-kf5-5.74.0/src/lib/aztecbarcode.cpp Examining data/prison-kf5-5.74.0/src/lib/qrcodebarcode.cpp Examining data/prison-kf5-5.74.0/src/lib/abstractbarcode.cpp Examining data/prison-kf5-5.74.0/src/lib/qrcodebarcode.h Examining data/prison-kf5-5.74.0/src/lib/aztecbarcode.h Examining data/prison-kf5-5.74.0/src/lib/reedsolomon.cpp Examining data/prison-kf5-5.74.0/src/lib/code93barcode.h Examining data/prison-kf5-5.74.0/src/tools/prison-datamatrix.cpp FINAL RESULTS: data/prison-kf5-5.74.0/src/lib/code39barcode.cpp:128: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(ret.scanLine(0), line.data(), line.size() * sizeof(QRgb)); data/prison-kf5-5.74.0/src/lib/code93barcode.cpp:275: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(ret.scanLine(0), line.data(), line.size() * sizeof(QRgb)); data/prison-kf5-5.74.0/src/lib/code39barcode.cpp:14:14: [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). Q_ASSERT(strlen(str)==9); // this is a internal helper tool, only called with fixed strings in here, all 9 chars long data/prison-kf5-5.74.0/src/lib/code93barcode.cpp:14:14: [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). Q_ASSERT(strlen(str)==9); // this is a internal helper tool, only called with fixed strings in here, all 9 chars long ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 3907 in approximately 0.14 seconds (27071 lines/second) Physical Source Lines of Code (SLOC) = 2937 Hits@level = [0] 0 [1] 2 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 4 [1+] 4 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.36193 [1+] 1.36193 [2+] 0.680967 [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.