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:975:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
curl-8.6.0/lib/http2.c:966:31: note: in expansion of macro 'H2_STREAM_CTX'
#  973|     if(nwritten < 0)
#  974|       return result;
#  975|->   stream->resp_hds_len += (size_t)nwritten;
#  976|     DEBUGASSERT((size_t)nwritten == blen);
#  977|     return CURLE_OK;

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

Scan Properties

analyzer-version-clang18.1.2
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.9.0
diffbase-analyzer-version-clang18.1.2
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.9.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-143.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namecurl-8.7.1-1.fc41
diffbase-store-results-to/tmp/tmpwxvl_ghr/curl-8.7.1-1.fc41.tar.xz
diffbase-time-created2024-04-16 06:52:52
diffbase-time-finished2024-04-16 06:58:41
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clang,shellcheck' '-o' '/tmp/tmpwxvl_ghr/curl-8.7.1-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpwxvl_ghr/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-143.us-west-2.compute.internal
mock-configfedora-rawhide-x86_64
project-namecurl-8.6.0-8.fc40
store-results-to/tmp/tmpu_metzis/curl-8.6.0-8.fc40.tar.xz
time-created2024-04-16 06:44:46
time-finished2024-04-16 06:52:21
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clang,shellcheck' '-o' '/tmp/tmpu_metzis/curl-8.6.0-8.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpu_metzis/curl-8.6.0-8.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9