Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] jq-1.8.2/src/jv.c:2042:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pending' jq-1.8.2/src/jv.c:2183:5: enter_function: entry to 'jv_contains' jq-1.8.2/src/jv.c:2184:10: call_function: calling 'jvp_contains' from 'jv_contains' # 2040| if (jv_get_kind(slot->string) != JV_KIND_NULL) { # 2041| jvp_string_free(slot->string); # 2042|-> pending[len++] = slot->value; # 2043| } # 2044| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] jq-1.8.2/src/jv_aux.c:830:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' jq-1.8.2/src/jv_aux.c:818:4: enter_function: entry to 'jv_unique' jq-1.8.2/src/jv_aux.c:819:3: branch_true: following 'true' branch... jq-1.8.2/src/jv_aux.c:820:3: branch_true: ...to here jq-1.8.2/src/jv_aux.c:820:3: branch_true: following 'true' branch... jq-1.8.2/src/jv_aux.c:821:3: branch_true: ...to here jq-1.8.2/src/jv_aux.c:821:3: branch_true: following 'true' branch... jq-1.8.2/src/jv_aux.c:822:11: branch_true: ...to here jq-1.8.2/src/jv_aux.c:824:32: call_function: calling 'sort_items' from 'jv_unique' jq-1.8.2/src/jv_aux.c:824:32: return_function: returning to 'jv_unique' from 'sort_items' jq-1.8.2/src/jv_aux.c:825:6: branch_false: following 'false' branch... jq-1.8.2/src/jv_aux.c:827:12: branch_false: ...to here jq-1.8.2/src/jv_aux.c:829:19: branch_true: following 'true' branch... jq-1.8.2/src/jv_aux.c:830:60: branch_true: ...to here jq-1.8.2/src/jv_aux.c:830:17: danger: dereference of NULL 'sort_items(objects, keys, & too_deep) + (long unsigned int)i * 40' # 828| jv curr_key = jv_invalid(); # 829| for (int i = 0; i < n; i++) { # 830|-> int equal = jv_equal(jv_copy(curr_key), jv_copy(entries[i].key)); # 831| if (equal < 0) { # 832| jv_free(curr_key); Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] jq-1.8.2/src/linker.c:374:5: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(jv_string_value(lib_path))' jq-1.8.2/src/linker.c:359:6: branch_false: following 'false' branch... jq-1.8.2/src/linker.c:369:13: branch_false: ...to here jq-1.8.2/src/linker.c:369:13: branch_true: following 'true' branch (when 'is_data != 0')... jq-1.8.2/src/linker.c:371:15: branch_true: ...to here jq-1.8.2/src/linker.c:374:42: acquire_memory: allocated here jq-1.8.2/src/linker.c:374:5: danger: 'strdup(jv_string_value(lib_path))' leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) # 372| state_idx = lib_state->ct++; # 373| lib_state->entries = jv_mem_realloc(lib_state->entries, lib_state->ct * sizeof(struct lib_entry)); # 374|-> lib_state->entries[state_idx].name = strdup(jv_string_value(lib_path)); # 375| lib_state->entries[state_idx].def = program; # 376| lib_state->entries[state_idx].loading = 0; Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] jq-1.8.2/src/linker.c:387:7: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(jv_string_value(lib_path))' jq-1.8.2/src/linker.c:359:6: branch_false: following 'false' branch... jq-1.8.2/src/linker.c:369:13: branch_false: ...to here jq-1.8.2/src/linker.c:369:13: branch_false: following 'false' branch (when 'is_data == 0')... jq-1.8.2/src/linker.c:379:11: branch_false: ...to here jq-1.8.2/src/linker.c:382:8: branch_true: following 'true' branch... jq-1.8.2/src/linker.c:385:19: branch_true: ...to here jq-1.8.2/src/linker.c:387:44: acquire_memory: allocated here jq-1.8.2/src/linker.c:387:7: danger: 'strdup(jv_string_value(lib_path))' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6) # 385| state_idx = lib_state->ct++; # 386| lib_state->entries = jv_mem_realloc(lib_state->entries, lib_state->ct * sizeof(struct lib_entry)); # 387|-> lib_state->entries[state_idx].name = strdup(jv_string_value(lib_path)); # 388| lib_state->entries[state_idx].def = gen_noop(); # 389| lib_state->entries[state_idx].loading = 1;
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-70.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | jq-1.8.1-2.fc44 |
| diffbase-store-results-to | /tmp/tmposr2r93e/jq-1.8.1-2.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 15:35:38 |
| diffbase-time-finished | 2026-08-03 15:37:47 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmposr2r93e/jq-1.8.1-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmposr2r93e/jq-1.8.1-2.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-70.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | jq-1.8.2-5.fc45 |
| store-results-to | /tmp/tmpizg4lbwt/jq-1.8.2-5.fc45.tar.xz |
| time-created | 2026-08-03 15:38:01 |
| time-finished | 2026-08-03 15:39:22 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpizg4lbwt/jq-1.8.2-5.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpizg4lbwt/jq-1.8.2-5.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |