mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
Source level security checked
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7297 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
67252d9f04
commit
e6c4ef1336
@ -141,6 +141,7 @@ UpdateVariableInfo (
|
|||||||
|
|
||||||
CopyGuid (&gVariableInfo->VendorGuid, VendorGuid);
|
CopyGuid (&gVariableInfo->VendorGuid, VendorGuid);
|
||||||
gVariableInfo->Name = AllocatePool (StrLen (VariableName));
|
gVariableInfo->Name = AllocatePool (StrLen (VariableName));
|
||||||
|
ASSERT (gVariableInfo->Name != NULL);
|
||||||
StrCpy (gVariableInfo->Name, VariableName);
|
StrCpy (gVariableInfo->Name, VariableName);
|
||||||
gVariableInfo->Volatile = Volatile;
|
gVariableInfo->Volatile = Volatile;
|
||||||
|
|
||||||
@ -178,6 +179,7 @@ UpdateVariableInfo (
|
|||||||
|
|
||||||
CopyGuid (&Entry->Next->VendorGuid, VendorGuid);
|
CopyGuid (&Entry->Next->VendorGuid, VendorGuid);
|
||||||
Entry->Next->Name = AllocatePool (StrLen (VariableName));
|
Entry->Next->Name = AllocatePool (StrLen (VariableName));
|
||||||
|
ASSERT (Entry->Next->Name != NULL);
|
||||||
StrCpy (Entry->Next->Name, VariableName);
|
StrCpy (Entry->Next->Name, VariableName);
|
||||||
Entry->Next->Volatile = Volatile;
|
Entry->Next->Volatile = Volatile;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user