diff options
author | 2020-05-20 20:29:21 -0400 | |
---|---|---|
committer | 2020-05-22 16:50:03 +0200 | |
commit | 80b1bfe1cb2f20225fb2d8f11d44af4a9d765396 (patch) | |
tree | cd6f70557c1fe4a91be370bb79c8df837a9487ad /drivers/firmware/efi/libstub/x86-stub.c | |
parent | efi/libstub: Use snprintf with %ls to convert the command line (diff) | |
download | linux-80b1bfe1cb2f20225fb2d8f11d44af4a9d765396.tar.gz linux-80b1bfe1cb2f20225fb2d8f11d44af4a9d765396.tar.bz2 linux-80b1bfe1cb2f20225fb2d8f11d44af4a9d765396.zip |
efi/libstub: Don't parse overlong command lines
Check if the command line passed in is larger than COMMAND_LINE_SIZE,
and truncate it to the last full argument if so.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200521002921.69650-1-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/libstub/x86-stub.c')
0 files changed, 0 insertions, 0 deletions