Re: crypto_cbc_encrypt query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pavi1729 <pavitra1729@xxxxxxxxx> wrote:
> Hi,
>  Shouldn't "walk" be memset ?
> 
> FILE:            crypto/cbc.c
> FUNCTION:  crypto_cbc_encrypt
> 
> "walk" is local variable and its uninitialized in
> "crypto_cbc_encrypt". The same is passed to
> "blkcipher_walk_virt" which does below
> 
> walk->flags &= ~BLKCIPHER_WALK_PHYS;
> 
> So neither 'walk' nor 'walk->flags' is memset or init to a proper value.

Other bits are initialised elsewhere as they are used.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux