Commit graph

10 commits

Author SHA1 Message Date
Vincent Rabaud
293fa3120b [libwebp] Never send VP8_STATUS_SUSPENDED back in non-incremental.
Add the incremental_ member to the internal VP8Decoder,
to mimic VP8LDecoder

Change-Id: I34842e473bb566f51c18fe42afda63e66c0185b6
2023-09-20 09:38:33 +08:00
Vincent Rabaud
3b44f9850e [libwebp] Fix invalid incremental decoding check.
The first condition is only necessary if we have not read enough
(enough being defined by src_last, not src_end which is the end
of the image).
The second condition now fits the comment below: "if not
incremental, and we are past the end of buffer".

BUG=oss-fuzz:62136

Change-Id: I0700f67c62db8e1c02c2e429a069a71e606a5e4f
2023-09-12 21:43:09 +08:00
Vincent Rabaud
61de658e45 [libwebp] Fix OOB write in BuildHuffmanTable.
First, BuildHuffmanTable is called to check if the data is valid.
If it is and the table is not big enough, more memory is allocated.

This will make sure that valid (but unoptimized because of unbalanced
codes) streams are still decodable.

Bug: chromium:1479274
Change-Id: I31c36dbf3aa78d35ecf38706b50464fd3d375741
2023-09-12 21:42:13 +08:00
Job Bautista
8038505d6c Issue #1939 - Part 2: Update libwebp source. 2022-06-27 21:45:28 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
wolfbeast
072fbe1a93 Update libwebp to version 1.0.2
This resolves #939.
2019-02-16 00:24:34 +08:00
JustOff
c666612283 Apply known security patches (webp:381,383,384) to libwebp-1.0.0 2019-02-16 00:06:28 +08:00
JustOff
57e9b57974 Sync libwebp sources with https://chromium.googlesource.com/webm/libwebp/+/v1.0.0 2019-02-16 00:06:25 +08:00
wolfbeast
85b4e45fa7 Add build files to support libwebp decoding. 2019-02-14 14:36:31 +08:00
wolfbeast
e884585aba Add libwebp 0.6.0 to the tree 2019-02-14 14:36:29 +08:00