[asterisk-bugs] [Asterisk 0015320]: [patch] CUT() returns empty string for fields other than the 1st

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jun 15 12:49:23 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15320 
====================================================================== 
Reported By:                chappell
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   15320
Category:                   Functions/func_cut
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 200142 
Request Review:              
====================================================================== 
Date Submitted:             2009-06-12 13:31 CDT
Last Modified:              2009-06-15 12:49 CDT
====================================================================== 
Summary:                    [patch] CUT() returns empty string for fields other
than the 1st
Description: 
CUT() in 1.4.X works correctly.  In 1.6.X SVN it does not work due to an
off-by-one error in the code which advances the pointer to the start of the
range.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015208 [patch] The CUT function does not show ...
====================================================================== 

---------------------------------------------------------------------- 
 (0106411) tilghman (administrator) - 2009-06-15 12:49
 https://issues.asterisk.org/view.php?id=15320#c106411 
---------------------------------------------------------------------- 
1) I need the code clarification in a separate patch from the actual fix.
2) I need another patch for branches 1.6.0 through 1.6.2, because those
versions do not have ast_str_substitute().  Additionally, in these patches,
the fix itself should be the only part added.
3) You've removed several cases handled, where the field range allows the
first or last numbers to be omitted.  You'll need to restore those cases
for the patch to be acceptable. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-15 12:49 tilghman       Note Added: 0106411                          
======================================================================




More information about the asterisk-bugs mailing list