You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ni...@apache.org on 2007/09/19 22:42:46 UTC
svn commit: r577441 - in /apr/apr-util/trunk/dbd: apr_dbd_freetds.c
apr_dbd_mysql.c apr_dbd_oracle.c
Author: niq
Date: Wed Sep 19 13:42:46 2007
New Revision: 577441
URL: http://svn.apache.org/viewvc?rev=577441&view=rev
Log:
Fix r577214 to avoid infinite loop!
Modified:
apr/apr-util/trunk/dbd/apr_dbd_freetds.c
apr/apr-util/trunk/dbd/apr_dbd_mysql.c
apr/apr-util/trunk/dbd/apr_dbd_oracle.c
Modified: apr/apr-util/trunk/dbd/apr_dbd_freetds.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_freetds.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_freetds.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_freetds.c Wed Sep 19 13:42:46 2007
@@ -551,6 +551,7 @@
for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
/* don't dereference memory that may not belong to us */
if (ptr == params) {
+ ++ptr;
continue;
}
for (key = ptr-1; isspace(*key); --key);
Modified: apr/apr-util/trunk/dbd/apr_dbd_mysql.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_mysql.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_mysql.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_mysql.c Wed Sep 19 13:42:46 2007
@@ -1103,6 +1103,7 @@
for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
/* don't dereference memory that may not belong to us */
if (ptr == params) {
+ ++ptr;
continue;
}
for (key = ptr-1; isspace(*key); --key);
Modified: apr/apr-util/trunk/dbd/apr_dbd_oracle.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_oracle.c?rev=577441&r1=577440&r2=577441&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_oracle.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_oracle.c Wed Sep 19 13:42:46 2007
@@ -468,6 +468,7 @@
for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
/* don't dereference memory that may not belong to us */
if (ptr == params) {
+ ++ptr;
continue;
}
for (key = ptr-1; isspace(*key); --key);