iniparser-4.2.6-1.fc43

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
iniparser-v4.2.6/src/dictionary.c:161:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
iniparser-v4.2.6/src/dictionary.c:152:8: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
iniparser-v4.2.6/src/dictionary.c:153:9: branch_true: ...to here
iniparser-v4.2.6/src/dictionary.c:155:28: acquire_memory: allocated here
iniparser-v4.2.6/src/dictionary.c:157:13: branch_true: following ‘true’ branch...
iniparser-v4.2.6/src/dictionary.c:158:13: branch_true: ...to here
iniparser-v4.2.6/src/dictionary.c:161:13: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  159|               free((void *) d->val);
#  160|               free((void *) d->hash);
#  161|->             free(d);
#  162|               d = NULL;
#  163|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
iniparser-v4.2.6/src/iniparser.c:710:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘value’
iniparser-v4.2.6/src/iniparser.c:676:13: enter_function: entry to ‘parse_quoted_value’
iniparser-v4.2.6/src/iniparser.c:685:14: call_function: calling ‘xstrdup’ from ‘parse_quoted_value’
iniparser-v4.2.6/src/iniparser.c:685:14: return_function: returning to ‘parse_quoted_value’ from ‘xstrdup’
iniparser-v4.2.6/src/iniparser.c:687:7: branch_true: following ‘true’ branch...
iniparser-v4.2.6/src/iniparser.c:688:9: branch_true: ...to here
iniparser-v4.2.6/src/iniparser.c:710:5: danger: dereference of NULL ‘value + (sizetype)v’
#  708|       }
#  709|   end_of_value:
#  710|->     value[v] = '\0';
#  711|       free(quoted);
#  712|   }

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-185.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameiniparser-4.2.6-1.fc43
store-results-to/tmp/tmpztmj_2w7/iniparser-4.2.6-1.fc43.tar.xz
time-created2025-04-25 13:04:39
time-finished2025-04-25 13:05:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpztmj_2w7/iniparser-4.2.6-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpztmj_2w7/iniparser-4.2.6-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9