[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:16:30 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:16 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.
======================================================================
----------------------------------------------------------------------
(0119273) tilghman (administrator) - 2010-03-11 13:16
https://issues.asterisk.org/view.php?id=17006#c119273
----------------------------------------------------------------------
Okay, confirmed. The actual problem is that we did not check to see if the
buffer was full, and most people do not use func_odbc in this way,
preferring to use a real template. This is why it was not caught before.
Patch uploaded which fixes the issue in a way that does not recreate a
static buffer. Larger static buffers could still potentially have the same
problem, which is why your patch wasn't a real fix.
Issue History
Date Modified Username Field Change
======================================================================
2010-03-11 13:16 tilghman Note Added: 0119273
======================================================================
More information about the asterisk-bugs
mailing list