cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

/[curl]/lib/content_encoding.c

Log of /lib/content_encoding.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue Feb 9 09:35:48 2010 UTC (5 weeks, 5 days ago) by bagder
Branch: MAIN
CVS Tags: HEAD, curl-7_20_0
Changes since 1.35: +2 -2 lines
Diff to previous 1.35
- When downloading compressed content over HTTP and the app as asked libcurl
  to automatically uncompress it with the CURLOPT_ENCODING option, libcurl
  could wrongly provide the callback with more data than what the maximum
  documented amount. An application could thus get tricked into badness if the
  maximum limit was trusted to be enforced by libcurl itself (as it is
  documented).

  This is further detailed and explained in the libcurl security advisory
  20100209 at

    http://curl.haxx.se/docs/adv_20100209.html

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Fri Jan 22 23:21:39 2010 UTC (8 weeks, 2 days ago) by bagder
Branch: MAIN
Changes since 1.34: +19 -19 lines
Diff to previous 1.34
wrap long lines and do some indent policing

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Aug 29 03:42:13 2009 UTC (6 months, 3 weeks ago) by gknauf
Branch: MAIN
CVS Tags: curl-7_19_7
Changes since 1.33: +2 -2 lines
Diff to previous 1.33
add cast to silient compiler warning with 64bit systems.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Mon May 11 09:55:28 2009 UTC (10 months, 1 week ago) by bagder
Branch: MAIN
CVS Tags: curl-7_19_5, curl-7_19_6
Changes since 1.32: +11 -1 lines
Diff to previous 1.32
- Balint Szilakszi reported a memory leak when libcurl did gzip decompression
  of streams that had some parts (legitimately) missing. We now provide and use
  a proper cleanup function for the content encoding submodule.
  http://curl.haxx.se/mail/lib-2009-05/0092.html

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Tue Apr 21 11:46:16 2009 UTC (11 months ago) by yangtse
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31
libcurl's memory.h renamed to curl_memory.h

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Feb 17 12:14:52 2009 UTC (13 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_19_4
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
- A second follow-up change by Andre Guibert de Bruet to fix a related memory
  leak like that fixed on the 14th. When zlib returns failure, we need to
  cleanup properly before returning error.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Sat Feb 14 09:12:55 2009 UTC (13 months ago) by bagder
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29
nah, use the simpler year - year range syntax only, no matter what emacs'
copyright-update script thinks

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sat Feb 14 09:09:10 2009 UTC (13 months ago) by bagder
Branch: MAIN
Changes since 1.28: +4 -3 lines
Diff to previous 1.28
- Andre Guibert de Bruet found and fixed a memory leak in the content encoding
  code, which could happen on libz errors.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Sat Sep 6 05:29:05 2008 UTC (18 months, 2 weeks ago) by yangtse
Branch: MAIN
CVS Tags: curl-7_19_1, curl-7_19_2, curl-7_19_3
Changes since 1.27: +2 -2 lines
Diff to previous 1.27
remove unnecessary typecasting of malloc()

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sat Nov 24 23:16:55 2007 UTC (2 years, 3 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_18_0, curl-7_18_1, curl-7_18_2, curl-7_19_0
Changes since 1.26: +4 -4 lines
Diff to previous 1.26
struct HandleData is now called struct SingleRequest, and is only for data that
is inited at the start of the DO action. I removed the Curl_transfer_keeper
struct completely, and I had to move out a few struct members (that had to
be set before DO or used after DONE) to the UrlState struct. The SingleRequest
struct is accessed with SessionHandle->req.

One of the biggest reasons for doing this was the bunch of duplicate struct
members in HandleData and Curl_transfer_keeper since it was really messy to
keep track of two variables with the same name and basically the same purpose!

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Nov 5 09:45:09 2007 UTC (2 years, 4 months ago) by bagder
Branch: MAIN
Changes since 1.25: +34 -34 lines
Diff to previous 1.25
removed space after if and while before the parenthesis for better source code
consistency

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Wed Aug 8 17:51:40 2007 UTC (2 years, 7 months ago) by danf
Branch: MAIN
CVS Tags: curl-7_17_0, curl-7_17_0-preldapfix, curl-7_17_1
Changes since 1.24: +2 -2 lines
Diff to previous 1.24
Song Ma noted a zlib memory leak in the illegal compressed header
countermeasures code path.

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Thu Feb 22 06:19:39 2007 UTC (3 years ago) by yangtse
Branch: MAIN
CVS Tags: curl-7_16_2, curl-7_16_3, curl-7_16_4
Changes since 1.23: +3 -11 lines
Diff to previous 1.23
Fix compiler warnings

"case label value exceeds maximum value for type" and
"comparison is always false due to limited range of data type"

Both triggered when using a bool variable as the switch variable
in a switch statement and using enums for the case targets.

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Sat Aug 19 21:18:37 2006 UTC (3 years, 7 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_15_6-prepipeline, curl-7_16_0, curl-7_16_1
Changes since 1.22: +18 -18 lines
Diff to previous 1.22
Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
command on subsequent requests on a re-used connection unless it has to.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Tue Apr 25 20:49:40 2006 UTC (3 years, 10 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_15_4, curl-7_15_5
Changes since 1.21: +19 -2 lines
Diff to previous 1.21
Paul Querna fixed libcurl to better deal with deflate content encoding when
the stream (wrongly) lacks a proper zlib header. This seems to be the case on
too many actual server implementations.

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Thu Mar 31 07:02:03 2005 UTC (4 years, 11 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_13_2, curl-7_14_0, curl-7_14_1, curl-7_15_0, curl-7_15_1, curl-7_15_2, curl-7_15_3
Changes since 1.20: +2 -2 lines
Diff to previous 1.20
Updated the copyright year since changes have been this year.

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon Feb 7 19:12:37 2005 UTC (5 years, 1 month ago) by danf
Branch: MAIN
CVS Tags: before_ftp_statemachine, curl-7_13_1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19
Fix for a bug report that compressed files that are exactly 64 KiB long
produce a zlib error.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Tue Nov 30 09:44:54 2004 UTC (5 years, 3 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_12_3, curl-7_13_0
Changes since 1.18: +2 -1 lines
Diff to previous 1.18
Dan Fandrich's fix for libz 1.1 and "extra field" usage in a gzip stream

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Wed Oct 27 21:46:11 2004 UTC (5 years, 4 months ago) by bagder
Branch: MAIN
Changes since 1.17: +122 -79 lines
Diff to previous 1.17
Dan Fandrich's gzip handling fix

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sun Jul 4 21:53:46 2004 UTC (5 years, 8 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_12_1, curl-7_12_2
Changes since 1.16: +6 -6 lines
Diff to previous 1.16
typecast the conversion to uInt when assigning z->avail_in to prevent
warnings from picky compilers

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Wed May 12 07:55:05 2004 UTC (5 years, 10 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_12_0, pre-aifix
Changes since 1.15: +17 -15 lines
Diff to previous 1.15
Edited comments only.

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Tue May 11 11:30:23 2004 UTC (5 years, 10 months ago) by bagder
Branch: MAIN
Changes since 1.14: +4 -1 lines
Diff to previous 1.14
curl_global_init_mem() allows the memory functions to be replaced.
memory.h is included everywhere for this.

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Mon Apr 26 14:02:01 2004 UTC (5 years, 10 months ago) by bagder
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13
ignore the curl/types.h header file

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Sun Feb 15 13:58:57 2004 UTC (6 years, 1 month ago) by bagder
Branch: MAIN
CVS Tags: curl-7_11_1, curl-7_11_2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12
another case which should use CURLcode and not int

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Fri Feb 13 12:16:24 2004 UTC (6 years, 1 month ago) by bagder
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
use CURLcode, not int, prevents picky compilers to warn

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Thu Jan 29 13:56:45 2004 UTC (6 years, 1 month ago) by bagder
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
warnings. Minor edits by me.

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Fri Jan 16 09:17:05 2004 UTC (6 years, 2 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_11_0
Changes since 1.9: +3 -3 lines
Diff to previous 1.9
Gisle Vanem's patch for variables that "might be used uninitialized"

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Jan 7 09:19:35 2004 UTC (6 years, 2 months ago) by bagder
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8
updated year in the copyright string

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Mon Jan 5 22:54:53 2004 UTC (6 years, 2 months ago) by bagder
Branch: MAIN
Changes since 1.7: +5 -1 lines
Diff to previous 1.7
Dan Fandrich's zlib fix

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Tue Apr 22 22:32:02 2003 UTC (6 years, 11 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_10_5, curl-7_10_6, curl-7_10_7, curl-7_10_8, pre-ares
Changes since 1.6: +8 -3 lines
Diff to previous 1.6
Dan Fandrich's gzip bugfix

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Fri Apr 11 16:31:18 2003 UTC (6 years, 11 months ago) by bagder
Branch: MAIN
Changes since 1.5: +25 -24 lines
Diff to previous 1.5
Nic fixed so that Curl_client_write() must not be called with 0 lenth data.

I edited somewhat and removed trailing whitespaces.

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Fri Apr 11 08:49:21 2003 UTC (6 years, 11 months ago) by bagder
Branch: MAIN
Changes since 1.4: +236 -2 lines
Diff to previous 1.4
Dan Fandrich's gzip patch applied

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Wed Jan 29 10:14:20 2003 UTC (7 years, 1 month ago) by bagder
Branch: MAIN
CVS Tags: curl-7_10_4
Changes since 1.3: +1 -9 lines
Diff to previous 1.3
removed the local variables for emacs and vim, use the new sample.emacs
way for emacs, and vim users should provide a similar non-polluting style

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Thu Jan 16 21:08:13 2003 UTC (7 years, 2 months ago) by bagder
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2
copyright year update in the source header

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Tue Sep 3 11:53:00 2002 UTC (7 years, 6 months ago) by bagder
Branch: MAIN
CVS Tags: curl-7_10, curl-7_10_1, curl-7_10_2, curl-7_10_3
Changes since 1.1: +8 -8 lines
Diff to previous 1.1
updated source code boilerplate/header

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Mon Sep 2 22:31:19 2002 UTC (7 years, 6 months ago) by bagder
Branch: MAIN
James Gallagher's Content-Encoding work

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET