Skip to content

Commit 54fbbde

Browse files
committed
fix bug #67865
1 parent 9185cfd commit 54fbbde

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

NEWS

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ PHP NEWS
1818
- Wddx:
1919
. Fixed bug #67873 (Segfaults in php_wddx_serialize_var). (Anatol, Remi)
2020

21+
- Zlib:
22+
. Fixed bug #67724 (chained zlib filters silently fail with large amounts of
23+
data). (Mike)
24+
. Fixed bug #67865 (internal corruption phar error). (Mike)
25+
2126
?? ??? 2014, PHP 5.4.32
2227

2328
- COM:
@@ -66,10 +71,6 @@ PHP NEWS
6671
. Fixed bug #60616 (odbc_fetch_into returns junk data at end of multi-byte
6772
char fields). (Keyur)
6873

69-
- Zlib:
70-
. Fixed bug #67724 (chained zlib filters silently fail with large amounts of
71-
data). (Mike)
72-
7374
- MySQLi:
7475
. Fixed bug #67839 (mysqli does not handle 4-byte floats correctly). (Keyur)
7576

ext/zlib/zlib_filter.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ static php_stream_filter *php_zlib_filter_create(const char *filtername, zval *f
310310

311311
data->strm.zalloc = (alloc_func) php_zlib_alloc;
312312
data->strm.zfree = (free_func) php_zlib_free;
313-
data->strm.avail_out = data->outbuf_len = 0x8000;
314-
data->inbuf_len = 2048;
313+
data->strm.avail_out = data->outbuf_len = data->inbuf_len = 0x8000;
315314
data->strm.next_in = data->inbuf = (Bytef *) pemalloc(data->inbuf_len, persistent);
316315
if (!data->inbuf) {
317316
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed allocating %zd bytes", data->inbuf_len);

0 commit comments

Comments
 (0)