SRU: sin(0)/sin(0) crash the the calculator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Calculator |
Fix Released
|
Medium
|
|||
gnome-calculator (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Martin Wimpress |
Bug Description
[Impact]
It is possible to cause gnome-calcualtor segfault when elements of division to zero have null assigned tokens. For example, the following calculation will trigger a segfault:
sin(0)/sin(0)
[Test Case]
Open a terminal with CTRL+ALT+t and launch 'gnome-calculator'. Type the following into the equation entry area 'sin(0)/sin(0)' and press enter, gnome-calculator will segfault.
When the patched 'gnome-calculator' package is installed performing the same calculation described above will not cause 'gnome-calculator' to crash and instead the following will be displayed: Division by zero is undefined
A debdiff for Xenial is attached in comment #2:
* https:/
[Regression Potential]
None expected. The applied patch is taken directly from the following upstream commit:
* https:/
gnome-calculator packages have been built in a PPA and tested.
[Other Info]
dw3@linux:~$ gnome-calculator
(gnome-
(gnome-
Segmentation fault (core dumped)
dw3@linux:~$
sin(0)/sin(0) = NaN, but it crash the calculator
Changed in gnome-calculator: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Changed in gnome-calculator (Ubuntu Xenial): | |
assignee: | nobody → Martin Wimpress (flexiondotorg) |
status: | New → In Progress |
description: | updated |
Thanks, it looks like https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 769364 which was fixed upstream with that commit /git.gnome. org/browse/ gnome-calculato r/commit/ ?id=647eb687821 fd74764a55767bf 1e34f68f5df940
https:/
it's probably worth a SRU to xenial as well if somebody wants to do that