uefi: Add boundary checks
uefi: Add boundary checks

Don't panic on invalid data. Bugs are caught
using fuzz-testing.

Signed-off-by: Dmitrii Okunev <74d81ae1898d935b77a01158fdef590f9767e0f5@fb.com>

linuxboot/fiano