Without this fix GRUB doesn't see most of the files
on NTFS partition.
Signed-off-by: Vladimir Serbinenko <[email protected]>
---
grub-core/fs/ntfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/fs/ntfs.c b/grub-core/fs/ntfs.c
index b3117bf92..393a763ee 100644
--- a/grub-core/fs/ntfs.c
+++ b/grub-core/fs/ntfs.c
@@ -175,7 +175,7 @@ validate_attribute (grub_uint8_t *attr, void *end)
* the minimum size.
*/
min_size += (attr[curr] & 0x7) + ((attr[curr] >> 4) & 0x7);
- curr += min_size;
+ curr = min_size;
min_size++;
if (min_size > attr_size)
goto fail;
--
2.49.0
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel