[Home]

Summary:ASTERISK-09934: Not possible to work with negative numbers as first argument to MATH
Reporter:reformed (reformed)Labels:
Date Opened:2007-07-23 09:50:17Date Closed:2007-08-02 10:49:30
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/func_math
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) func_math-10275.diff
Description:If a negative number is used in number1 the search logic fails in.
} else if ((op = strchr(mvalue1, '-'))) {

We have fixed it temporary with:
} else if ((op = strchr(mvalue1+1, '-'))) {

Granted there is no checkng on size of mvalue1 so this is not how it i would like to see it fixed :)
Comments:By: Jason Parker (jparker) 2007-07-23 12:06:39

Could you give this patch a try?  This was fixed in 1.4 and trunk, but not in 1.2.

By: Jason Parker (jparker) 2007-07-30 15:40:45

Have you had a chance to test this?

By: Jason Parker (jparker) 2007-08-02 10:49:29

As of August 1st, 1.2 is now in security maintenance mode.

Closing.  Won't fix.