[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:21:21 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17006 
====================================================================== 
Reported By:                viniciusfontes
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17006
Category:                   Functions/func_odbc
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
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:              
====================================================================== 
Date Submitted:             2010-03-11 08:58 CST
Last Modified:              2010-03-11 13:21 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.
====================================================================== 

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

U   branches/1.6.1/funcs/func_odbc.c

------------------------------------------------------------------------
r251875 | tilghman | 2010-03-11 13:21:20 -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 and 1.6.2, as previously we used a
static
buffer anyway, and we have a substitution routine in trunk (1.8) 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:21 svnbot         Note Added: 0119274                          
======================================================================




More information about the asterisk-bugs mailing list