Re: [patch] crypto: caam - ARRAY_SIZE() vs sizeof()

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

 



On Tue, Mar 15, 2011 at 05:20:37PM -0500, Kim Phillips wrote:
> On Tue, 15 Mar 2011 09:59:55 +0300
> Dan Carpenter <error27@xxxxxxxxx> wrote:
> 
> > ARRAY_SIZE() was intended here instead of sizeof().  sizeof() is four
> > times larger than ARRAY_SIZE().  outstr is normally 256 chars so 
> > printing garbage to it could overfill the buffer and corrupt memory.
> > 
> > Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
> 
> Acked-by: Kim Phillips <kim.phillips@xxxxxxxxxxxxx>

Also applied.  Thanks!
-- 
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