]> 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>
Thu, 7 Jul 2016 12:22:41 +0000 (14:22 +0200)
commit7164a1c34d18831ac61c6744ad14ce916d389b3f
tree2eee6b161d0c596b9e235b980126e57941a79dd3
parent99ae5a4956b0de8de152edf0992181b52ff9f62b
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