From: Andy Polyakov Date: Sun, 31 Jul 2016 19:19:57 +0000 (+0200) Subject: sha/asm/sha1-x86_64.pl: fix crash in SHAEXT code on Windows. X-Git-Tag: OpenSSL_1_0_2i~87 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=657566ead90132f68aa2c9a407c9d3920476446c;p=oweals%2Fopenssl.git sha/asm/sha1-x86_64.pl: fix crash in SHAEXT code on Windows. RT#4530 Reviewed-by: Tim Hudson (cherry picked from commit 7123aa81e9fb19afb11fdf3850662c5f7ff1f19c) --- diff --git a/crypto/sha/asm/sha1-x86_64.pl b/crypto/sha/asm/sha1-x86_64.pl index 5f375fc688..752138b0ea 100755 --- a/crypto/sha/asm/sha1-x86_64.pl +++ b/crypto/sha/asm/sha1-x86_64.pl @@ -372,9 +372,9 @@ $code.=<<___; .align 16 .Loop_shaext: dec $num - lea 0x40($inp),%rax # next input block + lea 0x40($inp),%r8 # next input block paddd @MSG[0],$E - cmovne %rax,$inp + cmovne %r8,$inp movdqa $ABCD,$ABCD_SAVE # offload $ABCD ___ for($i=0;$i<20-4;$i+=2) {