Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
libnbd-1.23.3/copy/blkhash.c:72:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fp’
libnbd-1.23.3/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.3/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.3/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.3/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.3/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.3/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.3/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.3/copy/blkhash.c:452:10: acquire_resource: opened here
libnbd-1.23.3/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:465:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:468:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:472:3: call_function: inlined call to ‘blocks_reset’ from ‘finish_blkhash’
#   70|   };
#   71|   
#   72|-> DEFINE_VECTOR_TYPE(blocks, struct block);
#   73|   static blocks block_vec;
#   74|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libnbd-1.23.3/copy/blkhash.c:72:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
libnbd-1.23.3/copy/blkhash.c:355:1: enter_function: entry to ‘finish_blkhash’
libnbd-1.23.3/copy/blkhash.c:367:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:369:7: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:390:6: branch_false: following ‘false’ branch (when ‘zero_block’ is non-NULL)...
libnbd-1.23.3/copy/blkhash.c:394:17: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:394:17: call_function: calling ‘compute_one_block_hash’ from ‘finish_blkhash’
libnbd-1.23.3/copy/blkhash.c:394:17: return_function: returning to ‘finish_blkhash’ from ‘compute_one_block_hash’
libnbd-1.23.3/copy/blkhash.c:399:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:436:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:442:18: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:443:6: branch_false: following ‘false’ branch (when ‘final_digest’ is non-NULL)...
libnbd-1.23.3/copy/blkhash.c:448:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:451:6: branch_true: following ‘true’ branch...
libnbd-1.23.3/copy/blkhash.c:452:10: branch_true: ...to here
libnbd-1.23.3/copy/blkhash.c:452:10: acquire_memory: allocated here
libnbd-1.23.3/copy/blkhash.c:453:8: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:461:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:465:6: branch_false: following ‘false’ branch...
libnbd-1.23.3/copy/blkhash.c:468:3: branch_false: ...to here
libnbd-1.23.3/copy/blkhash.c:472:3: call_function: inlined call to ‘blocks_reset’ from ‘finish_blkhash’
#   70|   };
#   71|   
#   72|-> DEFINE_VECTOR_TYPE(blocks, struct block);
#   73|   static blocks block_vec;
#   74|   

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-234.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-namelibnbd-1.22.1-1.fc42
diffbase-store-results-to/tmp/tmppnn2yez1/libnbd-1.22.1-1.fc42.tar.xz
diffbase-time-created2025-04-25 14:00:16
diffbase-time-finished2025-04-25 14:03:00
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmppnn2yez1/libnbd-1.22.1-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmppnn2yez1/libnbd-1.22.1-1.fc42.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-234.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-namelibnbd-1.23.3-1.fc43
store-results-to/tmp/tmpffbn2pji/libnbd-1.23.3-1.fc43.tar.xz
time-created2025-04-25 14:03:21
time-finished2025-04-25 14:05:41
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpffbn2pji/libnbd-1.23.3-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpffbn2pji/libnbd-1.23.3-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9