diff options
author | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-16 04:47:00 +0000 |
---|---|---|
committer | jljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-05-16 04:47:00 +0000 |
commit | 0c493bf4ac14dd03cb57a7645ffbb0b9557df22c (patch) | |
tree | d90270502dd52464bd82f7f1d7e3bf372f03a635 /InOsEmuPkg/Unix/Sec/PosixFileSystem.c | |
parent | 1c3b10105aeb1240486b9fe4e49ec55c03d51519 (diff) | |
download | edk2-platforms-0c493bf4ac14dd03cb57a7645ffbb0b9557df22c.tar.xz |
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
Diffstat (limited to 'InOsEmuPkg/Unix/Sec/PosixFileSystem.c')
-rw-r--r-- | InOsEmuPkg/Unix/Sec/PosixFileSystem.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |