Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
curl-8.6.0/lib/http2.c: scope_hint: In function 'recvbuf_write_hds'
curl-8.6.0/lib/http2.c:979:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
curl-8.6.0/lib/http2.c:970:31: note: in expansion of macro 'H2_STREAM_CTX'
#  977|     if(nwritten < 0)
#  978|       return result;
#  979|->   stream->resp_hds_len += (size_t)nwritten;
#  980|     DEBUGASSERT((size_t)nwritten == blen);
#  981|     return CURLE_OK;

Error: CLANG_WARNING: [#def2]
curl-8.6.0/lib/http2.c:1304:5: warning[deadcode.DeadStores]: Value stored to 'nwritten' is never read
# 1302|         return NGHTTP2_ERR_CALLBACK_FAILURE;
# 1303|   
# 1304|->     nwritten = 0;
# 1305|     }
# 1306|   

Scan Properties

analyzer-version-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.3
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-113.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namecurl-8.7.1-1.fc41
diffbase-store-results-to/tmp/tmp2yk1xhxm/curl-8.7.1-1.fc41.tar.xz
diffbase-time-created2024-04-22 10:54:15
diffbase-time-finished2024-04-22 10:59:03
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2yk1xhxm/curl-8.7.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp2yk1xhxm/curl-8.7.1-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-113.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namecurl-8.6.0-7.fc40
store-results-to/tmp/tmpjvvartxt/curl-8.6.0-7.fc40.tar.xz
time-created2024-04-22 10:48:23
time-finished2024-04-22 10:53:43
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjvvartxt/curl-8.6.0-7.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpjvvartxt/curl-8.6.0-7.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9