Task #1803 - pyparted-3.13.0-5.fc40/scan-results.err

back to task #1803
download
Error: CLANG_WARNING:
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):
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:
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):
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 {