summaryrefslogtreecommitdiff
path: root/EmulatorPkg/EmuSimpleFileSystemDxe
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2014-04-02 17:32:29 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-04-02 17:32:29 +0000
commitd8dc9f0af56c68492d8a1be52efc1a711d3497f4 (patch)
tree09f1b5e90b21a34c2b16f1721408b3d441c9f15d /EmulatorPkg/EmuSimpleFileSystemDxe
parente3ff137e3652a85944ba1ba91ad61f09ef1ff248 (diff)
downloadedk2-platforms-d8dc9f0af56c68492d8a1be52efc1a711d3497f4.tar.xz
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
Diffstat (limited to 'EmulatorPkg/EmuSimpleFileSystemDxe')
0 files changed, 0 insertions, 0 deletions