audk/ArmPkg/Library/BdsLib
Olivier Martin d8dc9f0af5 ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist
The function was allocating a buffer for the read value from the UEFI Variable.
But it was returning the pointer of the default value when the variable was
not present.
It could cause error when the default value and the returned value were free
when these addresses were the same (double FreePool on the same address).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15427 6f19259b-4bc3-4df7-8a09-765794883524
2014-04-02 17:32:29 +00:00
..
AArch64 ArmPkg/BdsLib: Removed unused MachineType argument (AArch64) 2014-02-12 15:13:44 +00:00
Arm ArmPkg/BdsLib: Fix uInitrd detection 2013-04-14 09:34:48 +00:00
BdsAppLoader.c ARM Packages: Fixed line endings 2013-01-25 11:28:06 +00:00
BdsFilePath.c ArmPkg/BdsLib: Fixed TFTP and PXE Boot 2013-03-12 01:04:10 +00:00
BdsHelper.c ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist 2014-04-02 17:32:29 +00:00
BdsInternal.h ARM Packages: Fixed line endings 2013-01-25 11:28:06 +00:00
BdsLib.inf ArmPkg/BdsLib: Added Aarch64 support for booting Linux 2013-07-18 18:13:02 +00:00
BdsLinuxFdt.c ArmPkg/BdsLib: Support ignoring EfiReservedMemoryType when updating the FDT. 2014-02-24 16:27:48 +00:00
BdsLinuxLoader.h ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
BdsLoadOption.c ArmPkg: Introduce GetGlobalEnvironmentVariable() function. 2013-03-12 00:42:59 +00:00