Bug: libfdisk/dos.c: Extended partition number == 1? -> crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To whom it may concern,

seems like I discovered a crash in util-linux-2.25.1:
If you've created an extended partition using number 1,
fdisk/cfdisk/whateveruseslibfdisk will crash when adding a new logical
partition.

Steps to reproduce:
fdisk /dev/sda
o, n, e, 1, .., n, l ->

fdisk: libfdisk/src/dos.c:1161: add_logical: Assertion
'self_label(cxt)->ext_index' failed

This does happen since 2.25, seems to come from [1].
Versions prior to 2.25 (2.24 tested) aren't effected and so are able to
write a partition layout without primary partitions.

During testing of this bug, I noticed a second crash when writing the
partition table to the harddisk. I'm not aware of how to reproduce it.

Regards


[1]
http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/libfdisk/src/dos.c?id=613596b3873a0d7d45396e066eee097b082ff833

-- 
Christoph Hoopmann
Jabber: choopm@xxxxxxxxxxxxx
https://www.0pointer.org/

Attachment: 0xAB689BB7.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux