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:
0ea98e5
)
Fix uninitialized variable in LZMA encoder. This was
author
Lasse Collin
<lasse.collin@tukaani.org>
Wed, 11 Jun 2008 18:42:47 +0000
(21:42 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Wed, 11 Jun 2008 18:42:47 +0000
(21:42 +0300)
introduced in
369f72fd656f537a9a8e06f13e6d0d4c242be22f
.
src/liblzma/lzma/lzma_encoder_init.c
patch
|
blob
|
history
diff --git
a/src/liblzma/lzma/lzma_encoder_init.c
b/src/liblzma/lzma/lzma_encoder_init.c
index
306cea8
..
c925f81
100644
(file)
--- a/
src/liblzma/lzma/lzma_encoder_init.c
+++ b/
src/liblzma/lzma/lzma_encoder_init.c
@@
-181,6
+181,8
@@
lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
1U << options->pos_bits,
next->coder->fast_bytes + 1 - MATCH_MIN_LEN);
+ next->coder->prev_len_encoder = NULL;
+
// Misc
next->coder->longest_match_was_found = false;
next->coder->optimum_end_index = 0;