]> git.ipfire.org Git - thirdparty/grub.git/commit
yylex: use grub_fatal for exit.
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 12 Feb 2016 11:34:54 +0000 (12:34 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 12 Feb 2016 11:34:54 +0000 (12:34 +0100)
commit342d6edb970dd8af21feea3acf02905a5d117e38
tree5d95fd804e712ad7548805e32fdd32813c9c4fad
parente5c930019104f4ad958c8c327097a1efed144374
yylex: use grub_fatal for exit.

lexer calls yylex_fatal on fatal internal errors. yylex_fatal itself is
declared as noreturn and calls exit. Returning from noreturn function has
unpredictable consequences.
grub-core/script/yylex.l