forked from pool/grub2
14 lines
646 B
Diff
14 lines
646 B
Diff
|
Index: grub-2.02~beta2/grub-core/fs/btrfs.c
|
||
|
===================================================================
|
||
|
--- grub-2.02~beta2.orig/grub-core/fs/btrfs.c
|
||
|
+++ grub-2.02~beta2/grub-core/fs/btrfs.c
|
||
|
@@ -1051,7 +1051,7 @@ grub_btrfs_extent_read (struct grub_btrf
|
||
|
|
||
|
data->extend = data->extstart + grub_le_to_cpu64 (data->extent->size);
|
||
|
if (data->extent->type == GRUB_BTRFS_EXTENT_REGULAR
|
||
|
- && (char *) &data->extent + elemsize
|
||
|
+ && (char *) data->extent + elemsize
|
||
|
>= (char *) &data->extent->filled + sizeof (data->extent->filled))
|
||
|
data->extend =
|
||
|
data->extstart + grub_le_to_cpu64 (data->extent->filled);
|