]> git.sur5r.net Git - u-boot/commit
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)
commitd73c8bc052f9b5f472b59ccd3c88e3ecc6359075
tree29eed9b5140dbaa75a9547038aa95713495fac6b
parent71cee4ce68e19c0bf67e5b587ba2e1b940d18d09
efi_loader: fix off-by-one bug in efi_get_variable

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>
lib/efi_loader/efi_variable.c