Commit graph

18 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
Masahiro Hanada
e5aed07ec1 [libwebp] Fix next is invalid pointer when WebPSafeMalloc fails
When WebPSafeMalloc fails on VP8LHuffmanTablesAllocate,
next is not initialized to NULL.
VP8LHuffmanTablesDeallocate uses next to know the following nodes.
A patch fixes this issue.

Change-Id: I144ae84cd97e5bca227018ef1afa95361267902c
2023-09-20 09:37: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
Moonchild
2f117eecaa Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from embedding, extensions, gfx, hal, ipc, layout, mailnews,
media and memory. More to come.
2023-05-05 22:57:19 +08:00
Job Bautista
8038505d6c Issue #1939 - Part 2: Update libwebp source. 2022-06-27 21:45:28 +08:00
Job Bautista
56d49fd570 Issue #1939 - Part 1: Update build system for libwebp. 2022-06-27 21:45:05 +08:00
Moonchild
0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Dmitry Grigoryev
12fba36d6e Added missing libwebp files to update.sh 2019-10-18 09:04:55 +08:00
Dmitry Grigoryev
9d42392ea8 Added missing libwebp NEON files 2019-10-05 07:22:24 +08:00
wolfbeast
072fbe1a93 Update libwebp to version 1.0.2
This resolves #939.
2019-02-16 00:24:34 +08:00
JustOff
d70b584d37 Rename libwebp/MOZCHANGES to libwebp/UXPCHANGES and update it 2019-02-16 00:06:29 +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
dce80618c4 Add new files to libwebp/dsp/moz.build 2019-02-16 00:06:26 +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
JustOff
96f65ed0eb Update libwebp/update.sh script for libwebp-1.0.0 2019-02-16 00:06:22 +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