Error: CLANG_WARNING: [#def1] kf6-prison-6.3.0-build/prison-6.3.0/src/lib/reedsolomon.cpp:32:28: warning[core.BitwiseShift]: Right operand is negative in left shift # 30| # 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]); Error: COMPILER_WARNING: [#def2] kf6-prison-6.3.0-build/prison-6.3.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: [#def3] kf6-prison-6.3.0-build/prison-6.3.0/src/lib/reedsolomon.cpp: scope_hint: In member function ‘__ct_base ’ kf6-prison-6.3.0-build/prison-6.3.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: CLANG_WARNING: [#def4] kf6-prison-6.3.0-build/prison-6.3.0/src/lib/reedsolomon.cpp:74:43: warning[core.UndefinedBinaryOperatorResult]: The left operand of '^' is a garbage value # 72| for (int k = m_symCount - 1; k > 0; --k) { # 73| if (m && m_polynom[k]) { # 74|-> result[k] = result[k - 1] ^ m_antiLogTable[(m_logTable[m] + m_logTable[m_polynom[k]]) % logmod]; # 75| } else { # 76| result[k] = result[k - 1]; Error: CLANG_WARNING: [#def5] kf6-prison-6.3.0-build/prison-6.3.0/src/lib/reedsolomon.cpp:76:27: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 74| result[k] = result[k - 1] ^ m_antiLogTable[(m_logTable[m] + m_logTable[m_polynom[k]]) % logmod]; # 75| } else { # 76|-> result[k] = result[k - 1]; # 77| } # 78| } Error: CLANG_WARNING: [#def6] kf6-prison-6.3.0-build/prison-6.3.0/src/lib/reedsolomon.cpp:88:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 86| BitVector v; # 87| for (int i = m_symCount - 1; i >= 0; --i) { # 88|-> v.appendMSB(result[i], m_symSize); # 89| } # 90| return v; Error: COMPILER_WARNING (CWE-477): [#def7] kf6-prison-6.3.0-build/prison-6.3.0/src/scanner/imagescanner.cpp: scope_hint: In function ‘ZXing::Result Prison::ImageScanner::readBarcode(const QImage&, Prison::Format::BarcodeFormats)’ kf6-prison-6.3.0-build/prison-6.3.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.3.0-build/prison-6.3.0/src/scanner/imagescanner_p.h:12: included_from: Included from here. kf6-prison-6.3.0-build/prison-6.3.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-477): [#def8] kf6-prison-6.3.0-build/prison-6.3.0/src/scanner/videoscannerworker.cpp: scope_hint: In member function ‘void Prison::VideoScannerWorker::slotScanFrame(Prison::VideoScannerFrame)’ kf6-prison-6.3.0-build/prison-6.3.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.3.0-build/prison-6.3.0/src/scanner/imagescanner_p.h:12: included_from: Included from here. kf6-prison-6.3.0-build/prison-6.3.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|
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-17.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | kf6-prison-6.3.0-1.fc41 |
store-results-to | /tmp/tmpdc0tyma3/kf6-prison-6.3.0-1.fc41.tar.xz |
time-created | 2024-07-03 14:21:51 |
time-finished | 2024-07-03 14:23:32 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdc0tyma3/kf6-prison-6.3.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdc0tyma3/kf6-prison-6.3.0-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |