Discard improperly nested partitions.
This commit is contained in:
parent
19563c25c1
commit
8d9a5b15e3
4 changed files with 95 additions and 18 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
|
||||
|
||||
* kern/partition.c (grub_partition_check_containment): New function to
|
||||
check that a partition is physically contained in a parent. Since
|
||||
offsets are relative (and non-negative), this reduces to checking that
|
||||
the partition ends before its parent.
|
||||
(grub_partition_map_probe): Discard out-of-range sub-partitions.
|
||||
(grub_partition_iterate): Likewise.
|
||||
* include/grub/partition.h (grub_partition_map): Slightly more detailed
|
||||
comments.
|
||||
* partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
|
||||
partitions that start before their parent, and add debug printfs.
|
||||
|
||||
2010-07-13 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* Makefile.in (.SUFFIX): Spell correctly, as ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue