From: Vladimir 'phcoder' Serbinenko Date: Sun, 20 Oct 2013 16:48:06 +0000 (+0200) Subject: * grub-core/fs/ntfs.c: Add comment about fixed allocation size. X-Git-Tag: grub-2.02-beta1~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba6b9b96f1c857fc176e75e7e2d071592b53652;p=thirdparty%2Fgrub.git * grub-core/fs/ntfs.c: Add comment about fixed allocation size. --- 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++)