From: Vladimir Serbinenko <phcoder@gmail.com>
To: grub-devel@gnu.org
Cc: Vladimir Serbinenko <phcoder@gmail.com>
Subject: [PATCH] ntfs: Fix attribute validation check
Date: Sat, 3 May 2025 08:02:07 +0000 [thread overview]
Message-ID: <20250503080217.12785-1-phcoder@gmail.com> (raw)
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
next reply other threads:[~2025-05-03 8:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-03 8:02 Vladimir Serbinenko [this message]
2025-05-05 15:22 ` [PATCH] ntfs: Fix attribute validation check Glenn Washburn
2025-05-05 15:27 ` Andrew Hamilton
2025-05-15 16:24 ` Daniel Kiper
2025-05-17 1:28 ` Andrew Hamilton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250503080217.12785-1-phcoder@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.