Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
efi/libstub: prevent read overflow in find_file_option()
[ Upstream commit c4039b2 ] 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: 7a88a62 ("efi/libstub: Fix path separator regression") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information