From: Fabian Keil Date: Fri, 5 Jun 2009 16:55:16 +0000 (+0000) Subject: Document the 6 mysterious bytes we skip in decompress_iob(). X-Git-Tag: v_3_0_13~43 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e614f5c724fa9eae7fd826ee954835be38a76087;p=privoxy.git Document the 6 mysterious bytes we skip in decompress_iob(). --- diff --git a/parsers.c b/parsers.c index 3b9b0170..74c5dd31 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.173 2009/06/05 16:53:55 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.174 2009/06/05 16:54:27 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -448,6 +448,11 @@ jb_err decompress_iob(struct client_state *csp) log_error(LOG_LEVEL_ERROR, "Invalid gzip header flags when decompressing"); return JB_ERR_COMPRESS; } + + /* + * Skip mtime (4 bytes), extra flags (1 byte) + * and OS type (1 byte). + */ cur += 6; /* Skip extra fields if necessary. */