summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Common/PyUtility.pyd
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-02-24 21:00:04 +0100
committerLaszlo Ersek <lersek@redhat.com>2016-02-25 11:04:02 +0100
commit211372d63a82861e52250c0f7a5ee78d9dc417ae (patch)
treef0862933e5a01f7760174f434ea54190b2168429 /BaseTools/Source/Python/Common/PyUtility.pyd
parent5d2e8ef0d3b13d5f73c9b4dc0bbbf59f758d5c06 (diff)
downloadedk2-platforms-211372d63a82861e52250c0f7a5ee78d9dc417ae.tar.xz
CryptoPkg: BaseCryptLib: support free(NULL)
The ISO C standard says about free(), If ptr is a null pointer, no action occurs. This is not true of the FreePool() interface of the MemoryAllocationLib class: Buffer must have been allocated on a previous call to the pool allocation services of the Memory Allocation Library. [...] If Buffer was not allocated with a pool allocation function in the Memory Allocation Library, then ASSERT(). Therefore we must not forward the argument of free() to FreePool() without checking. This bug can be triggered by upstream OpenSSL commit 8e704858f219 ("RT3955: Reduce some stack usage"), for example. Cc: David Woodhouse <dwmw2@infradead.org> Cc: Qin Long <qin.long@intel.com> Cc: Ting Ye <ting.ye@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Qin Long <qin.long@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Common/PyUtility.pyd')
0 files changed, 0 insertions, 0 deletions