summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2013-01-11 03:35:48 +0000
committerTom Rini <[email protected]>2013-01-31 14:43:01 -0500
commit6ad77d88e57f6ab815ec7e85c5ac329054318c73 (patch)
tree8d6c6feef7e235ee587e78352fd36188794f4767 /tools
parent4e5eb45898b6f05fef3a4690399726c03bc1f398 (diff)
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 <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: Tom Rini <[email protected]> Cc: Aaron Williams <[email protected]> Tested-by: Michal Simek <[email protected]> Reviewed-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions