[asterisk-bugs] [Asterisk 0017006]: [patch] func_odbc query is limited to 15 characters

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 11 13:23:21 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17006 
====================================================================== 
Reported By:                viniciusfontes
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17006
Category:                   Functions/func_odbc
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1.17 
JIRA:                       SWP-1065 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-03-11 08:58 CST
Last Modified:              2010-03-11 13:23 CST
====================================================================== 
Summary:                    [patch] func_odbc query is limited to 15 characters
Description: 
You can't have a query string longer than 15 characters passed to
ODBC_[NAME] functions. The query string is trimmed to the first 15
characters.

There's a patch to solve this included.
====================================================================== 

---------------------------------------------------------------------- 
 (0119275) svnbot (reporter) - 2010-03-11 13:23
 https://issues.asterisk.org/view.php?id=17006#c119275 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 251875

U   branches/1.6.1/funcs/func_odbc.c

------------------------------------------------------------------------
r251875 | tilghman | 2010-03-11 13:21:19 -0600 (Thu, 11 Mar 2010) | 14
lines

Verify whether the created buffer was actually large enough to hold the
expanded value.

For certain types of queries, where the size of the substituted query was
much
larger than the template, it was possible for the substitution buffer to
be too
small.  This is only an issue in 1.6.1, as previously we used a static
buffer
anyway, and we have a substitution routine in 1.6.2 forward that
automatically
sizes itself appropriately to handle larger expansions.

(closes issue https://issues.asterisk.org/view.php?id=17006)
 Reported by: viniciusfontes
 Patches: 
       20100311__issue17006.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-11 13:23 svnbot         Checkin                                      
2010-03-11 13:23 svnbot         Note Added: 0119275                          
======================================================================




More information about the asterisk-bugs mailing list