Subject: bug#35306: crash in do_resizepart function

From: "Brian C. Lane" <[email-masked]>
Date: Tue, 23 Apr 2019 11:49:17 -0700

On Tue, Apr 23, 2019 at 01:53:41PM -0400, Phillip Susi wrote:
> Can you provide a copy of your partition table so that we can try to
> reproduce this?
> 
> Jozef Mlich writes:
> 
> > Hi,
> >
> > I was trying to resize partition in image file and it ended with crash
> >
> > /usr/sbin/parted ./rootfs.img resizepart 1
> > (gdb) bt full
> > #0  0x00007ffff7d79123 in free () from /lib64/libc.so.6
> > No symbol table info available.
> > #1  0x000055555555e00e in do_resizepart (dev=0x7fffffffd128,

It's easy to reproduce, just run it like this:

parted -s ./disk.img resizepart 1

Or without -s and hit enter at the default prompt. Something is wrong
with the handling of the *end_input I think (looking into it now).

-- 
Brian C. Lane (PST8PDT)