Thread (2 messages) flat view 2 messages, 2 authors, 2011-02-25
STALE5639d

[PATCH 2.6.37.2 1/1] crypto: Uninitialized variable fix.

From: Atul Sowani <hidden>
Date: 2011-02-25 18:00:59

Array inter[4] was uninitialized in anubis_crypt() and was causing
compiler warning. Added the array initialization.

Signed-off-by: Atul Sowani <redacted>
---

diff a/crypto/anubis.c b/crypto/anubis.c
--- a/crypto/anubis.c   2011-02-25 04:39:00.000000000 +0530
+++ b/crypto/anubis.c   2011-02-25 23:07:12.000000000 +0530
@@ -578,7 +578,7 @@ static void anubis_crypt(u32 roundKey[AN
         __be32 *dst = (__be32 *)ciphertext;
         int i, r;
         u32 state[4];
-       u32 inter[4];
+       u32 inter[4] = { 0, 0, 0, 0 };

         /*
          * map plaintext block to cipher state (mu)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help