mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
Fix an unititialized memory read.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2184 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b51468d107
commit
a53078b634
@ -527,7 +527,7 @@ UgaCreate (EFI_UNIX_UGA_IO_PROTOCOL **Uga, CONST CHAR16 *Title)
|
||||
int title_len;
|
||||
|
||||
drv = (UGA_IO_PRIVATE *)
|
||||
malloc (sizeof (UGA_IO_PRIVATE));
|
||||
calloc (1, sizeof (UGA_IO_PRIVATE));
|
||||
if (drv == NULL)
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user