audk/ArmPkg
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
..
Application/LinuxLoader ArmPkg: Fixed unsigned type to be architecture independent 2013-03-12 00:50:46 +00:00
Drivers ArmPkg/ArmCpuLib: Added A57 Errata 806969 2014-03-26 19:35:17 +00:00
Filesystem/SemihostFs ArmPkg/SemihostFs: Various fixes for the file system 2014-03-25 11:04:41 +00:00
Include ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist 2014-04-02 17:32:29 +00:00
Library ArmPkg: Fixed GetEnvironmentVariable() when the UEFI Variable did not exist 2014-04-02 17:32:29 +00:00
ArmPkg.dec ArmPkg: Fix typo in comment and trailing spaces 2014-03-24 15:24:23 +00:00
ArmPkg.dsc ARM Packages: Renamed PL390Gic driver into ArmGic driver 2013-10-29 06:36:34 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
License.txt EDK II Packages: Added License.txt files 2012-04-12 16:40:32 +00:00