From: greg at chiaraquartet dot net Operating system: n/a PHP version: 5.3CVS-2007-12-13 (CVS) PHP Bug Type: Streams related Bug description: infinite loop in bz2_filter.c
Description: ------------ An endless loop is possible in the bz2 stream filter bzip2.decompress if status == BZ_OK and data->strm.avail_out < data->outbuf_len Reproduce code: --------------- Index: ext/bz2/bz2_filter.c =================================================================== RCS file: /repository/php-src/ext/bz2/bz2_filter.c,v retrieving revision 1.3.2.2.2.5 diff -u -r1.3.2.2.2.5 bz2_filter.c --- ext/bz2/bz2_filter.c 9 Aug 2007 23:27:22 -0000 1.3.2.2.2.5 +++ ext/bz2/bz2_filter.c 13 Dec 2007 19:29:27 -0000 @@ -132,6 +132,8 @@ data->strm.avail_out = data->outbuf_len; data->strm.next_out = data->outbuf; exit_status = PSFS_PASS_ON; + } else { + break; } } } -- Edit bug report at http://bugs.php.net/?id=43589&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43589&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43589&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43589&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43589&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43589&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43589&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43589&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43589&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43589&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43589&r=support Expected behavior: http://bugs.php.net/fix.php?id=43589&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43589&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43589&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43589&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43589&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43589&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43589&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43589&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43589&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43589&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43589&r=mysqlcfg