From: Reinhard Arlt <reinhard.arlt@t-online.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] memset bug in ext2fs_read_file()
Date: Thu, 10 Jan 2008 22:27:21 +0100 [thread overview]
Message-ID: <47868DB9.5080800@t-online.de> (raw)
In-Reply-To: <20080109091521.98FC06F0010@nyx.denx.de>
Hello,
this was bug!
You will run into this situation, when you use a file with "holes" in
it. (Not so likely with a systen image).
Best regards
Reinhard Arlt
Wolfgang Denk wrote:
> Dear Mike,
>
> in message <fkd2di$pdl$1@ger.gmane.org> you wrote:
>> 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).
>
> Thanks, applied.
>
> Best regards,
>
> Wolfgang Denk
>
prev parent reply other threads:[~2008-01-10 21:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47868DB9.5080800@t-online.de \
--to=reinhard.arlt@t-online.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.