[Bug 9999] Re: cfdisk crashes if terminal size is too small
Ubuntu QA Website
9999 at bugs.launchpad.net
Fri May 18 15:08:02 UTC 2018
This bug has been reported on the Ubuntu Package testing tracker.
A list of all reports related to this bug can be found here:
http://packages.qa.ubuntu.com/qatracker/reports/bugs/9999
** Tags added: package-qa-testing
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/9999
Title:
cfdisk crashes if terminal size is too small
Status in util-linux package in Ubuntu:
Fix Released
Bug description:
Hello,
I've tried to run cfdisk in a narrow (less than 40 columns) gnome-terminal window,
and cfdisk crashed.
If the user doesn't have rights to read the device, the crash doesn't occur, because
the program merely displays an error message. It can be reproduced only when
actually
seeing the partition layout of a device.
The problem is caused by some (unsafe) usage of sprintf. The patch I'm going to
attach
changes most unsafe sprintf calls to snprintf, and it looks like the bug is solved.
The considered util-linux version is 2.12h-3ubuntu1.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/9999/+subscriptions
More information about the foundations-bugs
mailing list