audk/CryptoPkg/Library/Include
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
..
arpa CryptoPkg/Crt: satisfy "inet_pton.c" dependencies (CVE-2019-14553) 2019-11-02 12:07:52 +01:00
crypto CryptoPkg/openssl: update generated files 2022-05-11 00:04:39 +00:00
netinet CryptoPkg/Crt: satisfy "inet_pton.c" dependencies (CVE-2019-14553) 2019-11-02 12:07:52 +01:00
openssl CryptoPkg/Library/OpensslLib: update auto-generated files 2022-10-24 07:49:43 +00:00
sys CryptoPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CrtLibSupport.h CryptoPkg/BaseCryptLib:time overflow 2022-12-03 09:01:38 +00:00
assert.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
ctype.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
errno.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
fcntl.h CryptoPkg/CrtLibSupport: add fcntl.h 2022-04-12 14:39:01 +00:00
limits.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
memory.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
stdarg.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
stddef.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
stdio.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
stdlib.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
string.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
strings.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
syslog.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
time.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
unistd.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00