]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: fix off-by-one bug in efi_get_variable
authorIvan Gorinov <ivan.gorinov@intel.com>
Fri, 11 May 2018 20:18:25 +0000 (13:18 -0700)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:27:20 +0000 (15:27 +0200)
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 <ivan.gorinov@intel.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>

No differences found