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:
Lasse Collin 2009-04-10 11:17:02 +03:00
parent 94eb9ad46f
commit e79c42d854
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}