audk/CryptoPkg/Library/BaseCryptLib/SysCall
Laszlo Ersek e89d672110 CryptoPkg: RuntimeCryptLib: support realloc(NULL, size)
The ISO C standard says about realloc(),

  If ptr is a null pointer, the realloc function behaves like the malloc
  function for the specified size.

The realloc() implementation doesn't conform to this currently, so add a
check and call malloc() if appropriate.

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>
2016-02-25 11:04:31 +01:00
..
BaseMemAllocation.c CryptoPkg: BaseCryptLib: support free(NULL) 2016-02-25 11:04:02 +01:00
ConstantTimeClock.c
CrtWrapper.c CryptoPkg: Fix function qsort for non 32-bit machines 2016-01-26 08:51:13 +00:00
HelperWrapper.c
RuntimeMemAllocation.c CryptoPkg: RuntimeCryptLib: support realloc(NULL, size) 2016-02-25 11:04:31 +01:00
TimerWrapper.c