Skip to content
Commit c4039b29 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ard Biesheuvel
Browse files

efi/libstub: prevent read overflow in find_file_option()

If the buffer has slashes up to the end then this will read past the end
of the array.  I don't anticipate that this is an issue for many people
in real life, but it's the right thing to do and it makes static
checkers happy.

Fixes: 7a88a622

 ("efi/libstub: Fix path separator regression")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 45add3cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment