From d127ef78adeeaef30e77cfa0cfc302e8441104c0 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Wed, 16 Nov 2011 23:34:01 +0000 Subject: [PATCH] bsaes-x86_64.pl: fix buffer overrun in tail processing. --- crypto/aes/asm/bsaes-x86_64.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/aes/asm/bsaes-x86_64.pl b/crypto/aes/asm/bsaes-x86_64.pl index edc70fa1be..ff7e3afe82 100644 --- a/crypto/aes/asm/bsaes-x86_64.pl +++ b/crypto/aes/asm/bsaes-x86_64.pl @@ -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 -- 2.25.1