pariscid.pl: fix nasty typo in CRYPTO_memcmp.
authorAndy Polyakov <appro@openssl.org>
Wed, 21 Mar 2018 22:48:10 +0000 (23:48 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 27 Mar 2018 09:22:49 +0000 (10:22 +0100)
Comparison was effectively reduced to least significant bits.

CVE-2018-0733

Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/pariscid.pl

index f82e27ac4c34e8bebd75245f9f097382aecb6aa8..3e26f8eccfdc1806c59bc80eb774acbc0fb9d37b 100644 (file)
@@ -160,7 +160,7 @@ L\$oop_cmp
        or              %r29,$rv,$rv
 
        sub             %r0,$rv,%r29
-       extru           %r29,31,1,$rv
+       extru           %r29,0,1,$rv
 L\$no_data
        bv              ($rp)
        .EXIT