Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
user avatar
Marek Vasut authored
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: default avatarAaron Williams <Aaron.Williams@cavium.com>
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Tom Rini <tom.rini@gmail.com>
Cc: Aaron Williams <Aaron.Williams@cavium.com>
Tested-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
6ad77d88
History
Name Last commit Last update