Commit graph

9 commits

Author SHA1 Message Date
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
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
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
wolfbeast
072fbe1a93 Update libwebp to version 1.0.2
This resolves #939.
2019-02-16 00:24:34 +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