* grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
* grub-core/fs/jfs.c (grub_jfs_diropen): Likewise. * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
This commit is contained in:
parent
53072f9b96
commit
78c2cd1c62
4 changed files with 10 additions and 4 deletions
|
@ -241,7 +241,7 @@ struct grub_jfs_diropen
|
|||
/* On-disk name is at most 255 UTF-16 codepoints.
|
||||
Every UTF-16 codepoint is at most 4 UTF-8 bytes.
|
||||
*/
|
||||
char name[256 * 4 + 1];
|
||||
char name[256 * GRUB_MAX_UTF8_PER_UTF16 + 1];
|
||||
grub_uint32_t ino;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue