From 53e1513fea1f322e967488039a3d4166b2fa31e4 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 30 Dec 2013 20:43:40 +0100 Subject: [PATCH] Initialize ebx and edx in padlock functions --- library/padlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/padlock.c b/library/padlock.c index a7b4c0c77..6e94532df 100644 --- a/library/padlock.c +++ b/library/padlock.c @@ -43,7 +43,7 @@ int padlock_supports( int feature ) { static int flags = -1; - int ebx, edx; + int ebx = 0, edx = 0; if( flags == -1 ) { @@ -76,7 +76,7 @@ int padlock_xcryptecb( aes_context *ctx, const unsigned char input[16], unsigned char output[16] ) { - int ebx; + int ebx = 0; uint32_t *rk; uint32_t *blk; uint32_t *ctrl; @@ -117,7 +117,7 @@ int padlock_xcryptcbc( aes_context *ctx, const unsigned char *input, unsigned char *output ) { - int ebx; + int ebx = 0; size_t count; uint32_t *rk; uint32_t *iw;