audk/CryptoPkg/Library/BaseCryptLib
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
..
Cipher CryptoPkg: Fix one wrong parameter for weak key checking 2015-09-02 08:44:46 +00:00
Hash CryptoPkg: remove redundant parentheses 2015-07-14 02:57:38 +00:00
Hmac Fix several issues in BaseCryptLib: 2012-08-02 02:49:24 +00:00
Pem Enhance error handling code after calling BIO_new in BaseCryptLib. 2013-08-07 08:11:14 +00:00
Pk [CryptoPkg] Correct one typo in the API comments. 2015-11-25 08:34:57 +00:00
Rand Fixed one typo in MathRShiftU64.S stub implementation; Add one digest algorithm registration to make sure the underlying algorithm is available for the default OpenSSL software PRNG implementation. 2013-11-19 02:57:19 +00:00
SysCall CryptoPkg: RuntimeCryptLib: support realloc(NULL, size) 2016-02-25 11:04:31 +01:00
BaseCryptLib.inf CryptoPkg: fix build support under RVCT 2015-12-17 17:02:06 +00:00
BaseCryptLib.uni CryptoPkg: Convert all .uni files to utf-8 2015-12-15 04:51:26 +00:00
InternalCryptLib.h CryptoPkg: Fix OpenSSL BN wordsize and OPENSSL_SYS_UEFI handling 2015-10-29 14:17:15 +00:00
PeiCryptLib.inf CryptoPkg: fix build support under RVCT 2015-12-17 17:02:06 +00:00
PeiCryptLib.uni CryptoPkg: Convert all .uni files to utf-8 2015-12-15 04:51:26 +00:00
RuntimeCryptLib.inf CryptoPkg: fix build support under RVCT 2015-12-17 17:02:06 +00:00
RuntimeCryptLib.uni CryptoPkg: Convert all .uni files to utf-8 2015-12-15 04:51:26 +00:00
SmmCryptLib.inf CryptoPkg Updates to support RFC3161 timestamp signature verification. 2014-11-12 08:51:45 +00:00
SmmCryptLib.uni CryptoPkg: Convert all .uni files to utf-8 2015-12-15 04:51:26 +00:00