]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: ignore extended partition at zero offset
authorKarel Zak <kzak@redhat.com>
Thu, 7 Jul 2016 12:22:41 +0000 (14:22 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Aug 2016 11:02:45 +0000 (13:02 +0200)
commit3005a5b8968bda9a2c3f2a161e2e39114498807d
treee34396a5caf3524d31f2c9e57d64f96079012c2b
parent2ef4fafcc7247025058ccfd263cbbf561f41a37f
libblkid: ignore extended partition at zero offset

If the extended partition starts at zero LBA then MBR is interpreted
as EBR and all is recursively parsed... result is out-of-memory.

 MBR --extended-partition--> EBR --> MBR --> ENB --> MBR ...

Note that such PT is not possible to create by standard partitioning
tools.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1349536
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/dos.c