diff options
Diffstat (limited to 'SecurityPkg/Application')
-rw-r--r-- | SecurityPkg/Application/RngTest/RngTest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SecurityPkg/Application/RngTest/RngTest.c b/SecurityPkg/Application/RngTest/RngTest.c index 25edecefe3..f501f806e9 100644 --- a/SecurityPkg/Application/RngTest/RngTest.c +++ b/SecurityPkg/Application/RngTest/RngTest.c @@ -103,6 +103,9 @@ UefiMain ( //
RandSize = 32;
Rand = AllocatePool (RandSize);
+ if (Rand == NULL) {
+ goto Exit;
+ }
//
// RNG with default algorithm
|