Commit graph

7 commits

Author SHA1 Message Date
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
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
e884585aba Add libwebp 0.6.0 to the tree 2019-02-14 14:36:29 +08:00