[U-Boot] vfat: Fix mkcksum argument sizes
Marek Vasut
marex at denx.de
Thu Jan 31 21:53:42 CET 2013
Dear Tom Rini,
> On Fri, Jan 11, 2013 at 03:35:48AM -0000, Marek Vasut wrote:
> > In case a function argument is known/fixed size array in C, the argument
> > is still decoyed as pointer instead ( T f(U n[k]) ~= T fn(U *n) ) and
> > therefore calling sizeof on the function argument will result in the
> > size of the pointer, not the size of the array.
> >
> > The VFAT code contains such a bug, this patch fixes it.
> >
> > Reported-by: Aaron Williams <Aaron.Williams at cavium.com>
> > Signed-off-by: Marek Vasut <marex at denx.de>
> > Cc: Tom Rini <tom.rini at gmail.com>
> > Cc: Aaron Williams <Aaron.Williams at cavium.com>
> > Tested-by: Michal Simek <michal.simek at xilinx.com>
> > Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>
>
> Applied to u-boot/master, thanks!
Can we have a bugfix release 2013.02 or something ? This is a grave bug.
Best regards,
Marek Vasut
More information about the U-Boot
mailing list