mirror of
https://github.com/acidanthera/audk.git
synced 2025-05-22 07:20:11 +02:00
Add check of buffer value returned from AllocateZeroPool()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3718 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e5e12de7d0
commit
cc79cef962
@ -1130,6 +1130,9 @@ DevNullSyncGopStdOut (
|
||||
MaxColumn = Private->DevNullColumns;
|
||||
|
||||
Buffer = AllocateZeroPool ((MaxColumn + 1) * sizeof (CHAR16));
|
||||
if (Buffer == NULL) {
|
||||
return ReturnStatus;
|
||||
}
|
||||
|
||||
for (Row = 0; Row < Private->DevNullRows; Row++, Screen += (MaxColumn + 1), Attributes += MaxColumn) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user