]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Verify whether the created buffer was actually large enough to hold the expanded...
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 11 Mar 2010 19:21:19 +0000 (19:21 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 11 Mar 2010 19:21:19 +0000 (19:21 +0000)
commitf6c104ca796958d5ad625a545d40fa266213b5b2
treeb314d11fc292a399c26027a7186cb7b8c8346b56
parent27b549627ac55cba2ae23c1e59cca28dca626f4f
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 #17006)
 Reported by: viniciusfontes
 Patches:
       20100311__issue17006.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@251875 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_odbc.c