efi_loader: do not miss last relocation block
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 16 Feb 2019 14:36:33 +0000 (15:36 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 16 Feb 2019 14:51:14 +0000 (15:51 +0100)
commit997fc12ec91eccf6b7485565864f3eb8ce74def2
treee10ca0c48d2c69624d2a1adbc0f346b13021b6ef
parent1db561e11f2b6b6cd8f64035cc12b067dd6c1f91
efi_loader: do not miss last relocation block

If the last block in the relocation table contains only a single
relocation, the current coding ignores it.

Fix the determination of the end of the relocation table.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_image_loader.c