diff options
author | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-06 17:55:47 +0000 |
---|---|---|
committer | bbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-01-06 17:55:47 +0000 |
commit | a53078b6346ebecf6fa39aa93e6500c5be500a2a (patch) | |
tree | 12516d816bb9072f915cf9885b1029f94a893768 | |
parent | b51468d107d9fb68062e28e08c14475605934822 (diff) | |
download | edk2-platforms-a53078b6346ebecf6fa39aa93e6500c5be500a2a.tar.xz |
Fix an unititialized memory read.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2184 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | EdkUnixPkg/Sec/UgaX11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkUnixPkg/Sec/UgaX11.c b/EdkUnixPkg/Sec/UgaX11.c index 565689a727..5fbdeae1e2 100644 --- a/EdkUnixPkg/Sec/UgaX11.c +++ b/EdkUnixPkg/Sec/UgaX11.c @@ -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; |