aboutsummaryrefslogtreecommitdiffstats
path: root/src/sync.c
diff options
context:
space:
mode:
authorjames <james>2008-01-25 03:01:06 +0000
committerjames <james>2008-01-25 03:01:06 +0000
commita6b1ebc71b36ed18ad3f2f2685067b5cd4a78f14 (patch)
tree6e18079c394cc348ddd8e4b6fdb7aac234cbd301 /src/sync.c
parentce6101382098005d4db87e4eea120aa8fae1d381 (diff)
downloadgpt-a6b1ebc71b36ed18ad3f2f2685067b5cd4a78f14.tar.gz
gpt-a6b1ebc71b36ed18ad3f2f2685067b5cd4a78f14.tar.bz2
gpt-a6b1ebc71b36ed18ad3f2f2685067b5cd4a78f14.zip
*** empty log message ***
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;