All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ntfs: Fix attribute validation check
@ 2025-05-03  8:02 Vladimir Serbinenko
  2025-05-05 15:22 ` Glenn Washburn
  2025-05-15 16:24 ` Daniel Kiper
  0 siblings, 2 replies; 5+ messages in thread
From: Vladimir Serbinenko @ 2025-05-03  8:02 UTC (permalink / raw)
  To: grub-devel; +Cc: Vladimir Serbinenko

Without this fix GRUB doesn't see most of the files
on NTFS partition.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
---
 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
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-17  1:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-03  8:02 [PATCH] ntfs: Fix attribute validation check Vladimir Serbinenko
2025-05-05 15:22 ` Glenn Washburn
2025-05-05 15:27   ` Andrew Hamilton
2025-05-15 16:24 ` Daniel Kiper
2025-05-17  1:28   ` Andrew Hamilton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.