mirror of https://github.com/acidanthera/audk.git
InOsEmuPkg PosixFileSystem: Fix memory corruption issue
Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11660 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
1c3b10105a
commit
0c493bf4ac
|
@ -1493,7 +1493,7 @@ PosixFileSystmeThunkOpen (
|
|||
Private->FilePath[i] = 0;
|
||||
|
||||
|
||||
Private->VolumeLabel = malloc (StrLen (L"EFI_EMULATED"));
|
||||
Private->VolumeLabel = malloc (StrSize (L"EFI_EMULATED"));
|
||||
if (Private->VolumeLabel == NULL) {
|
||||
free (Private->FilePath);
|
||||
free (Private);
|
||||
|
|
Loading…
Reference in New Issue