* grub-core/fs/udf.c: Remove variable length arrays.
Increases udf.mod by 128 bytes (but decreases by 13 compressed when compressed).
This commit is contained in:
parent
9c12ac9773
commit
0927e5bdc8
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/udf.c: Remove variable length arrays.
|
||||
Increases udf.mod by 128 bytes (but decreases by 13 compressed when
|
||||
compressed).
|
||||
|
||||
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/iso9660.c: Remove variable length arrays.
|
||||
|
|
|
@ -216,6 +216,7 @@ struct grub_udf_file_ident
|
|||
struct grub_udf_tag tag;
|
||||
grub_uint16_t version_num;
|
||||
grub_uint8_t characteristics;
|
||||
#define MAX_FILE_IDENT_LENGTH 256
|
||||
grub_uint8_t file_ident_length;
|
||||
struct grub_udf_long_ad icb;
|
||||
grub_uint16_t imp_use_length;
|
||||
|
@ -909,7 +910,7 @@ grub_udf_iterate_dir (grub_fshelp_node_t dir,
|
|||
{
|
||||
enum grub_fshelp_filetype type;
|
||||
char *filename;
|
||||
grub_uint8_t raw[dirent.file_ident_length];
|
||||
grub_uint8_t raw[MAX_FILE_IDENT_LENGTH];
|
||||
|
||||
type = ((dirent.characteristics & GRUB_UDF_FID_CHAR_DIRECTORY) ?
|
||||
(GRUB_FSHELP_DIR) : (GRUB_FSHELP_REG));
|
||||
|
|
Loading…
Reference in a new issue