Skip to content
Commit d73c8bc0 authored by Ivan Gorinov's avatar Ivan Gorinov Committed by Alexander Graf
Browse files

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: default avatarIvan Gorinov <ivan.gorinov@intel.com>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 71cee4ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment