diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2005-08-21 16:03:21 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2005-08-21 16:03:21 +0000 |
| commit | daa209297d56e8c759fe2bd66c57c5647f0b7e9f (patch) | |
| tree | 3351c8c07b441012682e1667e7fe4ec8a6d6a1ac /ext/zlib | |
| parent | f4eb5095a622097b61a626ce290154af82baea9f (diff) | |
| download | php-git-daa209297d56e8c759fe2bd66c57c5647f0b7e9f.tar.gz | |
MFH: Fixed bug #34191 (ob_gzhandler does not enforce trailing \0).
Diffstat (limited to 'ext/zlib')
| -rw-r--r-- | ext/zlib/zlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index d195597b13..ff68743ccd 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -644,6 +644,7 @@ static int php_do_deflate(uint str_length, Bytef **p_buffer, uint *p_buffer_len, if (do_end) { err = deflate(&ZLIBG(stream), Z_FINISH); + buffer[outlen - ZLIBG(stream).avail_out] = '\0'; } *p_buffer = buffer; |
