2009-09-16 Robert Millan <rmh.grub@aybabtu.com>

* partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
        uninitialized `lastaddr'.
This commit is contained in:
robertmh 2009-09-16 19:23:33 +00:00
parent 0f0b8c878d
commit bbb2a70f51
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
* partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
uninitialized `lastaddr'.
2009-09-15 Vladimir Serbinenko <phcoder@gmail.com> 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
* partmap/msdos.c (pc_partition_map_iterate): Detect and break loops. * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.

View file

@ -110,6 +110,10 @@ pc_partition_map_iterate (grub_disk_t disk,
p.data = &pcdata; p.data = &pcdata;
p.partmap = &grub_msdos_partition_map; p.partmap = &grub_msdos_partition_map;
/* Any value different than `p.offset' will satisfy the check during
first loop. */
lastaddr = !p.offset;
while (1) while (1)
{ {
int i; int i;