]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix arithmetic expression overflow
authorDrokov Pavel <drokov@rutoken.ru>
Fri, 12 Jan 2024 07:10:17 +0000 (02:10 -0500)
committerTomas Mraz <tomas@openssl.org>
Mon, 15 Jan 2024 09:49:25 +0000 (10:49 +0100)
commit486ab0fb003d05f89620662260486d31bd3faa8c
treee87c6bddf813fec92eacb48f120bd88d67189b6e
parent441b3b7ba15d5dc6e034b030bd8b88ce596f53ba
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@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23274)
crypto/objects/obj_dat.c