Re: [U-Boot] [PATCH] vfat: Fix mkcksum argument sizes

2013-01-31 Thread Joe Hershberger
On Fri, Jan 11, 2013 at 7:35 AM, Marek Vasut ma...@denx.de wrote: 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

Re: [U-Boot] [PATCH] vfat: Fix mkcksum argument sizes

2013-01-29 Thread Mats Kärrman
Marek Vasut marex at denx.de wrote: 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

Re: [U-Boot] [PATCH] vfat: Fix mkcksum argument sizes

2013-01-28 Thread Michal Simek
2013/1/11 Marek Vasut ma...@denx.de: 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

[U-Boot] [PATCH] vfat: Fix mkcksum argument sizes

2013-01-11 Thread Marek Vasut
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,