diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-19 17:14:48 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-19 17:14:48 +0100 |
commit | dfdcd7eff371071d4f5089fa8bf1c50bef6828f5 (patch) | |
tree | 7c8b87cff9b238adafaf382a0a6c7fc9b6ee9ac5 | |
parent | 59fd1e9d1d75cedfa9c1f6a06fd3f367fe644360 (diff) | |
download | gnu-efi-dfdcd7eff371071d4f5089fa8bf1c50bef6828f5.tar.gz |
Undefined Status in LibGetVariableAndSize()
GrowBuffer() expects that parameter Status is initialized.
LibGetVariableAndSize() currently passes random data from the stack.
Initialize variable Status.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | lib/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -246,7 +246,7 @@ LibGetVariableAndSize ( OUT UINTN *VarSize ) { - EFI_STATUS Status; + EFI_STATUS Status = EFI_SUCCESS; VOID *Buffer; UINTN BufferSize; |