diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-10 19:27:14 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-10 19:27:14 +0000 |
commit | 9c0ce9f398ac1c4f42bad6cc4e155439038051e6 (patch) | |
tree | dc067df3d206fd9bfd465e53420b13068100f5b0 /EmbeddedPkg | |
parent | 37e0f9ac5128f03ee1631b3f68c92a9bacb4a1c6 (diff) | |
download | edk2-9c0ce9f398ac1c4f42bad6cc4e155439038051e6.tar.gz edk2-9c0ce9f398ac1c4f42bad6cc4e155439038051e6.tar.bz2 edk2-9c0ce9f398ac1c4f42bad6cc4e155439038051e6.zip |
The VOLUME name case did not reserve enough storage in the CWD function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9971 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c index d6259c096b..861ca15165 100644 --- a/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c +++ b/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c @@ -1665,7 +1665,7 @@ EfiSetCwd ( // Use the info returned from EfiOpen as it can add in CWD if needed. So Cwd could be // relative to the current gCwd or not. - gCwd = AllocatePool (AsciiStrSize (File->DeviceName) + AsciiStrSize (File->FileName) + 1); + gCwd = AllocatePool (AsciiStrSize (File->DeviceName) + AsciiStrSize (File->FileName) + 10); if (gCwd == NULL) { return EFI_INVALID_PARAMETER; } |