OSDN Git Service

libparted: gpt: avoid invalid free with many (~100) partitions
authorJim Meyering <meyering@redhat.com>
Mon, 23 Jan 2012 18:55:39 +0000 (19:55 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 23 Jan 2012 18:55:39 +0000 (19:55 +0100)
* parted/parted.c (do_print): Remove invalid free.
Bug introduced via v1.8.8.1-19-gb56d69c.
* NEWS (Bug fixes): Mention this.

NEWS
parted/parted.c

diff --git a/NEWS b/NEWS
index 9d189dc..484034b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,9 @@ GNU parted NEWS                                    -*- outline -*-
 
 ** Bug fixes
 
+  libparted: avoid an invalid free when creating many partitions in
+  a GPT partition table.  [bug introduced in parted-1.9.0]
+
   The msdos partition table claimed a maximum partition count of 16
   but would allow you to go beyond that.  This resulted in the kernel
   not being informed of those partitions.  Corrected to enforce the
index 96f9c34..02c5fdb 100644 (file)
@@ -1171,7 +1171,6 @@ do_print (PedDevice** dev)
                     //PED_ASSERT (row.cols == caption.cols)
                     table_add_row_from_strlist (table, row);
                     str_list_destroy (row);
-                    free (tmp);
                     free (start);
                     free (end);
                     free (size);