Re: [U-Boot] [PATCH] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-09 Thread Heinrich Schuchardt
On 05/09/2018 12:50 AM, Ivan Gorinov wrote: efi_get_variable() always stores an extra zero byte after the output data. When the returned data size matches the output buffer size, the extra zero byte is stored past the end of the output buffer. Signed-off-by: Ivan Gorinov

Re: [U-Boot] [PATCH] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-09 Thread Alexander Graf
On 05/09/2018 12:50 AM, Ivan Gorinov wrote: efi_get_variable() always stores an extra zero byte after the output data. When the returned data size matches the output buffer size, the extra zero byte is stored past the end of the output buffer. Signed-off-by: Ivan Gorinov

[U-Boot] [PATCH] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-08 Thread Ivan Gorinov
efi_get_variable() always stores an extra zero byte after the output data. When the returned data size matches the output buffer size, the extra zero byte is stored past the end of the output buffer. Signed-off-by: Ivan Gorinov --- lib/efi_loader/efi_variable.c | 4 ++--