[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
Mon Jul 30 15:40:46 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
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:                     assigned
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:              
====================================================================== 
Date Submitted:             07-23-2007 09:50 CDT
Last Modified:              07-30-2007 15:40 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 - 07-30-07 15:40  
---------------------------------------------------------------------- 
Have you had a chance to test this? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-30-07 15:40  qwell          Note Added: 0068092                          
======================================================================




More information about the asterisk-bugs mailing list