From cc79cef9628d0fc9d7a05fdc4612a23dde90746c Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 27 Aug 2007 23:30:37 +0000 Subject: [PATCH] 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 --- .../Universal/Console/ConSplitterDxe/ConSplitterGraphics.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c index c3e15d4ac9..f70b0765ea 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c @@ -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) {