Skip to content

Commit fbe0805

Browse files
poloaegis83lgao4
authored andcommitted
MdeModulePkg/HiiDatabaseDxe: Remove buffer error for string default.
Remove efivarstore IFR buffer error when string load default. In the case of varstore type IFR, it will be NULL, just break into next opcode process. Resolve issue from commit cbe8a09 varstore type IFR string might return status error while execute ExtractConfig function. Signed-off-by: Longhao Lee <longhaox.lee@intel.com>
1 parent 0192f2d commit fbe0805

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,6 +3016,10 @@ ParseIfrData (
30163016
goto Done;
30173017
}
30183018

3019+
if (IfrEfiVarStoreTmp == NULL) {
3020+
break;
3021+
}
3022+
30193023
//
30203024
// Set default value base on the DefaultId list get from IFR data.
30213025
//
@@ -3030,11 +3034,6 @@ ParseIfrData (
30303034
goto Done;
30313035
}
30323036

3033-
if (IfrEfiVarStoreTmp == NULL) {
3034-
Status = EFI_OUT_OF_RESOURCES;
3035-
goto Done;
3036-
}
3037-
30383037
FindQuestionDefaultSetting (DefaultData.DefaultId, IfrEfiVarStoreTmp, &(IfrString->Question), (VOID *)StringData, VarWidth, QuestionReferBitField);
30393038
if ((DefaultData.Value.string != 0) && (StringData != NULL)) {
30403039
DefaultData.Value.string = InternalHiiSetString (HiiHandle, 0, StringData, NULL);

0 commit comments

Comments
 (0)