iliaa           Wed May 12 12:49:56 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src    NEWS 
    /php-src/ext/pgsql  pgsql.c 
  Log:
  MFH: Fixed bug #28374 (Possible unterminated loop inside
  _php_pgsql_trim_message()).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1247.2.659&r2=1.1247.2.660&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1247.2.659 php-src/NEWS:1.1247.2.660
--- php-src/NEWS:1.1247.2.659   Tue May 11 09:34:30 2004
+++ php-src/NEWS        Wed May 12 12:49:55 2004
@@ -10,6 +10,8 @@
   with multiple result sets returned. (Frank)
 - Fixed logic bug in session_register() which allowed registering _SESSION
   and/or HTTP_SESSION_VARS. (Sara)
+- Fixed bug #28374 (Possible unterminated loop inside 
+  _php_pgsql_trim_message()). (Ilia)
 - Fixed bug #28355 (glob() does not return error on Linux when it does not
   have permission to open the directory). (Ilia)
 - Fixed bug #28289 (incorrect resolving of relative paths by glob() in
http://cvs.php.net/diff.php/php-src/ext/pgsql/pgsql.c?r1=1.244.2.35&r2=1.244.2.36&ty=u
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.244.2.35 php-src/ext/pgsql/pgsql.c:1.244.2.36
--- php-src/ext/pgsql/pgsql.c:1.244.2.35        Wed Apr 21 20:32:07 2004
+++ php-src/ext/pgsql/pgsql.c   Wed May 12 12:49:56 2004
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.244.2.35 2004/04/22 00:32:07 iliaa Exp $ */
+/* $Id: pgsql.c,v 1.244.2.36 2004/05/12 16:49:56 iliaa Exp $ */
 
 #include <stdlib.h>
 
@@ -222,7 +222,7 @@
        if (i>1 && (message[i-1] == '\r' || message[i-1] == '\n') && message[i] == 
'.') {
                --i;
        }
-       while (i && (message[i] == '\r' || message[i] == '\n')) {
+       while (i>0 && (message[i] == '\r' || message[i] == '\n')) {
                --i;
        }
        ++i;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to