You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "William A. Rowe, Jr." <wr...@rowe-clan.net> on 2008/10/21 01:58:08 UTC
Seeing segv in apr_dbd_odbc
Note the following;
Index: apr-util-1.3/dbd/apr_dbd_odbc.c
===================================================================
--- apr-util-1.3/dbd/apr_dbd_odbc.c (revision 706430)
+++ apr-util-1.3/dbd/apr_dbd_odbc.c (working copy)
@@ -809,6 +809,7 @@
seps = DEFAULTSEPS;
name[nparams] = apr_strtok(apr_pstrdup(pool, params), seps, &last);
do {
+ /* XXX: segfault on last=NULL, assumption from above we have parms */
if (last[strspn(last, seps)] == CSINGLEQUOTE) {
last += strspn(last, seps);
seps=SSINGLEQUOTE;
It seems that testdbd blows up because of this assumption.