]> git.ipfire.org Git - thirdparty/openssl.git/commit
Coverity: misuses of time_t
authorPauli <pauli@openssl.org>
Tue, 16 Aug 2022 01:05:02 +0000 (11:05 +1000)
committerPauli <pauli@openssl.org>
Thu, 18 Aug 2022 22:25:26 +0000 (08:25 +1000)
commite8a557dc3c1ed16faff4aeb39268f8f5a3f8b81d
tree1b798876a61d0f5637b0a091090d70dd9a58e61c
parentb85ebc4b279ff0abe81c3a64eafc4f3c6c00605e
Coverity: misuses of time_t

Coverity 1508506:

    Fixes a bug in the cookie code which would have caused problems for
    ten minutes before and after the lower 32 bits of time_t rolled over.

Coverity 1508534 & 1508540:

    Avoid problems when the lower 32 bits of time_t roll over by delaying
    the cast to integer until after the time delta has been computed.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19004)
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c