commit | 911bcb7f447013dd48b3e09ddf063449719ed955 | [log] [tgz] |
---|---|---|
author | Julian Hall <julian.hall@arm.com> | Tue Jul 19 12:43:30 2022 +0100 |
committer | Gyorgy Szing <Gyorgy.Szing@arm.com> | Wed Oct 12 07:22:48 2022 +0200 |
tree | 60ae00e18d27e59d4aad5ec1d94f31eb9fac273d | |
parent | 19e802841fdddb1465f2bc232011958bf28f9721 [diff] |
Fix UEFI get_variable with small buffer The handling of the UEFI get_variable operation was incorrect when a small or zero data length was specified by a requester. A zero length data length is a legitimate way to discover the size of a variable without actually retrieving its data. This change adds test cases that reproduce the problem and a fix. Signed-off-by: Julian Hall <julian.hall@arm.com> Change-Id: Iec087fbf9305746d1438888e871602ec0ce15824