[openssl/openssl] f41af7: BN_gcd(): Avoid shifts of negative values

Tomáš Mráz noreply at github.com
Thu Oct 5 10:07:41 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: f41af715c110fd81b8f100ac08a99332595c5a7b
      https://github.com/openssl/openssl/commit/f41af715c110fd81b8f100ac08a99332595c5a7b
  Author: Tomas Mraz <tomas at openssl.org>
  Date:   2023-10-05 (Thu, 05 Oct 2023)

  Changed paths:
    M crypto/bn/bn_gcd.c

  Log Message:
  -----------
  BN_gcd(): Avoid shifts of negative values

Fixes #22216

Thanks to Leland Mills for investigation and testing.

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22272)

(cherry picked from commit 0f7a3b0caa33a87c900536dc1c02fa553d2193cc)




More information about the openssl-commits mailing list