aboutsummaryrefslogtreecommitdiffstats
path: root/src/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync.c')
-rw-r--r--src/sync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sync.c b/src/sync.c
index 38bb84f..4da2560 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -26,6 +26,9 @@ sync_tables (DISK * d)
GPT_entry e = entry_read (d, &h.header, i);
uint8_t type = 0, bootable = 0;
+ if (e.start>=2147483648) continue;
+ if (e.end>=2147483648) continue;
+
if (!guid_cmp (&e.type, &guid_efi))
{
type = MBR_PARTITION_TYPE_EFI;