diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-12-28 13:34:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2018-12-28 13:34:09 +0000 |
commit | b8aa9c64688c47e16073669c37d8b55e40844731 (patch) | |
tree | b67b496713badab8b4a9d8695033bdaa957fc228 /linux_lunzip.h | |
parent | Releasing debian version 0.3-2. (diff) | |
download | xlunzip-b8aa9c64688c47e16073669c37d8b55e40844731.tar.xz xlunzip-b8aa9c64688c47e16073669c37d8b55e40844731.zip |
Merging upstream version 0.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'linux_lunzip.h')
-rw-r--r-- | linux_lunzip.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/linux_lunzip.h b/linux_lunzip.h index 8aafbad..5518d30 100644 --- a/linux_lunzip.h +++ b/linux_lunzip.h @@ -9,10 +9,15 @@ int lunzip(unsigned char *inbuf, long in_len, long *in_posp, void (*error)(char *x)); +/* This internal function is required because the decompress_fn above + * (see include/linux/decompress/generic.h) should have an out_size + * argument to prevent overflowing outbuf in case of corruption of the + * compressed data. + */ int __lunzip(unsigned char *inbuf, long in_len, - long (*fill)(void*, unsigned long), - long (*flush)(void*, unsigned long), - unsigned char *outbuf, long out_size, - long *in_posp, long *out_posp, - void (*error)(char *x)); + long (*fill)(void*, unsigned long), + long (*flush)(void*, unsigned long), + unsigned char *outbuf, long out_size, + long *in_posp, long *out_posp, + void (*error)(char *x)); #endif |