Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
curl-8.7.1/lib/sendf.c: scope_hint: In function 'Curl_creader_set_fread'
curl-8.7.1/lib/sendf.c:1058:7: warning[-Wanalyzer-null-dereference]: dereference of NULL 'r'
# 1056|     if(result)
# 1057|       return result;
# 1058|->   ctx = r->ctx;
# 1059|     ctx->total_len = len;
# 1060|   

Error: CLANG_WARNING: [#def2]
curl-8.7.1/lib/smtp.c:1892:5: warning[deadcode.DeadStores]: Value stored to 'result' is never read
# 1890|     *peos = FALSE;
# 1891|     if(!Curl_bufq_is_empty(&ctx->buf)) {
# 1892|->     result = Curl_bufq_cread(&ctx->buf, buf, blen, pnread);
# 1893|     }
# 1894|     else

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.6.0-7.fc40
diffbase-store-results-to/tmp/tmpjvvartxt/curl-8.6.0-7.fc40.tar.xz
diffbase-time-created2024-04-22 10:48:23
diffbase-time-finished2024-04-22 10:53:43
diffbase-toolcsmock
diffbase-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'
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.7.1-1.fc41
store-results-to/tmp/tmp2yk1xhxm/curl-8.7.1-1.fc41.tar.xz
time-created2024-04-22 10:54:15
time-finished2024-04-22 10:59:03
titleNewly introduced defects
toolcsmock
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'
tool-versioncsmock-3.5.3-1.el9