[parted-devel] [PATCH] parted: Fix crash with name command and no disklabel (#1226067)

Phillip Susi psusi at ubuntu.com
Sat Jul 25 15:30:37 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Woops, ACK.

On 07/13/2015 07:56 PM, Brian C. Lane wrote:
> A typo (the last I think) from commit 7eac058 wasn't properly
> checking the result of ped_disk_new so it could crash if there was
> no disklabel on the device. --- parted/parted.c | 2 +- 1 file
> changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/parted/parted.c b/parted/parted.c index
> 2678554..a9426c4 100644 --- a/parted/parted.c +++
> b/parted/parted.c @@ -860,7 +860,7 @@ do_name (PedDevice** dev,
> PedDisk** diskp)
> 
> if (!*diskp) *diskp = ped_disk_new (*dev); -        if (!diskp) +
> if (!*diskp) goto error;
> 
> if (!command_line_get_partition (_("Partition number?"), *diskp,
> &part))
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJVs6udAAoJENRVrw2cjl5RpWUH/1dOHpboQNWe+ERPasf4i0jR
BT/F1WnTd6mIFFmNh0ylSqBgbOhzRyA1XBAXkf8p0F2CY/3ulWH39i5UtEK64hg3
SwBpr6j2QpPx3XMbMxajaVZk1dSjXHfElAoVCHXuLNdyFEPedYrNBuFLiWm1fMoN
in1e4g/MS2yE0DatqLesG/2GoIeDDKfCR8zHTID+2G9s4FF5Ulu0DSYmX0i+83q9
+AwKZ2du+UJEA1EUBNNHlQaW5Lwp85IBKahR6z5YcnmcduDL48T4zIcqtinuo7Ss
d9b3efsnNvoplFAy0Da3FpPxbEdkDNbDu8SMqixn02+8u7qLsZfeSIhXubrsGeE=
=mrzE
-----END PGP SIGNATURE-----



More information about the parted-devel mailing list