From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 27 Mar 2015 12:39:44 +0000 (+0000)
Subject: decompress_iob(): Refine the log message emitted when the iob is too small
X-Git-Tag: v_3_0_24~103
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/faq/user-manual/@default-cgi@show-url-info?a=commitdiff_plain;h=3eaf270b84f4baf1b84499f005749c0406ea3892;p=privoxy.git

decompress_iob(): Refine the log message emitted when the iob is too small
---

diff --git a/parsers.c b/parsers.c
index 902eb826..630537a3 100644
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.297 2014/11/12 11:59:47 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.298 2015/01/24 16:41:51 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -436,7 +436,9 @@ jb_err decompress_iob(struct client_state *csp)
        * This is to protect the parsing of gzipped data,
        * but it should(?) be valid for deflated data also.
        */
-      log_error(LOG_LEVEL_ERROR, "Buffer too small decompressing iob");
+      log_error(LOG_LEVEL_ERROR,
+         "Insufficient data to start decompression. Bytes in buffer: %d",
+         csp->iob->eod - csp->iob->cur);
       return JB_ERR_COMPRESS;
    }