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 {
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-167.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | pyparted-3.13.0-6.fc41 |
store-results-to | /tmp/tmprxzaxth_/pyparted-3.13.0-6.fc41.tar.xz |
time-created | 2024-07-03 17:07:59 |
time-finished | 2024-07-03 17:08:52 |
tool | csmock |
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-version | csmock-3.5.3-1.el9 |