From 1ba6b9b96f1c857fc176e75e7e2d071592b53652 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sun, 20 Oct 2013 18:48:06 +0200 Subject: [PATCH] * grub-core/fs/ntfs.c: Add comment about fixed allocation size. --- ChangeLog | 4 ++++ grub-core/fs/ntfs.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index fd8cd931f..a4d2e9e86 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-10-20 Vladimir Serbinenko + + * grub-core/fs/ntfs.c: Add comment about fixed allocation size. + 2013-10-20 Vladimir Serbinenko * grub-core/fs/zfs.c: Remove variable length arrays. diff --git a/grub-core/fs/ntfs.c b/grub-core/fs/ntfs.c index d342e45c5..7e7d2df67 100644 --- a/grub-core/fs/ntfs.c +++ b/grub-core/fs/ntfs.c @@ -643,6 +643,7 @@ list_file (struct grub_ntfs_file *diro, grub_uint8_t *pos, if (ustr == NULL) return 0; { + /* ns is read at uint8_t, so is can be at most 255. */ grub_uint16_t tmp[256]; int i; for (i = 0; i < ns; i++)