mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
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: 7a88a6227d ("efi/libstub: Fix path separator regression")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>