Re: [PATCH] crypto: algif_hash - correctly handle algos without state
From: Herbert Xu
Date: Sat Feb 27 2016 - 12:10:54 EST
On Tue, Feb 23, 2016 at 12:01:56PM -0500, Sasha Levin wrote:
> Algorithms without state will cause the creation of a 0 sized array, which
> is undefined outside of structs.
>
> Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx>
Actually the state size should never be zero and we check it upon
algorithm registration, so how can this possibly happen?
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt