mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
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
This commit is contained in:
parent
37e0f9ac51
commit
9c0ce9f398
@ -1665,7 +1665,7 @@ EfiSetCwd (
|
|||||||
|
|
||||||
// Use the info returned from EfiOpen as it can add in CWD if needed. So Cwd could be
|
// 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.
|
// 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) {
|
if (gCwd == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user