]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[bzimage] Fix parsing of "vga=..." when not at end of command line 785/head
authorMichael Brown <mcb30@ipxe.org>
Thu, 27 Oct 2022 11:58:33 +0000 (12:58 +0100)
committerMichael Brown <mcb30@ipxe.org>
Thu, 27 Oct 2022 12:05:35 +0000 (13:05 +0100)
commitf48b01cb016921cf0f58bd6be676c17042923719
tree69a56b014a97ebeea5bca17618246fe1c96a0d39
parent8fce26730c4df7a9792bb144c75c2c5b998c91af
[bzimage] Fix parsing of "vga=..." when not at end of command line

bzimage_parse_cmdline() uses strcmp() to identify the named "vga=..."
kernel command line option values, which will give a false negative if
the option is not last on the command line.

Fix by temporarily changing the relevant command line separator (if
any) to a NUL terminator.

Debugged-by: Simon Rettberg <simon.rettberg@rz.uni-freiburg.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c