diff options
author | Marek Vasut <marex@denx.de> | 2013-01-11 03:35:48 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-01-31 19:43:01 (GMT) |
commit | 6ad77d88e57f6ab815ec7e85c5ac329054318c73 (patch) | |
tree | 8d6c6feef7e235ee587e78352fd36188794f4767 /doc/kwboot.1 | |
parent | 4e5eb45898b6f05fef3a4690399726c03bc1f398 (diff) | |
download | u-boot-fsl-qoriq-6ad77d88e57f6ab815ec7e85c5ac329054318c73.tar.xz |
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>
Diffstat (limited to 'doc/kwboot.1')
0 files changed, 0 insertions, 0 deletions