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

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


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 0f7a3b0caa33a87c900536dc1c02fa553d2193cc
      https://github.com/openssl/openssl/commit/0f7a3b0caa33a87c900536dc1c02fa553d2193cc
  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)




More information about the openssl-commits mailing list