All of lore.kernel.org
 help / color / mirror / Atom feed
* gazillon of double-free
@ 2010-09-08 23:20 Robert Millan
  2010-09-08 23:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2010-09-14 19:42 ` Colin D Bennett
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Millan @ 2010-09-08 23:20 UTC (permalink / raw)
  To: The development of GNU GRUB

It seems we have a ton of double-free bugs in label() and
uuid() routines.

Take for example grub_ext2_label():

  data = grub_ext2_mount (disk);
  if (data)
    *label = grub_strndup (data->sblock.volume_name, 14);
  else
    *label = NULL;
  grub_free (data);

If grub_ext2_mount fails, data is not allocated but we free it anyway.

Or perhaps I'm missing something? (it's late here, I need some sleep)

-- 
Robert Millan


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

end of thread, other threads:[~2010-09-14 19:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08 23:20 gazillon of double-free Robert Millan
2010-09-08 23:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-09-14 19:42 ` Colin D Bennett

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.