diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-02-12 17:02:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-02-12 17:02:13 +0000 |
commit | 1d8fa09c80232ee924fdf87000e3473b40c37da2 (patch) | |
tree | e8e3ac72b79248b715813bc62089ec6e51eff2a9 /crypto/x86_64cpuid.pl | |
parent | e085e6c84c2827d6bff3cc13bcb8a97db23dd188 (diff) |
Make assembly language versions of OPENSSL_cleanse() accept zero length
parameter. Backport from HEAD, orginal by appro.
Diffstat (limited to 'crypto/x86_64cpuid.pl')
-rw-r--r-- | crypto/x86_64cpuid.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/x86_64cpuid.pl b/crypto/x86_64cpuid.pl index 862118f285..a7f98b3fd3 100644 --- a/crypto/x86_64cpuid.pl +++ b/crypto/x86_64cpuid.pl @@ -145,12 +145,14 @@ OPENSSL_cleanse: xor %rax,%rax cmp \$15,$arg2 jae .Lot + cmp \$0,$arg2 + je .Lret .Little: mov %al,($arg1) sub \$1,$arg2 lea 1($arg1),$arg1 jnz .Little - ret +.Lret: ret .align 16 .Lot: test \$7,$arg1 |