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.willi...@cavium.com>
> Signed-off-by: Marek Vasut <ma...@denx.de>
> Cc: Tom Rini <tom.r...@gmail.com>
> Cc: Aaron Williams <aaron.willi...@cavium.com>
> Tested-by: Michal Simek <michal.si...@xilinx.com>
> Reviewed-by: Joe Hershberger <joe.hershber...@ni.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to