All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Zielcke <fzielcke@z-51.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [Fwd: Re: Bug#495949: grub-common: grub-probe segfaults]
Date: Sat, 25 Jul 2009 08:51:32 +0200	[thread overview]
Message-ID: <1248504692.3665.3.camel@fz.local> (raw)
In-Reply-To: <d7ead6de0907241337v2f4e44bfl5c86dff44f98d15d@mail.gmail.com>

Am Freitag, den 24.07.2009, 22:37 +0200 schrieb Vladimir 'phcoder'
Serbinenko:
> On Fri, Jul 24, 2009 at 10:09 PM, Pavel Roskin<proski@gnu.org> wrote:
> > On Fri, 2009-07-24 at 20:46 +0200, Felix Zielcke wrote:
> >> And another bug forward
> >> Anyone has an idea why a dm-crypt/lvm leads to a segfault in the strcmp
> >> here:
> >>  grub_partition_iterate (dest_dev->disk, (strcmp (dest_partmap, "pc_partition_map") ?
> >>                                            find_usable_region_gpt : find_usable_region_msdos));
> >
> > dest_partmap is only assigned a value in identify_partmap.  If
> > grub_partition_iterate() doesn't find any partitions, dest_partmap
> > remains a random pointer.
> >
> > The fix would be probably to initialize dest_partmap with NULL.  If it
> > becomes "pc_partition_map", iterate with find_usable_region_msdos, if it
> > becomes "gpt_partition_map", iterate with find_usable_region_gpt.  If
> > it's NULL or another string, exit with a warning.
> Actualy I already fixed this in my patch for installing on
> partitionless devices. Since there were no oppositions I'll commit it

Thanks, it fixed the segfault for Jean-Luc.

-- 
Felix Zielcke
Proud Debian Maintainer




      parent reply	other threads:[~2009-07-25  6:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 18:46 [Fwd: Re: Bug#495949: grub-common: grub-probe segfaults] Felix Zielcke
2009-07-24 20:09 ` Pavel Roskin
2009-07-24 20:33   ` Pavel Roskin
2009-07-24 21:16     ` Vladimir 'phcoder' Serbinenko
2009-07-25 16:38     ` Robert Millan
2009-07-24 20:37   ` Vladimir 'phcoder' Serbinenko
2009-07-24 20:56     ` Pavel Roskin
2009-07-24 21:17       ` Vladimir 'phcoder' Serbinenko
2009-07-25 16:40         ` Robert Millan
2009-07-25  6:51     ` Felix Zielcke [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=1248504692.3665.3.camel@fz.local \
    --to=fzielcke@z-51.de \
    --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.