From 3f2a98acbfe17f5e1d347725e7d14a8081b2365b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sun, 24 Jan 2010 17:08:52 +0000 Subject: ia64cpuid.S: OPENSSL_cleanse to accept zero length parameter. --- crypto/ia64cpuid.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/ia64cpuid.S b/crypto/ia64cpuid.S index 1a03b028fc..d705fff7ee 100644 --- a/crypto/ia64cpuid.S +++ b/crypto/ia64cpuid.S @@ -130,9 +130,11 @@ OPENSSL_wipe_cpu: .global OPENSSL_cleanse# .proc OPENSSL_cleanse# OPENSSL_cleanse: +{ .mib; cmp.eq p6,p0=0,r33 // len==0 #if defined(_HPUX_SOURCE) && !defined(_LP64) -{ .mmi; addp4 r32=0,r32 };; + addp4 r32=0,r32 #endif +(p6) br.ret.spnt b0 };; { .mib; and r2=7,r32 cmp.leu p6,p0=15,r33 // len>=15 (p6) br.cond.dptk .Lot };; -- cgit v1.2.3