From: Andy Polyakov Date: Sun, 17 Jan 2010 19:43:49 +0000 (+0000) Subject: Valgrind fix to aes-x86_64.pl in 0.9.8. For reference, newer aes-x86_64.pl X-Git-Tag: OpenSSL_0_9_8m-beta1~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2557c6a812bf7781c5a3d297f8da2642010955eb;p=oweals%2Fopenssl.git Valgrind fix to aes-x86_64.pl in 0.9.8. For reference, newer aes-x86_64.pl don't suffer from the problem after Win64 SEH support was added. PR: 2075 Submitted by: Peter Klotz --- diff --git a/crypto/aes/asm/aes-x86_64.pl b/crypto/aes/asm/aes-x86_64.pl index f616f1751f..b008ab527d 100755 --- a/crypto/aes/asm/aes-x86_64.pl +++ b/crypto/aes/asm/aes-x86_64.pl @@ -1181,12 +1181,12 @@ AES_cbc_encrypt: .Lcbc_cleanup: cmpl \$0,$mark # was the key schedule copied? lea $aes_key,%rdi - mov $_rsp,%rsp je .Lcbc_exit mov \$240/8,%ecx xor %rax,%rax .long 0x90AB48F3 # rep stosq .Lcbc_exit: + mov $_rsp,%rsp popfq pop %r15 pop %r14