Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-682): [#def1]
assimp-5.3.1/contrib/zip/src/miniz.h:2028: error[nullPointerArithmetic]: Pointer addition with NULL pointer.
# 2026|                                                     pIn_buf_next + *pIn_buf_size;
# 2027|     mz_uint8 *pOut_buf_cur = pOut_buf_next, *const pOut_buf_end =
# 2028|->                                               pOut_buf_next + *pOut_buf_size;
# 2029|     size_t out_buf_size_mask =
# 2030|                (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def2]
assimp-5.3.1/contrib/zip/src/miniz.h:3599:18: warning[-Wanalyzer-out-of-bounds]: buffer over-read
assimp-5.3.1/contrib/zip/src/zip.c:1425:5: enter_function: entry to ‘zip_entries_delete’
assimp-5.3.1/contrib/zip/src/zip.c:1431:6: branch_false: following ‘false’ branch...
assimp-5.3.1/contrib/zip/src/zip.c:1435:6: branch_false: following ‘false’ branch...
assimp-5.3.1/contrib/zip/src/zip.c:1439:7: branch_false: ...to here
assimp-5.3.1/contrib/zip/src/zip.c:1439:7: call_function: calling ‘zip_entries_total’ from ‘zip_entries_delete’
assimp-5.3.1/contrib/zip/src/zip.c:1439:7: return_function: returning to ‘zip_entries_delete’ from ‘zip_entries_total’
assimp-5.3.1/contrib/zip/src/zip.c:1443:6: branch_false: following ‘false’ branch (when ‘entry_mark’ is non-NULL)...
assimp-5.3.1/contrib/zip/src/zip.c:1447:3: branch_false: ...to here
assimp-5.3.1/contrib/zip/src/zip.c:1449:9: call_function: calling ‘zip_entry_set’ from ‘zip_entries_delete’
# 3597|         d->m_lookahead_size += num_bytes_to_process;
# 3598|         while (pSrc != pSrc_end) {
# 3599|->         mz_uint8 c = *pSrc++;
# 3600|           d->m_dict[dst_pos] = c;
# 3601|           if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1))

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-207.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameassimp-5.4.3-1.fc43
diffbase-store-results-to/tmp/tmp19v2u07h/assimp-5.4.3-1.fc43.tar.xz
diffbase-time-created2025-04-25 12:08:04
diffbase-time-finished2025-04-25 12:15:11
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp19v2u07h/assimp-5.4.3-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp19v2u07h/assimp-5.4.3-1.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-207.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameassimp-5.3.1-5.fc42
store-results-to/tmp/tmptenmpp6l/assimp-5.3.1-5.fc42.tar.xz
time-created2025-04-25 12:00:30
time-finished2025-04-25 12:07:44
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmptenmpp6l/assimp-5.3.1-5.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptenmpp6l/assimp-5.3.1-5.fc42.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9