mirror of
https://github.com/webmproject/libwebp.git
synced 2025-01-26 22:52:55 +01:00
the read-overflow code-path wasn't reporting as an error
(since 'ok' was '1' by default) (cherry picked from commit fe5eb4ffae74ff493e92fb5cd9a7a1625a113a7b)
This commit is contained in:
parent
1db888ba40
commit
b3bf8fe7a1
@ -358,7 +358,7 @@ int EncodeAlpha(const uint8_t* data, int width, int height, int stride,
|
||||
|
||||
static int DecompressZlibTCoder(VP8BitReader* const br, int width,
|
||||
uint8_t* output, size_t output_size) {
|
||||
int ok = 1;
|
||||
int ok = 0;
|
||||
const size_t MAX_DIST = 3 * width;
|
||||
const size_t MAX_LEN = 2 * width;
|
||||
TCoder* const coder = TCoderNew(MAX_SYMBOLS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user