[openssl/openssl] a6cadc: Coverity 1508534 & 1508540: misuses of time_t

Pauli noreply at github.com
Thu Aug 18 22:42:00 UTC 2022


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: a6cadcbdc3b4f3fbd0fd228e41177f0661b68264
      https://github.com/openssl/openssl/commit/a6cadcbdc3b4f3fbd0fd228e41177f0661b68264
  Author: Pauli <pauli at openssl.org>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M ssl/statem/extensions_clnt.c
    M ssl/statem/extensions_srvr.c

  Log Message:
  -----------
  Coverity 1508534 & 1508540:  misuses of time_t

    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 at mit.edu>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19004)

(cherry picked from commit e8a557dc3c1ed16faff4aeb39268f8f5a3f8b81d)




More information about the openssl-commits mailing list