mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08: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 {
|
||||
len = 1;
|
||||
len = (len == 0) ? 1 : len;
|
||||
}
|
||||
// Go with literal or backward reference.
|
||||
assert(len > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user