commit 23bcd140d106186c87842cc57bf573cc38e4f27d
parent 0ef0a8c3d8ae900746aaf40c5c8f2da5fc2c18f9
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 13 Sep 2005 11:40:32 +0000
fix
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,6 @@
+Tue Sep 13 04:49:43 PDT 2005
+ Fixed segmentation fault in bz2 processing.
+
Fri Sep 9 14:57:10 PDT 2005
Fixed bug in decompression code that occured if the compressed file
expanded to more than twice its original size.
diff --git a/src/main/extractor.c b/src/main/extractor.c
@@ -756,7 +756,7 @@ getKeywords (EXTRACTOR_ExtractorList * extractor,
dsize = MAX_DECOMPRESS;
buf = realloc(buf, dsize);
bstrm.next_out = &buf[bpos];
- bstrm.avail_out = dsize - pos;
+ bstrm.avail_out = dsize - bpos;
} else if (bret != BZ_STREAM_END) {
/* error */
free(buf);