cvs: php-src(PHP_5_1) /ext/standard filters.c

From: Date: Sun, 25 Sep 2005 13:26:30 +0000
Subject: cvs: php-src(PHP_5_1) /ext/standard filters.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-34135@lists.php.net to get a copy of this message
iliaa Sun Sep 25 09:26:30 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/standard filters.c Log: MFH: Fixed bug #34321 (Possible crash in filter code). http://cvs.php.net/diff.php/php-src/ext/standard/filters.c?r1=1.44&r2=1.44.2.1&ty=u Index: php-src/ext/standard/filters.c diff -u php-src/ext/standard/filters.c:1.44 php-src/ext/standard/filters.c:1.44.2.1 --- php-src/ext/standard/filters.c:1.44 Wed Aug 3 10:08:00 2005 +++ php-src/ext/standard/filters.c Sun Sep 25 09:26:30 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filters.c,v 1.44 2005/08/03 14:08:00 sniper Exp $ */ +/* $Id: filters.c,v 1.44.2.1 2005/09/25 13:26:30 iliaa Exp $ */ #include "php.h" #include "php_globals.h" @@ -868,7 +868,7 @@ CONSUME_CHAR(ps, icnt, lb_ptr, lb_cnt); } } else if ((!(opts & PHP_CONV_QPRINT_OPT_FORCE_ENCODE_FIRST) || line_ccnt < inst->line_len) && ((c >= 33 && c <= 60) || (c >= 62 && c <= 126))) { - if (line_ccnt < 2) { + if (line_ccnt < 2 && inst->lbchars != NULL) { if (ocnt < inst->lbchars_len + 1) { err = PHP_CONV_ERR_TOO_BIG; break;

« previous php.cvs (#34135) next »