aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lz/lz_encoder.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-04-24 18:38:00 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-04-24 18:38:00 +0300
commit712cfe3ebfd24df24d8896b1315c53c3bc4369c8 (patch)
tree941130e6e7292b6f71e487a2251d927cdb1002ce /src/liblzma/lz/lz_encoder.h
parentFix fastpos problem in Makefile.am when built with --enable-small. (diff)
downloadxz-712cfe3ebfd24df24d8896b1315c53c3bc4369c8.tar.xz
Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH.
Diffstat (limited to 'src/liblzma/lz/lz_encoder.h')
-rw-r--r--src/liblzma/lz/lz_encoder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liblzma/lz/lz_encoder.h b/src/liblzma/lz/lz_encoder.h
index 78ac4a36..1e47af2d 100644
--- a/src/liblzma/lz/lz_encoder.h
+++ b/src/liblzma/lz/lz_encoder.h
@@ -84,6 +84,10 @@ struct lzma_lz_encoder_s {
/// to buffer[write_pos].
size_t write_pos;
+ /// Number of bytes not hashed before read_pos. This is needed to
+ /// restart the match finder after LZMA_SYNC_FLUSH.
+ size_t pending;
+
/// Number of bytes that must be kept available in our input history.
/// That is, once keep_size_before bytes have been processed,
/// buffer[read_pos - keep_size_before] is the oldest byte that