bsaes-x86_64.pl: fix buffer overrun in tail processing [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Wed, 16 Nov 2011 23:36:40 +0000 (23:36 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 16 Nov 2011 23:36:40 +0000 (23:36 +0000)
crypto/aes/asm/bsaes-x86_64.pl

index edc70fa..ff7e3af 100644 (file)
@@ -1894,6 +1894,7 @@ $code.=<<___;
        jmp     .Lctr_enc_done
 .align 16
 .Lctr_enc_loop_done:
+       add     \$8, $len
        movdqu  0x00($inp), @XMM[8]     # load input
        pxor    @XMM[8], @XMM[0]
        movdqu  @XMM[0], 0x00($out)     # write output