diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-13 22:48:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-13 22:48:09 +0000 |
commit | 11b76b9ca5b39eeeb4fcff1593db2efe14cc5827 (patch) | |
tree | 6e35d52ca6f89c1c482a836f6064449781020bc3 /src/common/torgzip.h | |
parent | 8808b262068b6998a5be9dd6eabf50be82efe8a2 (diff) | |
download | tor-11b76b9ca5b39eeeb4fcff1593db2efe14cc5827.tar.gz tor-11b76b9ca5b39eeeb4fcff1593db2efe14cc5827.zip |
Allow tor_gzip_uncompress to extract as much as possible from truncated compressed data. Also, fix a bug where truncated compressed data could break tor_gzip_uncompress. [This last part is a backport candidate.]
svn:r5247
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r-- | src/common/torgzip.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h index 94aeceb5c1..a70463be6c 100644 --- a/src/common/torgzip.h +++ b/src/common/torgzip.h @@ -23,7 +23,8 @@ tor_gzip_compress(char **out, size_t *out_len, int tor_gzip_uncompress(char **out, size_t *out_len, const char *in, size_t in_len, - compress_method_t method); + compress_method_t method, + int complete_only); int is_gzip_supported(void); |