Error: CLANG_WARNING: [#def1] kf6-prison-6.0.0-build/prison-6.0.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.0.0-build/prison-6.0.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.0.0-build/prison-6.0.0/src/lib/reedsolomon.cpp: scope_hint: In member function ‘__ct_base ’ kf6-prison-6.0.0-build/prison-6.0.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.0.0-build/prison-6.0.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.0.0-build/prison-6.0.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.0.0-build/prison-6.0.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.0.0-build/prison-6.0.0/src/scanner/videoscannerworker.cpp: scope_hint: In member function ‘void Prison::VideoScannerWorker::slotScanFrame(Prison::VideoScannerFrame)’ kf6-prison-6.0.0-build/prison-6.0.0/src/scanner/videoscannerworker.cpp:35:24: warning[-Wdeprecated-declarations]: ‘using ZXing::DecodeHints = class ZXing::ReaderOptions’ is deprecated # 35 | ZXing::DecodeHints hints; # | ^~~~~ /usr/include/ZXing/ReadBarcode.h:8: included_from: Included from here. kf6-prison-6.0.0-build/prison-6.0.0/src/scanner/videoscannerworker.cpp:17: included_from: Included from here. /usr/include/ZXing/ReaderOptions.h:176:7: note: declared here # 176 | using DecodeHints [[deprecated]] = ReaderOptions; # | ^~~~~~~~~~~ # 33| ZXing::Result zxRes; # 34| #endif # 35|-> ZXing::DecodeHints hints; # 36| hints.setFormats(frame.formats() == Format::NoFormat ? ZXing::BarcodeFormats::all() : Format::toZXing(frame.formats())); # 37|
| 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.0.0-1.fc40 |
| store-results-to | /tmp/tmpg2tmiv_q/kf6-prison-6.0.0-1.fc40.tar.xz |
| time-created | 2024-07-03 14:19:29 |
| time-finished | 2024-07-03 14:21:37 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpg2tmiv_q/kf6-prison-6.0.0-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpg2tmiv_q/kf6-prison-6.0.0-1.fc40.src.rpm' |
| tool-version | csmock-3.5.3-1.el9 |