Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information