Browse Source

Fixed bug #34191 (ob_gzhandler does not enforce trailing \0).

migration/RELEASE_1_0_0
Ilia Alshanetsky 21 years ago
parent
commit
c8dedc16a8
  1. 1
      ext/zlib/zlib.c

1
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;

Loading…
Cancel
Save