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:
@ -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);
|
||||
|
Reference in New Issue
Block a user