summaryrefslogtreecommitdiff
path: root/lib/efi_selftest/efi_selftest_manageprotocols.c
diff options
context:
space:
mode:
authorIvan Gorinov <ivan.gorinov@intel.com>2018-05-11 13:18:25 -0700
committerAlexander Graf <agraf@suse.de>2018-06-03 15:27:20 +0200
commitd73c8bc052f9b5f472b59ccd3c88e3ecc6359075 (patch)
tree29eed9b5140dbaa75a9547038aa95713495fac6b /lib/efi_selftest/efi_selftest_manageprotocols.c
parent71cee4ce68e19c0bf67e5b587ba2e1b940d18d09 (diff)
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>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_manageprotocols.c')
0 files changed, 0 insertions, 0 deletions