[openssl/openssl] 9aee66: Fix arithmetic expression overflow

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


  Branch: refs/heads/openssl-3.2
  Home:   https://github.com/openssl/openssl
  Commit: 9aee66b2f4ecc721950b647da4ebf773133dd7c9
      https://github.com/openssl/openssl/commit/9aee66b2f4ecc721950b647da4ebf773133dd7c9
  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)

(cherry picked from commit 486ab0fb003d05f89620662260486d31bd3faa8c)




More information about the openssl-commits mailing list