mirror of
https://github.com/webmproject/libwebp.git
synced 2026-04-09 14:22:31 +02:00
This fixes a spurious unsigned integer overflow with invalid content: ``` src/dec/alpha_dec.c:61:44: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'size_t' (aka 'unsigned long') ``` Bug: 498965803, 498966235, 498966511, 498967090 Change-Id: I350d9144d0c1e4e35286e9e1ca68a574ff6f86a1
Tests
This is a collection of tests for the libwebp libraries, currently covering fuzzing through the APIs. Additional test vector coverage can be found at: https://chromium.googlesource.com/webm/libwebp-test-data
Building
Fuzzers
Follow the build instructions for libwebp, optionally adding build flags for various sanitizers (e.g., -fsanitize=address).
-DWEBP_BUILD_FUZZTEST=ON can then be used to compile the fuzzer targets:
$ cmake -B ./build -S . -DWEBP_BUILD_FUZZTEST=ON
$ make -C build