efi/printf: Abort on invalid format
authorArvind Sankar <nivedita@alum.mit.edu>
Mon, 18 May 2020 19:07:07 +0000 (15:07 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 19 May 2020 08:32:04 +0000 (10:32 +0200)
commitf97ca2c816748e3b7dee58775632f9e9269071e6
tree92b2305c2e31b83748f50ca3cee7624d2719223f
parent6c4bcd8a46a98856c06ca3ba8a80f03a61e23960
efi/printf: Abort on invalid format

If we get an invalid conversion specifier, bail out instead of trying to
fix it up. The format string likely has a typo or assumed we support
something that we don't, in either case the remaining arguments won't
match up with the remaining format string.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200518190716.751506-16-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/vsprintf.c