kf6-prison-6.13.0-1.fc43

List of Findings

Error: COMPILER_WARNING: [#def1]
prison-6.13.0/src/lib/reedsolomon.cpp:33:40: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#   33 |     m_logTable.reset(new int[logmod + 1]);
#      |                                        ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   31|       // calculate the log/alog tables
#   32|       const auto logmod = (1 << m_symSize) - 1;
#   33|->     m_logTable.reset(new int[logmod + 1]);
#   34|       m_antiLogTable.reset(new int[logmod]);
#   35|   

Error: COMPILER_WARNING: [#def2]
prison-6.13.0/src/lib/reedsolomon.cpp: scope_hint: In member function ‘__ct_base ’
prison-6.13.0/src/lib/reedsolomon.cpp:34:40: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#   34 |     m_antiLogTable.reset(new int[logmod]);
#      |                                        ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   32|       const auto logmod = (1 << m_symSize) - 1;
#   33|       m_logTable.reset(new int[logmod + 1]);
#   34|->     m_antiLogTable.reset(new int[logmod]);
#   35|   
#   36|       for (int p = 1, v = 0; v < logmod; v++) {

Error: COMPILER_WARNING: [#def3]
prison-6.13.0/src/lib/reedsolomon.cpp:46:43: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#   46 |     m_polynom.reset(new int[m_symCount + 1]);
#      |                                           ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   44|   
#   45|       // compute the encoding polynom
#   46|->     m_polynom.reset(new int[m_symCount + 1]);
#   47|       m_polynom[0] = 1;
#   48|       for (int i = 1; i <= m_symCount; ++i) {

Error: COMPILER_WARNING: [#def4]
prison-6.13.0/src/lib/reedsolomon.cpp: scope_hint: In member function ‘encode’
prison-6.13.0/src/lib/reedsolomon.cpp:64:53: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
#   64 |     std::unique_ptr<int[]> result(new int[m_symCount]);
#      |                                                     ^
/usr/include/c++/15/new:140:26: note: in a call to allocation function ‘operator new []’ declared here
#  140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
#      |                          ^
#   62|   BitVector ReedSolomon::encode(const BitVector &input) const
#   63|   {
#   64|->     std::unique_ptr<int[]> result(new int[m_symCount]);
#   65|       for (int i = 0; i < m_symCount; ++i) {
#   66|           result[i] = 0;

Error: COMPILER_WARNING (CWE-477): [#def5]
prison-6.13.0/src/scanner/imagescanner.cpp: scope_hint: In function ‘ZXing::Result Prison::ImageScanner::readBarcode(const QImage&, Prison::Format::BarcodeFormats)’
prison-6.13.0/src/scanner/imagescanner.cpp:26:24: warning[-Wdeprecated-declarations]: ‘using ZXing::DecodeHints = class ZXing::ReaderOptions’ is deprecated
#   26 |     ZXing::DecodeHints hints;
#      |                        ^~~~~
/usr/include/ZXing/Content.h:10: included_from: Included from here.
/usr/include/ZXing/Result.h:12: included_from: Included from here.
prison-6.13.0/src/scanner/imagescanner_p.h:12: included_from: Included from here.
prison-6.13.0/src/scanner/imagescanner.cpp:11: included_from: Included from here.
/usr/include/ZXing/ReaderOptions.h:176:7: note: declared here
#  176 | using DecodeHints [[deprecated]] = ReaderOptions;
#      |       ^~~~~~~~~~~
#   24|   ZXing::Result ImageScanner::readBarcode(const QImage &image, Format::BarcodeFormats formats)
#   25|   {
#   26|->     ZXing::DecodeHints hints;
#   27|       hints.setFormats(formats == Format::NoFormat ? ZXing::BarcodeFormats::all() : Format::toZXing(formats));
#   28|   

Error: COMPILER_WARNING (CWE-1023): [#def6]
prison-6.13.0/src/scanner/imagescanner.cpp:30:12: warning[-Wswitch]: enumeration value ‘Format_CMYK8888’ not handled in switch
#   30 |     switch (image.format()) {
#      |            ^
#   28|   
#   29|       // handle formats ZXing supports directly
#   30|->     switch (image.format()) {
#   31|       case QImage::Format_Invalid:
#   32|   #if ZXING_VERSION < QT_VERSION_CHECK(1, 4, 0)

Error: COMPILER_WARNING (CWE-477): [#def7]
prison-6.13.0/src/scanner/videoscannerworker.cpp: scope_hint: In member function ‘void Prison::VideoScannerWorker::slotScanFrame(Prison::VideoScannerFrame)’
prison-6.13.0/src/scanner/videoscannerworker.cpp:36:24: warning[-Wdeprecated-declarations]: ‘using ZXing::DecodeHints = class ZXing::ReaderOptions’ is deprecated
#   36 |     ZXing::DecodeHints hints;
#      |                        ^~~~~
/usr/include/ZXing/Content.h:10: included_from: Included from here.
/usr/include/ZXing/Result.h:12: included_from: Included from here.
prison-6.13.0/src/scanner/imagescanner_p.h:12: included_from: Included from here.
prison-6.13.0/src/scanner/videoscannerworker.cpp:8: included_from: Included from here.
/usr/include/ZXing/ReaderOptions.h:176:7: note: declared here
#  176 | using DecodeHints [[deprecated]] = ReaderOptions;
#      |       ^~~~~~~~~~~
#   34|       ZXing::Result zxRes;
#   35|   #endif
#   36|->     ZXing::DecodeHints hints;
#   37|       hints.setFormats(frame.formats() == Format::NoFormat ? ZXing::BarcodeFormats::all() : Format::toZXing(frame.formats()));
#   38|   

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-81.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namekf6-prison-6.13.0-1.fc43
store-results-to/tmp/tmpov69cwl3/kf6-prison-6.13.0-1.fc43.tar.xz
time-created2025-04-25 13:46:54
time-finished2025-04-25 13:48:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpov69cwl3/kf6-prison-6.13.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpov69cwl3/kf6-prison-6.13.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9