zxing-cpp-2.2.1-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
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: [#def2]
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: [#def3]
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: [#def4]
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: [#def5]
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: [#def6]
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: [#def7]
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: [#def8]
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: [#def9]
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: [#def10]
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: [#def11]
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: [#def12]
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: [#def13]
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: [#def14]
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: [#def15]
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: [#def16]
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: [#def17]
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: [#def18]
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: [#def19]
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: [#def20]
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: [#def21]
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: [#def22]
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: [#def23]
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): [#def24]
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): [#def25]
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): [#def26]
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): [#def27]
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): [#def28]
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: [#def29]
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: [#def30]
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: [#def31]
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: [#def32]
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: [#def33]
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: [#def34]
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: [#def35]
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: [#def36]
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: [#def37]
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: [#def38]
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: [#def39]
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: [#def40]
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: [#def41]
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: [#def42]
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: [#def43]
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: [#def44]
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: [#def45]
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: [#def46]
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: [#def47]
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: [#def48]
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: [#def49]
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: [#def50]
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: [#def51]
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: [#def52]
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: [#def53]
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: [#def54]
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: [#def55]
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: [#def56]
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: [#def57]
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: [#def58]
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: [#def59]
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: [#def60]
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: [#def61]
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: [#def62]
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: [#def63]
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: [#def64]
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: [#def65]
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.

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-70.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namezxing-cpp-2.2.1-1.fc41
store-results-to/tmp/tmpzqvcwtp0/zxing-cpp-2.2.1-1.fc41.tar.xz
time-created2024-07-03 18:34:10
time-finished2024-07-03 18:37:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpzqvcwtp0/zxing-cpp-2.2.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpzqvcwtp0/zxing-cpp-2.2.1-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9