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

2018-05-11 Thread Ivan Gorinov
On Fri, May 11, 2018 at 08:18:27PM +0200, Heinrich Schuchardt wrote: > On 05/11/2018 07:54 PM, 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

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

2018-05-11 Thread Heinrich Schuchardt
On 05/11/2018 07:54 PM, 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 v3] efi_loader: fix off-by-one bug in efi_get_variable

2018-05-11 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 | 40