audk/CryptoPkg/Library/BaseCryptLib
Laszlo Ersek 8d16ef8269 CryptoPkg/Crt: import "inet_pton.c" (CVE-2019-14553)
For TianoCore BZ#1734, StdLib has been moved from the edk2 project to the
edk2-libc project, in commit 964f432b9b ("edk2: Remove AppPkg, StdLib,
StdLibPrivateInternalFiles", 2019-04-29).

We'd like to use the inet_pton() function in CryptoPkg. Resurrect the
"inet_pton.c" file from just before the StdLib removal, as follows:

  $ git show \
      964f432b9b0a^:StdLib/BsdSocketLib/inet_pton.c \
      > CryptoPkg/Library/BaseCryptLib/SysCall/inet_pton.c

The inet_pton() function is only intended for the DXE phase at this time,
therefore only the "BaseCryptLib" instance INF file receives the new file.

Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Sivaraman Nainar <sivaramann@amiindia.co.in>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=960
CVE: CVE-2019-14553
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
2019-11-02 12:07:59 +01:00
..
Cipher CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
Hash CryptoPkg/BaseCryptLib: Wrap OpenSSL SM3 algorithm 2019-06-08 05:18:41 +08:00
Hmac CryptoPkg/BaseCryptLib: Make HMAC_CTX size backward compatible 2019-06-03 08:28:03 +08:00
Kdf CryptoPkg: Fix coding style 2019-08-19 08:45:29 +08:00
Pem CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
Pk CryptoPkg/BaseCryptLib: Use cmp-operator for non-Boolean comparisons 2019-07-31 09:19:43 +08:00
Rand CryptoPkg/BaseCryptLib: remove unused code for IPF 2019-05-17 13:13:41 +08:00
SysCall CryptoPkg/Crt: import "inet_pton.c" (CVE-2019-14553) 2019-11-02 12:07:59 +01:00
BaseCryptLib.inf CryptoPkg/Crt: import "inet_pton.c" (CVE-2019-14553) 2019-11-02 12:07:59 +01:00
BaseCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
InternalCryptLib.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
PeiCryptLib.inf CryptoPkg: Append options to make CLANG9 tool chain pass build 2019-10-24 09:41:33 +08:00
PeiCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
RuntimeCryptLib.inf CryptoPkg: Append options to make CLANG9 tool chain pass build 2019-10-24 09:41:33 +08:00
RuntimeCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
SmmCryptLib.inf CryptoPkg: Append options to make CLANG9 tool chain pass build 2019-10-24 09:41:33 +08:00
SmmCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00