[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:53 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:                     closed
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 172099 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
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.
====================================================================== 

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

_U  branches/1.6.0/
U   branches/1.6.0/funcs/func_strings.c

------------------------------------------------------------------------
r172707 | tilghman | 2009-01-31 10:40:52 -0600 (Sat, 31 Jan 2009) | 14
lines

Merged revisions 172706 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r172706 | tilghman | 2009-01-31 10:40:59 -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=172707 

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




More information about the asterisk-bugs mailing list