From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 31 Jan 2013 21:53:42 +0100 Subject: [U-Boot] vfat: Fix mkcksum argument sizes In-Reply-To: <20130131194407.GJ30932@bill-the-cat> References: <1357911348-28403-1-git-send-email-marex@denx.de> <20130131194407.GJ30932@bill-the-cat> Message-ID: <201301312153.43118.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Tom Rini, > On Fri, Jan 11, 2013 at 03:35:48AM -0000, Marek Vasut 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 array. > > > > The VFAT code contains such a bug, this patch fixes it. > > > > Reported-by: Aaron Williams > > Signed-off-by: Marek Vasut > > Cc: Tom Rini > > Cc: Aaron Williams > > Tested-by: Michal Simek > > Reviewed-by: Joe Hershberger > > Applied to u-boot/master, thanks! Can we have a bugfix release 2013.02 or something ? This is a grave bug. Best regards, Marek Vasut