public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] memset bug in ext2fs_read_file()
@ 2007-12-20  6:34 Mike Montour
  2008-01-09  9:15 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Montour @ 2007-12-20  6:34 UTC (permalink / raw)
  To: u-boot

Hello,

The ext2fs_read_file() function in fs/ext2/ext2fs.c contains the 
following line:

  439                         memset (buf, blocksize - skipfirst, 0);

This is incorrect as the prototype of the function has the fill value as 
the 2nd parameter and the number of bytes as the 3rd:

void *memset(void *b, int c, size_t n);

I don't have any test code that is affected by this bug. I noticed it 
when I was investigating a different problem (with OpenMoko).

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-10 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-20  6:34 [U-Boot-Users] memset bug in ext2fs_read_file() Mike Montour
2008-01-09  9:15 ` Wolfgang Denk
2008-01-10 21:27   ` Reinhard Arlt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox