- no fatal ereallocs please
authorMichael Wallner <mike@php.net>
Thu, 29 Dec 2005 21:06:55 +0000 (21:06 +0000)
committerMichael Wallner <mike@php.net>
Thu, 29 Dec 2005 21:06:55 +0000 (21:06 +0000)
http_encoding_api.c

index 6c8a048b28d517ff64f07cd3b80603297a6ff85d..c0d1140d4d452f5e0d304caea652959836709c1d 100644 (file)
@@ -479,7 +479,7 @@ PHP_HTTP_API STATUS _http_encoding_deflate_stream_flush(http_encoding_stream *s,
        {
                case Z_OK:
                case Z_STREAM_END:
-                       *encoded_len = 0x800 - s->stream.avail_out;
+                       *encoded_len = 0x8000 - s->stream.avail_out;
                        *encoded = erealloc_rel(*encoded, *encoded_len + 1);
                        (*encoded)[*encoded_len] = '\0';
                        return SUCCESS;