[openssl/openssl] 486ab0: Fix arithmetic expression overflow

JohnnySavages noreply at github.com
Mon Jan 15 09:51:57 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 486ab0fb003d05f89620662260486d31bd3faa8c
      https://github.com/openssl/openssl/commit/486ab0fb003d05f89620662260486d31bd3faa8c
  Author: Drokov Pavel <drokov at rutoken.ru>
  Date:   2024-01-15 (Mon, 15 Jan 2024)

  Changed paths:
    M crypto/objects/obj_dat.c

  Log Message:
  -----------
  Fix arithmetic expression overflow

If the value of a->length is large (>= 2^12), then an integer overflow will
occur for the signed type, which according to the C standard is UB.

CLA: trivial

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23274)




More information about the openssl-commits mailing list