audk/CryptoPkg/Library
Yi Li 0e7aa6bf9e CryptoPkg: Fix pem heap-buffer-overflow due to BIO_snprintf()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4075

Fake BIO_snprintf() does not actually print anything to buf,
it should return -1 as error.
0 will be considered a correct return value, the consumer may think that
the buf is valid and parse the buffer.
please refer to bugzilla link for details.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>

Signed-off-by: Yi Li <yi1.li@intel.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
2022-09-26 01:39:52 +00:00
..
BaseCryptLib CryptoPkg: Fix pem heap-buffer-overflow due to BIO_snprintf() 2022-09-26 01:39:52 +00:00
BaseCryptLibNull CryptoPkg: Add BigNum support 2022-09-23 10:08:24 +00:00
BaseCryptLibOnProtocolPpi CryptoPkg: Add BigNum API to DXE and protocol 2022-09-23 10:08:24 +00:00
BaseHashApiLib CryptoPkg/BaseHashApiLib: Rename BaseHashApiLib by HashApiLib 2020-04-08 01:12:36 +00:00
Include CryptoPkg/openssl: update generated files 2022-05-11 00:04:39 +00:00
IntrinsicLib CryptoPkg: Add instrinsics to support building ECC on IA32 windows 2022-04-14 03:16:59 +00:00
OpensslLib CryptoPkg/OpensslLib: Update generated files for native X64 2022-09-23 11:07:54 +00:00
TlsLib CryptoPkg: Rename PCD about openssl EC configuration 2022-05-11 00:04:39 +00:00
TlsLibNull CryptoPkg/TlsLibNull: Remove MU_CHANGE comment markers 2022-04-14 14:50:20 +00:00