projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66da129
)
Fix data corruption in LZ/LZMA2 encoder.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 16 Aug 2009 19:15:13 +0000
(22:15 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sun, 16 Aug 2009 19:15:13 +0000
(22:15 +0300)
Thanks to Jonathan Stott for the bug report.
src/liblzma/lz/lz_encoder.h
patch
|
blob
|
history
diff --git
a/src/liblzma/lz/lz_encoder.h
b/src/liblzma/lz/lz_encoder.h
index
4904c22
..
35e9ebb
100644
(file)
--- a/
src/liblzma/lz/lz_encoder.h
+++ b/
src/liblzma/lz/lz_encoder.h
@@
-234,7
+234,7
@@
mf_avail(const lzma_mf *mf)
static inline uint32_t
mf_unencoded(const lzma_mf *mf)
{
- return mf->write_pos - mf->read_pos
-
mf->read_ahead;
+ return mf->write_pos - mf->read_pos
+
mf->read_ahead;
}