Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
nbdkit-1.45.12/plugins/vram/vram.c:501:5: warning[-Wanalyzer-null-argument]: use of NULL 'buf' where non-null expected
nbdkit-1.45.12/plugins/vram/vram.c:703:1: enter_function: entry to 'vram_zero'
nbdkit-1.45.12/plugins/vram/vram.c:705:25: release_memory: 'bounce' is NULL
nbdkit-1.45.12/plugins/vram/vram.c:709:6: branch_false: following 'false' branch...
nbdkit-1.45.12/plugins/vram/vram.c:717:3: branch_false: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:721:6: branch_true: following 'true' branch (when 'bufoffs != 0')...
nbdkit-1.45.12/plugins/vram/vram.c:722:18: branch_true: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:724:9: release_memory: 'bounce' is NULL
nbdkit-1.45.12/plugins/vram/vram.c:724:9: call_function: calling 'read_buffer' from 'vram_zero'
#argument 1 of '__builtin_memset' must be non-null
#  499|     }
#  500|     else {                        /* Sparse. */
#  501|->     memset (buf, 0, BUFFER_SIZE);
#  502|     }
#  503|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
nbdkit-1.45.12/plugins/vram/vram.c:705:25: warning[-Wanalyzer-malloc-leak]: leak of 'bounce'
nbdkit-1.45.12/plugins/vram/vram.c:709:6: branch_true: following 'true' branch...
nbdkit-1.45.12/plugins/vram/vram.c:710:14: branch_true: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:710:14: acquire_memory: allocated here
nbdkit-1.45.12/plugins/vram/vram.c:711:8: branch_false: following 'false' branch...
nbdkit-1.45.12/plugins/vram/vram.c:717:3: branch_false: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:721:6: branch_false: following 'false' branch (when 'bufoffs == 0')...
 branch_false: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:736:10: branch_false: following 'false' branch (when 'count <= 65535')...
nbdkit-1.45.12/plugins/vram/vram.c:746:7: branch_false: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:753:6: branch_false: following 'false' branch (when 'count == 0')...
nbdkit-1.45.12/plugins/vram/vram.c:764:10: branch_false: ...to here
nbdkit-1.45.12/plugins/vram/vram.c:705:25: danger: 'bounce' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  703|   vram_zero (void *handle, uint32_t count, uint64_t offset, uint32_t flags)
#  704|   {
#  705|->   CLEANUP_FREE uint8_t *bounce = NULL;
#  706|     uint64_t bufnum, bufoffs;
#  707|     cl_int r;

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-40.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.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namenbdkit-1.45.8-1.fc43
diffbase-store-results-to/tmp/tmpvw70jm51/nbdkit-1.45.8-1.fc43.tar.xz
diffbase-time-created2025-10-28 19:23:38
diffbase-time-finished2025-10-28 19:32:32
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpvw70jm51/nbdkit-1.45.8-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpvw70jm51/nbdkit-1.45.8-1.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-40.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namenbdkit-1.45.12-1.fc44
store-results-to/tmp/tmpda5h2pjq/nbdkit-1.45.12-1.fc44.tar.xz
time-created2025-10-28 19:32:59
time-finished2025-10-28 19:41:23
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpda5h2pjq/nbdkit-1.45.12-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpda5h2pjq/nbdkit-1.45.12-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9