Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 7de1c71dd2f4e04bd832fc7b92c8255161705393 https://github.com/tianocore/edk2/commit/7de1c71dd2f4e04bd832fc7b92c8255161705393 Author: Zihong Yi <yizih...@huawei.com> Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths: M CryptoPkg/Library/BaseCryptLib/SysCall/TimerWrapper.c M CryptoPkg/Library/Include/CrtLibSupport.h Log Message: ----------- 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....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Xiaoyu Lu <xiaoyu1...@intel.com> Cc: Guomin Jiang <guomin.ji...@intel.com> Signed-off-by: Zihong Yi <yizih...@huawei.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits