[asterisk-bugs] [Asterisk 0014363]: [patch] FILTER function is not working correctly (patch attached)

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Jan 31 10:40:05 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14363 
====================================================================== 
Reported By:                andrew53
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   14363
Category:                   Functions/func_strings
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 172099 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-29 08:51 CST
Last Modified:              2009-01-31 10:40 CST
====================================================================== 
Summary:                    [patch] FILTER function is not working correctly
(patch attached)
Description: 
When the "filter" function loops through "allowed" characters, the pointer
is incremented twice in each iteration, which results in skipping every
other "allowed" character (unless character ranges are used, in which case
the result is also wrong but less predictable.
====================================================================== 

---------------------------------------------------------------------- 
 (0099183) svnbot (reporter) - 2009-01-31 10:40
 http://bugs.digium.com/view.php?id=14363#c99183 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 172706

U   trunk/funcs/func_strings.c

------------------------------------------------------------------------
r172706 | tilghman | 2009-01-31 10:40:03 -0600 (Sat, 31 Jan 2009) | 7
lines

Don't increment the loop, now that incrementing is taken care of by the
decoder function.
(closes issue http://bugs.digium.com/view.php?id=14363)
 Reported by: andrew53
 Patches: 
       func_strings_filter.patch uploaded by andrew53 (license 519)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=172706 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-31 10:40 svnbot         Checkin                                      
2009-01-31 10:40 svnbot         Note Added: 0099183                          
======================================================================




More information about the asterisk-bugs mailing list