[asterisk-bugs] [Asterisk 0010275]: Not possible to work with negative numbers as first argument to MATH

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Aug 2 10:49:30 CDT 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10275 
====================================================================== 
Reported By:                reformed
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   10275
Category:                   Functions/func_math
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.2  
SVN Revision (number only!): 76409 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             07-23-2007 09:50 CDT
Last Modified:              08-02-2007 10:49 CDT
====================================================================== 
Summary:                    Not possible to work with negative numbers as first
argument to MATH
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 :)

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0009507 MATH cannot be used with first paramete...
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 08-02-07 10:49  
---------------------------------------------------------------------- 
As of August 1st, 1.2 is now in security maintenance mode.

Closing.  Won't fix. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-02-07 10:49  qwell          Status                   assigned => resolved
08-02-07 10:49  qwell          Resolution               open => won't fix   
08-02-07 10:49  qwell          Note Added: 0068316                          
======================================================================




More information about the asterisk-bugs mailing list