audk/CryptoPkg/Library/BaseCryptLib/SysCall
Zihong Yi 7de1c71dd2 CryptoPkg/BaseCryptLib:time overflow
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4167

In CrtLibSupport.h, time_t is defined as INT32, and its maximum value
is 2147483647. That is, the corresponding maximum timestamp is
2038-01-19 11:14:07. Therefore, overflow occurs when the test time
exceeds 2038-01-19 11:14:07. So change the type of time_t to INT64 and
also change the type of variables in function gmtime which calculated
with time_t.

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: Zihong Yi <yizihong@huawei.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2022-12-03 09:01:38 +00:00
..
BaseMemAllocation.c CryptoPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ConstantTimeClock.c CryptoPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CrtWrapper.c CryptoPkg: Fix pem heap-buffer-overflow due to BIO_snprintf() 2022-09-26 01:39:52 +00:00
RuntimeMemAllocation.c CryptoPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TimerWrapper.c CryptoPkg/BaseCryptLib:time overflow 2022-12-03 09:01:38 +00:00
UnitTestHostCrtWrapper.c CryptoPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00