Fix off-by-one in LZ decoder.
Fortunately, this bug had no security risk other than accepting some corrupt files as valid.
This commit is contained in:
parent
94eb9ad46f
commit
e79c42d854
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue