1. Update GetStringWorker() of HiiDataBaseDxe to only search in other language and not update the StringSize to avoid GetString() buffer overflow.
2. Update SetupBrowser to correctly handle ordered list option. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10041 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -590,6 +590,9 @@ DestroyStatement (
|
||||
if (Statement->BlockName != NULL) {
|
||||
FreePool (Statement->BlockName);
|
||||
}
|
||||
if (Statement->BufferValue != NULL) {
|
||||
FreePool (Statement->BufferValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1352,6 +1355,7 @@ ParseOpCodes (
|
||||
CurrentStatement->MaxContainers = ((EFI_IFR_ORDERED_LIST *) OpCodeData)->MaxContainers;
|
||||
|
||||
CurrentStatement->HiiValue.Type = EFI_IFR_TYPE_BUFFER;
|
||||
CurrentStatement->BufferValue = NULL;
|
||||
|
||||
if (Scope != 0) {
|
||||
SuppressForOption = TRUE;
|
||||
|
Reference in New Issue
Block a user