moriyoshi               Sat Feb 14 08:15:46 2009 UTC

  Modified files:              
    /php-src/ext/mbstring/libmbfl/mbfl  mbfilter.c 
  Log:
  - Prevent unwanted overflow
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c?r1=1.17&r2=1.18&diff_format=u
Index: php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c
diff -u php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:1.17 
php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:1.18
--- php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c:1.17   Sat Feb 14 07:33:41 2009
+++ php-src/ext/mbstring/libmbfl/mbfl/mbfilter.c        Sat Feb 14 08:15:46 2009
@@ -906,6 +906,9 @@
 
        if (offset < 0) {
                negative_offset = -offset - pc.needle_len;
+               if (negative_offset < 0) {
+                       negative_offset = 0;
+               }
                offset = 0;
        }
 



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

Reply via email to