Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
jq-jq-1.7.1/src/jv_dtoa_tsd.c:44:5: warning[-Wanalyzer-malloc-leak]: leak of 'ctx'
jq-jq-1.7.1/src/jv_dtoa_tsd.c:42:6: branch_true: following 'true' branch (when 'ctx' is NULL)...
jq-jq-1.7.1/src/jv_dtoa_tsd.c:43:11: branch_true: ...to here
jq-jq-1.7.1/src/jv_dtoa_tsd.c:43:11: acquire_memory: allocated here
jq-jq-1.7.1/src/jv_dtoa_tsd.c:44:5: throw: if 'jvp_dtoa_context_init' throws an exception...
jq-jq-1.7.1/src/jv_dtoa_tsd.c:44:5: danger: 'ctx' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   42|     if (!ctx) {
#   43|       ctx = malloc(sizeof(struct dtoa_context));
#   44|->     jvp_dtoa_context_init(ctx);
#   45|       if (pthread_setspecific(dtoa_ctx_key, ctx) != 0) {
#   46|         fprintf(stderr, "error: cannot set thread specific data");

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
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-135.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-x86_64
diffbase-project-namejq-1.8.1-1.fc44
diffbase-store-results-to/tmp/tmp0uh0m64o/jq-1.8.1-1.fc44.tar.xz
diffbase-time-created2026-01-08 17:12:40
diffbase-time-finished2026-01-08 17:14:14
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp0uh0m64o/jq-1.8.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0uh0m64o/jq-1.8.1-1.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-135.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-x86_64
project-namejq-1.7.1-12.fc43
store-results-to/tmp/tmpms94me_x/jq-1.7.1-12.fc43.tar.xz
time-created2026-01-08 17:10:19
time-finished2026-01-08 17:12:29
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpms94me_x/jq-1.7.1-12.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpms94me_x/jq-1.7.1-12.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9