Re: [U-Boot] [PATCH] efi_selftest: check for buffer overflow in efi_get_variable

2018-05-24 Thread Heinrich Schuchardt
On 05/25/2018 02:09 AM, Ivan Gorinov wrote: > Check if GetVariable writes past the end of the output data buffer. > > Signed-off-by: Ivan Gorinov The patch produces build warnings: lib/efi_selftest/efi_selftest_variables.c: In function ‘execute’: lib/efi_selftest/efi_selftest_variables.c:75:10:

[U-Boot] [PATCH] efi_selftest: check for buffer overflow in efi_get_variable

2018-05-24 Thread Ivan Gorinov
Check if GetVariable writes past the end of the output data buffer. Signed-off-by: Ivan Gorinov --- lib/efi_selftest/efi_selftest_variables.c | 16 1 file changed, 16 insertions(+) diff --git a/lib/efi_selftest/efi_selftest_variables.c b/lib/efi_selftest/efi_selftest_variables