mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-27 07:02:55 +01:00
Make sure to consider small distances in LZ77.
This could corrupt certain images since commit a3611513d2bf465fd282d9dc45b3f72c79c232ad 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…
x
Reference in New Issue
Block a user