mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
removed arbitrary limit on token size
This commit is contained in:
1 parent
547e494f1b
commit
df6dc2113a
3 files changed
+89
-81
No files matched your search
@@ -157,8 +157,10 @@ struct grub_lexer_param
|
||||
int merge_start;
|
||||
int merge_end;
|
||||
|
||||
/* Text of current token. */
|
||||
/* Part of a multi-part token. */
|
||||
char *text;
|
||||
unsigned used;
|
||||
unsigned size;
|
||||
|
||||
/* Type of text. */
|
||||
grub_script_arg_type_t type;
|
||||
@@ -168,12 +170,9 @@ struct grub_lexer_param
|
||||
|
||||
/* Flex scanner buffer. */
|
||||
void *buffer;
|
||||
|
||||
/* Length of current token text. */
|
||||
unsigned size;
|
||||
};
|
||||
|
||||
#define GRUB_LEXER_TOKEN_MAX 256
|
||||
#define GRUB_LEXER_INITIAL_TEXT_SIZE 32
|
||||
#define GRUB_LEXER_RECORD_INCREMENT 256
|
||||
|
||||
/* State of the parser as passes to the parser. */
|
||||
|
||||
Reference in new issue
Block a user