Task #1343 - zxing-cpp-2.2.1-1.fc41/scan-results.err
back to task #1343download
Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/BitMatrix.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/BitMatrixIO.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/ConcentricFinder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/GTIN.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/GlobalHistogramBinarizer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/GridSampler.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/HybridBinarizer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/ReadBarcode.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/TextDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: COMPILER_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/Utf.cpp:21:7: warning[-Wc++20-compat]: identifier ‘char8_t’ is a keyword in C++20 # 21 | using char8_t = uint8_t; # | ^~~~~~~ # 19| // TODO: c++20 has char8_t # 20| #if __cplusplus <= 201703L # 21|-> using char8_t = uint8_t; # 22| #endif # 23| using utf8_t = std::basic_string_view<char8_t>; Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/WhiteRectDetector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/ZXBigInteger.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/aztec/AZDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/aztec/AZDetector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/aztec/AZEncoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/aztec/AZHighLevelEncoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMBitLayout.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMDataBlock.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMDetector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMHighLevelEncoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMSymbolInfo.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/datamatrix/DMWriter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:77: warning[uninitvar]: Uninitialized variable: *p_u # 75| const zueci_u32 type = utf8d[byte]; # 76| # 77|-> *p_u = *p_state ? (byte & 0x3fu) | (*p_u << 6) : (0xff >> type) & byte; # 78| # 79| *p_state = utf8d[256 + *p_state + type]; Error: GCC_ANALYZER_WARNING (CWE-787): zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c: scope_hint: In function ‘zueci_iso8859_u’ zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:287:45: warning[-Wanalyzer-out-of-bounds]: buffer over-read zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:15: included_from: Included from here. zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:287:45: note: valid subscripts for ‘zueci_iso8859_10_sb_u’ are ‘[0]’ to ‘[95]’ # └─────────────────┘ # ^ # 285| return 1; # 286| } # 287|-> if (c2 < c2_max && (idx = (int) tab_sb_u[c2]) != -1) { # 288| *p_u = tab_u_u[idx]; # 289| return 1; Error: GCC_ANALYZER_WARNING (CWE-457): zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c: scope_hint: In function ‘zueci_eci_to_utf8’ zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1536:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ # 1534| return ZUECI_ERROR_INVALID_DATA; # 1535| } # 1536|-> memcpy(d, replacement, replacement_len); # 1537| d += replacement_len; # 1538| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1563:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ # 1561| } # 1562| } # 1563|-> memcpy(d, replacement, replacement_len); # 1564| d += replacement_len; # 1565| ret = ZUECI_WARN_INVALID_DATA; Error: GCC_ANALYZER_WARNING (CWE-457): zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1593:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&replacement’ zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/libzueci/zueci.c:1523:14: note: in expansion of macro ‘ZUECI_IS_VALID_UNICODE’ # 1591| return ZUECI_ERROR_INVALID_DATA; # 1592| } # 1593|-> memcpy(d, replacement, replacement_len); # 1594| s += zueci_replacement_incr(eci, s, (int) (se - s)); # 1595| d += replacement_len; Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/maxicode/MCDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCodabarReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCodabarWriter.cpp:109:3: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined # 107| auto position = result.begin(); # 108| for (wchar_t c : contents) { # 109|-> int code = CHARACTER_ENCODINGS[IndexOf(ALPHABET, c)]; // c is checked above to be in ALPHABET # 110| bool isBlack = true; # 111| int counter = 0; // count the width of the current bar Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode128Writer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode39Reader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode39Writer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode39Writer.cpp:162:3: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 160| for (size_t i = 0; i < length; ++i) { # 161| int indexInString = IndexOf(ALPHABET, extendedContent[i]); # 162|-> ToIntArray(CHARACTER_ENCODINGS[indexInString], widths); # 163| pos += WriterHelper::AppendPattern(result, pos, widths, true); # 164| pos += WriterHelper::AppendPattern(result, pos, narrowWhite, false); Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Reader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Reader.cpp:54:31: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value due to array index out of bounds # 52| } # 53| } # 54|-> return result[checkPosition] == ALPHABET[checkSum % 47]; # 55| } # 56| Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Writer.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Writer.cpp:165:10: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 163| for (size_t i = 0; i < length; i++) { # 164| int indexInString = IndexOf(ALPHABET, contents[i]); # 165|-> pos += AppendPattern(result, pos, CHARACTER_ENCODINGS[indexInString]); # 166| } # 167| Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Writer.cpp:170:9: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 168| //add two checksums # 169| int check1 = ComputeChecksumIndex(contents, 20); # 170|-> pos += AppendPattern(result, pos, CHARACTER_ENCODINGS[check1]); # 171| # 172| //append the contents to reflect the first checksum added Error: CLANG_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODCode93Writer.cpp:176:9: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value # 174| # 175| int check2 = ComputeChecksumIndex(contents, 15); # 176|-> pos += AppendPattern(result, pos, CHARACTER_ENCODINGS[check2]); # 177| # 178| //end character (*) Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODDataBarCommon.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODDataBarExpandedReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODDataBarReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODITFReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODITFWriter.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODMultiUPCEANReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/oned/ODRowReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFDetectionResult.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFDetectionResultColumn.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFDetector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFHighLevelEncoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/pdf417/PDFScanningDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRBitMatrixParser.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRDataBlock.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRDetector.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QREncoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRMatrixUtil.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRReader.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/core/src/qrcode/QRVersion.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: zxing-cpp-2.2.1-build/zxing-cpp-2.2.1/wrappers/python/zxing.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.