From: Jani Taskinen Date: Wed, 9 Dec 2009 20:33:31 +0000 (+0000) Subject: - Fixed bug #47179 (gzuncompress does not report expcted error) X-Git-Tag: php-5.4.0alpha1~191^2~2256 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52f573d629754c9a9cf842ab4b810f933d13e11f;p=php - Fixed bug #47179 (gzuncompress does not report expcted error) --- diff --git a/ext/zlib/tests/gzuncompress_error1.phpt b/ext/zlib/tests/gzuncompress_error1.phpt index 8f9a42969f..99c419314d 100644 --- a/ext/zlib/tests/gzuncompress_error1.phpt +++ b/ext/zlib/tests/gzuncompress_error1.phpt @@ -1,7 +1,5 @@ --TEST-- Test gzuncompress() function : error conditions ---XFAIL-- -Test will fail until bug #47179 resolved; no error when $length too small --SKIPIF-- avail_in; + buffer.size = (max && (max < Z->avail_in)) ? max : Z->avail_in; do { - if ((max && (max < buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size))) { + if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size))) { status = Z_MEM_ERROR; } else { buffer.data = buffer.aptr;