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:
94eb9ad
)
Fix off-by-one in LZ decoder.
author
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 10 Apr 2009 08:17:02 +0000
(11:17 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 10 Apr 2009 08:17:02 +0000
(11:17 +0300)
Fortunately, this bug had no security risk other than accepting
some corrupt files as valid.
src/liblzma/lz/lz_decoder.h
patch
|
blob
|
history
diff --git
a/src/liblzma/lz/lz_decoder.h
b/src/liblzma/lz/lz_decoder.h
index
9041d0b
..
79b8c8c
100644
(file)
--- a/
src/liblzma/lz/lz_decoder.h
+++ b/
src/liblzma/lz/lz_decoder.h
@@
-126,7
+126,7
@@
dict_is_empty(const lzma_dict *const dict)
static inline bool
dict_is_distance_valid(const lzma_dict *const dict, const size_t distance)
{
- return dict->full >
=
distance;
+ return dict->full > distance;
}