mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
Make sure to consider small distances in LZ77.
This could corrupt certain images since commit
a3611513d2
Change-Id: Ifbe43abaafe8efb27c62af18039fea5a9dc4e062
This commit is contained in:
parent
f2a0946a7a
commit
cfbcc5ece0
@ -464,7 +464,7 @@ static int BackwardReferencesLz77(int xsize, int ysize,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
len = 1;
|
len = (len == 0) ? 1 : len;
|
||||||
}
|
}
|
||||||
// Go with literal or backward reference.
|
// Go with literal or backward reference.
|
||||||
assert(len > 0);
|
assert(len > 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user