From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: OLPC regression, ofdisk stops working
Date: Fri, 10 Jul 2009 19:41:15 +0200 [thread overview]
Message-ID: <20090710174115.GI17114@thorin> (raw)
In-Reply-To: <ca0f59980907100728y31203d4g262499d99230a138@mail.gmail.com>
On Fri, Jul 10, 2009 at 10:28:03PM +0800, Bean wrote:
> Hi,
>
> There is something wrong with r2132, now childtype is a pointer, so
> sizeof childtype == 4, the name would be truncated to 4 characters.
Bean, you never cease to amaze me. I admit the "interesting, exactly
the word size" idea crossed my head, but I didn't reach any conclussion
out of it :-)
Nice catch. Will you commit this, or want me to?
> diff --git a/kern/ieee1275/openfw.c b/kern/ieee1275/openfw.c
> index e7979f4..42d9278 100644
> --- a/kern/ieee1275/openfw.c
> +++ b/kern/ieee1275/openfw.c
> @@ -78,15 +78,15 @@ grub_children_iterate (char *devpath,
> grub_ssize_t actual;
>
> if (grub_ieee1275_get_property (child, "device_type", childtype,
> - sizeof childtype, &actual))
> + IEEE1275_MAX_PROP_LEN, &actual))
> continue;
>
> - if (grub_ieee1275_package_to_path (child, childpath, sizeof childpath,
> - &actual))
> + if (grub_ieee1275_package_to_path (child, childpath,
> + IEEE1275_MAX_PATH_LEN, &actual))
> continue;
>
> if (grub_ieee1275_get_property (child, "name", childname,
> - sizeof childname, &actual))
> + IEEE1275_MAX_PATH_LEN, &actual))
> continue;
>
> grub_sprintf (fullname, "%s/%s", devpath, childname);
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-07-10 17:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1LwZ2d-0006vu-Be@cvs.savannah.gnu.org>
2009-07-09 16:03 ` OLPC regression, ofdisk stops working Robert Millan
2009-07-10 14:28 ` Bean
2009-07-10 17:41 ` Robert Millan [this message]
2009-07-10 18:18 ` David Miller
2009-07-10 20:20 ` Robert Millan
2009-07-11 3:59 ` Bean
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=20090710174115.GI17114@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/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.