grub/grub-core/script
Glenn Washburn ac301e4dd0 script: Do not allow a delimiter between function name and block start
Currently the following is valid syntax but should be a syntax error:

  grub> function f; { echo HERE; }
  grub> f
  HERE

This fix is not backward compatible, but current syntax is not documented
either and has no functional value. So any scripts with this unintended
syntax are technically syntactically incorrect and should not be relying
on this behavior.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2020-09-18 22:31:30 +02:00
..
argv.c malloc: Use overflow checking primitives where we do complex allocations 2020-07-29 16:55:47 +02:00
execute.c script: Avoid a use-after-free when redefining a function during execution 2020-07-29 16:55:48 +02:00
function.c script: Avoid a use-after-free when redefining a function during execution 2020-07-29 16:55:48 +02:00
lexer.c lexer: char const * should be const char * 2020-09-18 22:31:30 +02:00
main.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
parser.y script: Do not allow a delimiter between function name and block start 2020-09-18 22:31:30 +02:00
script.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
yylex.l yylex: Make lexer fatal errors actually be fatal 2020-07-29 16:55:47 +02:00