Bug 330711 - wrong calculation of pow(0,-ve numbers).Even kcalc is crashing repeatedly several times on input 0^-5.I am attaching solution patch along with it.
Summary: wrong calculation of pow(0,-ve numbers).Even kcalc is crashing repeatedly sev...
Status: RESOLVED FIXED
Alias: None
Product: kcalc
Classification: Applications
Component: general (show other bugs)
Version: 2.13
Platform: Mint (Ubuntu based) Linux
: NOR crash
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 18:29 UTC by Raushan Kumar
Modified: 2014-02-04 03:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Just added one check condition for 0^0 and 0^(-ve number) .Its working fine (1005 bytes, text/plain)
2014-02-03 18:32 UTC, Raushan Kumar
Details
patch (577 bytes, text/plain)
2014-02-03 18:42 UTC, Raushan Kumar
Details
patch . adding just one condition in power function (558 bytes, patch)
2014-02-03 18:47 UTC, Raushan Kumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raushan Kumar 2014-02-03 18:29:24 UTC
wrong calculation of pow(0,-ve numbers). Even kcalc is crashing repeatedly several times on input 0^-5. I am attaching solution patch along with it.
Comment 1 Raushan Kumar 2014-02-03 18:32:57 UTC
Created attachment 84970 [details]
Just added one check condition for 0^0 and 0^(-ve number) .Its working fine
Comment 2 Raushan Kumar 2014-02-03 18:42:37 UTC
Created attachment 84971 [details]
patch
Comment 3 Raushan Kumar 2014-02-03 18:47:18 UTC
Created attachment 84972 [details]
patch . adding just one condition in power function

Its working fine after building it.No further crashes.
Comment 4 Evan Teran 2014-02-03 21:34:59 UTC
Patch (with some minor cosmetic alterations) applied. Thanks!
Comment 5 Raushan Kumar 2014-02-04 02:54:00 UTC
thank you very much!!! :D