From: Christoph Hoopmann <christophhoopmann@gmail.com>
To: util-linux@vger.kernel.org
Subject: Bug: libfdisk/dos.c: Extended partition number == 1? -> crash
Date: Mon, 06 Oct 2014 19:51:20 +0200 [thread overview]
Message-ID: <5432D698.1000903@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 944 bytes --]
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@jabber.ccc.de
https://www.0pointer.org/
[-- Attachment #1.2: 0xAB689BB7.asc --]
[-- Type: application/pgp-keys, Size: 11124 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2014-10-06 17:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-06 17:51 Christoph Hoopmann [this message]
2014-10-07 9:51 ` Bug: libfdisk/dos.c: Extended partition number == 1? -> crash Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5432D698.1000903@gmail.com \
--to=christophhoopmann@gmail.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).