From: Gustavo André dos Santos Lopes Date: Wed, 29 Sep 2010 18:58:58 +0000 (+0000) Subject: - Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate... X-Git-Tag: php-5.4.0alpha1~191^2~875 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c8e3c1b3e08d9492a14ec8d4d78e10b604fbfe1;p=php - Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data). --- diff --git a/ext/zlib/tests/bug_52944.phpt b/ext/zlib/tests/bug_52944.phpt new file mode 100644 index 0000000000..850371190e --- /dev/null +++ b/ext/zlib/tests/bug_52944.phpt @@ -0,0 +1,157 @@ +--TEST-- +Bug #52944 (segfault with zlib filter and corrupted data) +--SKIPIF-- + +--INI-- +allow_url_fopen=1 +--FILE-- +strm.next_in = data->inbuf; + data->strm.avail_in = 0; return PSFS_ERR_FATAL; } desired -= data->strm.avail_in; /* desired becomes what we consumed this round through */