diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 23:30:37 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-08-27 23:30:37 +0000 |
commit | cc79cef9628d0fc9d7a05fdc4612a23dde90746c (patch) | |
tree | f79fc6ebe75c927e8d6aa23487c41ee24f06dad5 /MdeModulePkg/Universal/Console | |
parent | e5e12de7d0a67111060c77723df39885c91a8ea5 (diff) | |
download | edk2-cc79cef9628d0fc9d7a05fdc4612a23dde90746c.tar.gz edk2-cc79cef9628d0fc9d7a05fdc4612a23dde90746c.tar.bz2 edk2-cc79cef9628d0fc9d7a05fdc4612a23dde90746c.zip |
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
Diffstat (limited to 'MdeModulePkg/Universal/Console')
-rw-r--r-- | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) {
|