cryptsetup-2.8.6-1.fc45

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
cryptsetup-2.8.6/lib/utils_device_locking.c:185: error[ctunullpointer]: Null pointer dereference: name
#  183|   	int fd;
#  184|   
#  185|-> 	h->u.name.name = strdup(name);
#  186|   	if (!h->u.name.name)
#  187|   		return -ENOMEM;

Error: CPPCHECK_WARNING (CWE-476): [#def2]
cryptsetup-2.8.6/lib/utils_device_locking.c:185: warning[nullPointer]: Possible null pointer dereference: name
#  183|   	int fd;
#  184|   
#  185|-> 	h->u.name.name = strdup(name);
#  186|   	if (!h->u.name.name)
#  187|   		return -ENOMEM;

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-7.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-namecryptsetup-2.8.6-1.fc45
store-results-to/tmp/tmptp7pidjw/cryptsetup-2.8.6-1.fc45.tar.xz
time-created2026-06-01 11:43:26
time-finished2026-06-01 11:45:05
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmptp7pidjw/cryptsetup-2.8.6-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptp7pidjw/cryptsetup-2.8.6-1.fc45.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9