Home
last modified time | relevance | path

Searched hist:"6 ad77d88e57f6ab815ec7e85c5ac329054318c73" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/fs/fat/
H A Dfat.cdiff 6ad77d88e57f6ab815ec7e85c5ac329054318c73 Thu Jan 10 21:35:48 CST 2013 Marek Vasut <marex@denx.de> vfat: Fix mkcksum argument sizes

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@cavium.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Aaron Williams <Aaron.Williams@cavium.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>