From 0c493bf4ac14dd03cb57a7645ffbb0b9557df22c Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 16 May 2011 04:47:00 +0000 Subject: 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 --- InOsEmuPkg/Unix/Sec/PosixFileSystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c index d2d3e6da0e..855825627f 100644 --- a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c +++ b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c @@ -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); -- cgit v1.2.3