K8:
Add in "check-for-null" to catch the de-reference of NULL pointer. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7309 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -703,7 +703,7 @@ IfrCatenate (
|
||||
}
|
||||
|
||||
String[Index] = GetToken (Value.Value.string, FormSet->HiiHandle);
|
||||
if (String== NULL) {
|
||||
if (String[Index] == NULL) {
|
||||
Status = EFI_NOT_FOUND;
|
||||
goto Done;
|
||||
}
|
||||
@@ -850,7 +850,7 @@ IfrFind (
|
||||
}
|
||||
|
||||
String[Index] = GetToken (Value.Value.string, FormSet->HiiHandle);
|
||||
if (String== NULL) {
|
||||
if (String[Index] == NULL) {
|
||||
Status = EFI_NOT_FOUND;
|
||||
goto Done;
|
||||
}
|
||||
@@ -1006,7 +1006,7 @@ IfrToken (
|
||||
}
|
||||
|
||||
String[Index] = GetToken (Value.Value.string, FormSet->HiiHandle);
|
||||
if (String== NULL) {
|
||||
if (String[Index] == NULL) {
|
||||
Status = EFI_NOT_FOUND;
|
||||
goto Done;
|
||||
}
|
||||
|
Reference in New Issue
Block a user