efi_loader: incorrect buffer size in efi_file_setinfo()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 10 Nov 2020 06:24:16 +0000 (07:24 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 14 Nov 2020 04:05:46 +0000 (05:05 +0100)
commit792aee11501f8033af28461c2ea4533e02e65abf
treea3b7dc2d76661223d4631f00632464b0bd46cc9a
parent337c97d9353c7277620322fda1f8cdd3d2677065
efi_loader: incorrect buffer size in efi_file_setinfo()

When copying a string with must allocate a byte for the terminating '\0' in
the target buffer.

Fixes: fbe4c7df0087 ("efi_loader: enable file SetInfo()")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_file.c