[ipxe-devel] [PATCH 1/2] [crypto] Fix wrong setup in function aes_wrap

Michael Brown mbrown at fensystems.co.uk
Tue Apr 10 12:17:40 UTC 2012


On Wednesday 04 Apr 2012 17:16:00 Stefan Weil wrote:
> sizeof(A) is 8 on 64 bit hosts, but only 4 on 32 bit hosts.
> 
> Use explicit size in memset because 8 bytes must be set always.
> 
> This problem was reported by cppcheck.
> 
> Signed-off-by: Stefan Weil <sw at weilnetz.de>

Both patches applied, thanks!

  http://git.ipxe.org/ipxe.git/commitdiff/ede37e4
  http://git.ipxe.org/ipxe.git/commitdiff/dcccb1f

I'd be interested to know how you got cppcheck to report these problems - 
could you give some details of the commands you used?

Thanks,

Michael



More information about the ipxe-devel mailing list