mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Clear the buffer after using it
Cc: Liming Gao <liming.gao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
9e2462b8a2
commit
a275df8f9a
|
@ -907,7 +907,8 @@ PasswordProcess (
|
|||
|
||||
Status = EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
ZeroMem (TempString, (Maximum + 1) * sizeof (CHAR16));
|
||||
ZeroMem (StringPtr, (Maximum + 1) * sizeof (CHAR16));
|
||||
FreePool (TempString);
|
||||
FreePool (StringPtr);
|
||||
|
||||
|
|
|
@ -1616,6 +1616,7 @@ ProcessUserInput (
|
|||
DeleteString(Statement->HiiValue.Value.string, gCurrentSelection->FormSet->HiiHandle);
|
||||
Statement->HiiValue.Value.string = UserInput->InputValue.Value.string;
|
||||
CopyMem (Statement->BufferValue, UserInput->InputValue.Buffer, (UINTN) UserInput->InputValue.BufferLen);
|
||||
ZeroMem (UserInput->InputValue.Buffer, (UINTN) UserInput->InputValue.BufferLen);
|
||||
FreePool (UserInput->InputValue.Buffer);
|
||||
//
|
||||
// Two password match, send it to Configuration Driver
|
||||
|
|
Loading…
Reference in New Issue