apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Seeing segv in apr_dbd_odbc
Date Mon, 20 Oct 2008 23:58:08 GMT
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.

Mime
View raw message