mirror of https://github.com/acidanthera/audk.git
add check for NULL pointer reference.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
eec6d259fc
commit
c33add6776
|
@ -4495,6 +4495,8 @@ ConSplitterTextOutOutputString (
|
|||
TargetString = WString;
|
||||
} else {
|
||||
TargetString = AllocatePool (sizeof (CHAR16) * (StrLen (WString) + BackSpaceCount + 1));
|
||||
ASSERT (TargetString != NULL);
|
||||
|
||||
StrCpy (TargetString, WString);
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue