Related: RHEL-73217 - libparted: Fix dvh disklabel unhandled exception (bcl) Related: RHEL-73217 - tests: Add test for SUN disklabel handling (bcl) Related: RHEL-73217 - libparted: Fix sun disklabel unhandled exception (bcl) Resolves: RHEL-73217
34 lines
1023 B
Diff
34 lines
1023 B
Diff
From 96752c7455e1a88af296036c1d393c1c7b085611 Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Wed, 8 Jan 2025 13:35:04 -0800
|
|
Subject: [PATCH 12/13] libparted: Fix dvh disklabel unhandled exception
|
|
|
|
When an exception is using PED_EXCEPTION_IGNORE_CANCEL it should check
|
|
for !PED_EXCEPTION_IGNORE so that an unhandled exception is treated the
|
|
same as cancel. Otherwise it could lead to using the disklabel with
|
|
incorrect values.
|
|
|
|
(cherry picked from commit 1480769f2a7071c5a251b6c69658808199e8b05b)
|
|
|
|
Related: RHEL-73217
|
|
---
|
|
libparted/labels/dvh.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libparted/labels/dvh.c b/libparted/labels/dvh.c
|
|
index 957ef82..509c652 100644
|
|
--- a/libparted/labels/dvh.c
|
|
+++ b/libparted/labels/dvh.c
|
|
@@ -308,7 +308,7 @@ dvh_read (PedDisk* disk)
|
|
PED_EXCEPTION_IGNORE_CANCEL,
|
|
_("Checksum is wrong, indicating the partition "
|
|
"table is corrupt."))
|
|
- == PED_EXCEPTION_CANCEL)
|
|
+ != PED_EXCEPTION_IGNORE)
|
|
return 0;
|
|
}
|
|
|
|
--
|
|
2.48.1
|
|
|