Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
jq-1.8.1/src/jv_aux.c:751:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
jq-1.8.1/src/jv_aux.c:742:4: enter_function: entry to 'jv_unique'
jq-1.8.1/src/jv_aux.c:743:3: branch_true: following 'true' branch...
jq-1.8.1/src/jv_aux.c:744:3: branch_true: ...to here
jq-1.8.1/src/jv_aux.c:744:3: branch_true: following 'true' branch...
jq-1.8.1/src/jv_aux.c:745:3: branch_true: ...to here
jq-1.8.1/src/jv_aux.c:745:3: branch_true: following 'true' branch...
jq-1.8.1/src/jv_aux.c:746:11: branch_true: ...to here
jq-1.8.1/src/jv_aux.c:747:32: call_function: calling 'sort_items' from 'jv_unique'
jq-1.8.1/src/jv_aux.c:747:32: return_function: returning to 'jv_unique' from 'sort_items'
jq-1.8.1/src/jv_aux.c:750:19: branch_true: following 'true' branch...
jq-1.8.1/src/jv_aux.c:751:52: branch_true: ...to here
jq-1.8.1/src/jv_aux.c:751:9: danger: dereference of NULL 'sort_items(objects,  keys) + (long unsigned int)i * 40'
#  749|     jv curr_key = jv_invalid();
#  750|     for (int i = 0; i < n; i++) {
#  751|->     if (jv_equal(jv_copy(curr_key), jv_copy(entries[i].key))) {
#  752|         jv_free(entries[i].key);
#  753|         jv_free(entries[i].object);

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
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-70.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namejq-1.8.2-5.fc45
diffbase-store-results-to/tmp/tmpizg4lbwt/jq-1.8.2-5.fc45.tar.xz
diffbase-time-created2026-08-03 15:38:01
diffbase-time-finished2026-08-03 15:39:22
diffbase-toolcsmock
diffbase-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'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-70.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namejq-1.8.1-2.fc44
store-results-to/tmp/tmposr2r93e/jq-1.8.1-2.fc44.tar.xz
time-created2026-08-03 15:35:38
time-finished2026-08-03 15:37:47
titleFixed findings
toolcsmock
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'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9