kf6-prison-6.8.0-1.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
kf6-prison-6.8.0-build/prison-6.8.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++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
#   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]
kf6-prison-6.8.0-build/prison-6.8.0/src/lib/reedsolomon.cpp: scope_hint: In member function ‘__ct_base ’
kf6-prison-6.8.0-build/prison-6.8.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++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
#  133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
#      |                          ^
#   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 (CWE-477): [#def3]
kf6-prison-6.8.0-build/prison-6.8.0/src/scanner/imagescanner.cpp: scope_hint: In function ‘ZXing::Result Prison::ImageScanner::readBarcode(const QImage&, Prison::Format::BarcodeFormats)’
kf6-prison-6.8.0-build/prison-6.8.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.
kf6-prison-6.8.0-build/prison-6.8.0/src/scanner/imagescanner_p.h:12: included_from: Included from here.
kf6-prison-6.8.0-build/prison-6.8.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): [#def4]
kf6-prison-6.8.0-build/prison-6.8.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): [#def5]
kf6-prison-6.8.0-build/prison-6.8.0/src/scanner/videoscannerworker.cpp: scope_hint: In member function ‘void Prison::VideoScannerWorker::slotScanFrame(Prison::VideoScannerFrame)’
kf6-prison-6.8.0-build/prison-6.8.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.
kf6-prison-6.8.0-build/prison-6.8.0/src/scanner/imagescanner_p.h:12: included_from: Included from here.
kf6-prison-6.8.0-build/prison-6.8.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.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-90.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-prison-6.8.0-1.fc42
store-results-to/tmp/tmp04i_9yw0/kf6-prison-6.8.0-1.fc42.tar.xz
time-created2024-11-13 01:03:09
time-finished2024-11-13 01:04:56
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp04i_9yw0/kf6-prison-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp04i_9yw0/kf6-prison-6.8.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9