pyparted-3.13.0-6.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c:2250:17: warning[core.NullDereference]: Access to field 'dev' results in a dereference of a null pointer (loaded from variable 'disk')
# 2248|               }
# 2249|           } else {
# 2250|->             if (disk->dev == NULL) {
# 2251|                   PyErr_Format(DiskException, "Could not create new disk label");
# 2252|               } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c: scope_hint: In function ‘py_ped_disk_new_fresh’
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c:2250:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2248|               }
# 2249|           } else {
# 2250|->             if (disk->dev == NULL) {
# 2251|                   PyErr_Format(DiskException, "Could not create new disk label");
# 2252|               } else {

Error: CLANG_WARNING: [#def3]
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c:2291:17: warning[core.NullDereference]: Access to field 'dev' results in a dereference of a null pointer (loaded from variable 'disk')
# 2289|               }
# 2290|           } else {
# 2291|->             if (disk->dev == NULL) {
# 2292|                   PyErr_Format(DiskException, "Could not create new disk label");
# 2293|               } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c: scope_hint: In function ‘py_ped_disk_new’
pyparted-3.13.0-build/pyparted-3.13.0/src/pydisk.c:2291:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2289|               }
# 2290|           } else {
# 2291|->             if (disk->dev == NULL) {
# 2292|                   PyErr_Format(DiskException, "Could not create new disk label");
# 2293|               } else {

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-167.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepyparted-3.13.0-6.fc41
store-results-to/tmp/tmprxzaxth_/pyparted-3.13.0-6.fc41.tar.xz
time-created2024-07-03 17:07:59
time-finished2024-07-03 17:08:52
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmprxzaxth_/pyparted-3.13.0-6.fc41.tar.xz' '--gcc-analyze' '/tmp/tmprxzaxth_/pyparted-3.13.0-6.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9