From: Fabian Keil Date: Thu, 28 Jan 2021 15:26:45 +0000 (+0100) Subject: decompress_iob(): Fix detection of insufficient data X-Git-Tag: v_3_0_31~10 X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40HIDE_IF_MODIFIED_SINCE?a=commitdiff_plain;h=f5c1a886b7ae20da7eafb77926252eb521260728;p=privoxy.git decompress_iob(): Fix detection of insufficient data Instead of checking the size of the iob we have to check the size of the actual data. Previously Privoxy could try to work on uninitialized data. --- diff --git a/parsers.c b/parsers.c index 14aa99ea..3b195300 100644 --- a/parsers.c +++ b/parsers.c @@ -540,7 +540,7 @@ jb_err decompress_iob(struct client_state *csp) cur = csp->iob->cur; - if (bufsize < (size_t)10) + if (old_size < (size_t)10) { /* * This is to protect the parsing of gzipped data,