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:
parent
0f0b8c878d
commit
bbb2a70f51
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
|
||||
|
|
|
@ -110,6 +110,10 @@ pc_partition_map_iterate (grub_disk_t disk,
|
|||
p.data = &pcdata;
|
||||
p.partmap = &grub_msdos_partition_map;
|
||||
|
||||
/* Any value different than `p.offset' will satisfy the check during
|
||||
first loop. */
|
||||
lastaddr = !p.offset;
|
||||
|
||||
while (1)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue