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 Fix SmmCryptLib issue when calling time() in RealTimeClock.c 2012-06-01 02:37:24 +00:00
CrtWrapper.c CryptoPkg: Fix function qsort for non 32-bit machines 2016-01-26 08:51:13 +00:00
HelperWrapper.c Add CryptoPkg (from UDK2010.UP3) 2010-11-01 06:30:58 +00:00
RuntimeMemAllocation.c CryptoPkg: RuntimeCryptLib: support realloc(NULL, size) 2016-02-25 11:04:31 +01:00
TimerWrapper.c Per gmtime manpage, tm_mon is the number of months since January 2013-07-17 07:53:04 +00:00