Fixed defects

List of Defects

Error: CPPCHECK_WARNING: [#def1]
zxing-cpp-2.0.0-build/zxing-cpp-2.0.0/core/src/datamatrix/DMDecoder.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-457): [#def2]
zxing-cpp-2.0.0-build/zxing-cpp-2.0.0/core/src/libzueci/zueci.c: scope_hint: In function ‘zueci_eci_to_utf8’
zxing-cpp-2.0.0-build/zxing-cpp-2.0.0/core/src/libzueci/zueci.c:1593:13: warning[-Wmaybe-uninitialized]: ‘replacement_len’ may be used uninitialized
# 1593 |             memcpy(d, replacement, replacement_len);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zxing-cpp-2.0.0-build/zxing-cpp-2.0.0/core/src/libzueci/zueci.c:1503:9: note: ‘replacement_len’ was declared here
# 1503 |     int replacement_len;
#      |         ^~~~~~~~~~~~~~~
# 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: [#def3]
zxing-cpp-2.0.0-build/zxing-cpp-2.0.0/core/src/pdf417/PDFDecodedBitStreamParser.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
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-70.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namezxing-cpp-2.2.1-1.fc41
diffbase-store-results-to/tmp/tmpzqvcwtp0/zxing-cpp-2.2.1-1.fc41.tar.xz
diffbase-time-created2024-07-03 18:34:10
diffbase-time-finished2024-07-03 18:37:59
diffbase-toolcsmock
diffbase-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'
diffbase-tool-versioncsmock-3.5.3-1.el9
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.0.0-6.fc40
store-results-to/tmp/tmp4lw3sj8_/zxing-cpp-2.0.0-6.fc40.tar.xz
time-created2024-07-03 18:30:05
time-finished2024-07-03 18:33:52
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp4lw3sj8_/zxing-cpp-2.0.0-6.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp4lw3sj8_/zxing-cpp-2.0.0-6.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9