Skip to content
Snippets Groups Projects
Commit b4cf02898f99 authored by Lasse Collin's avatar Lasse Collin
Browse files

Fix off-by-one in LZ decoder.

Fortunately, this bug had no security risk other than accepting
some corrupt files as valid.
parent 5e0fa3d7bbdb
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@
static inline bool
dict_is_distance_valid(const lzma_dict *const dict, const size_t distance)
{
return dict->full >= distance;
return dict->full > distance;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment