debian-forge-composer/internal
Tomáš Hozza 63f1b8d9fb internal/disk: fix potential nil pointer dereference
The `LVMVolumeGroup.Clone()` method could end up dereferencing a `nil`
pointer in the `lv` variable, if there would be a `nil` logical volume
in the LVM volume group. Such situation would be an error of its own.
There is no point in checking if the cloned logical volume is not `nil`
and casting it to another variable. The logic should check if the cloned
logical volume is `nil` and panic in such situation. The following code
can then cast the clone to a different variable without issues and there
is no risk of dereferencing a `nil` pointer.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2022-11-07 16:10:41 +01:00
..
artifact
auth
blueprint blueprints: Fix commit message when version is empty 2022-09-30 17:42:07 +02:00
boot
client
cloud awscloud: add option to mark S3 object as public 2022-09-19 22:56:36 +02:00
cloudapi cloudapi/v2: expose ostree contenturl and rhsm options 2022-11-04 11:41:31 +01:00
common
container internal/container: delete unreachable code 2022-11-07 16:10:41 +01:00
crypt
disk internal/disk: fix potential nil pointer dereference 2022-11-07 16:10:41 +01:00
distro internal/distro/el7: delete unreachable code 2022-11-07 16:10:41 +01:00
distroregistry distroregistry: Add host's architecture name to the registry 2022-11-03 08:39:22 +01:00
dnfjson
environment
image image: make read only sysroot optional for OSTreeRawImage 2022-10-11 10:00:22 +02:00
jobqueue worker/server: requeue unresponsive jobs 2022-11-02 15:26:00 +01:00
jsondb
manifest manifest: remove private osTreeCommit type 2022-10-11 10:00:22 +02:00
mocks
osbuild internal/osbuild: contenturl and rhsm secrets for ostree sources 2022-10-28 16:14:30 +02:00
oscap
ostree internal/ostree: add consumer certs when resolving ostree ref 2022-10-28 16:14:30 +02:00
platform
prometheus
reporegistry
rhsm internal/rhsm: add consumer secrets to Subscriptions 2022-10-28 16:14:30 +02:00
rpmmd
runner
store store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00
target internal/target/azure_image: mark Location as optional 2022-10-27 19:33:43 +02:00
test
upload internal/upload/azure: make location optional in various methods 2022-10-27 19:33:43 +02:00
users
weldr store: Fix loading cross distro compose results 2022-11-03 08:39:22 +01:00
worker worker/server: requeue unresponsive jobs 2022-11-02 15:26:00 +01:00
workload
tools.go