mirror of
https://github.com/webmproject/libwebp.git
synced 2025-12-24 05:56:27 +01:00
- allow for malloc to return 0. - do not go through big resizing BUG: oss-fuzz:4667732529577984, oss-fuzz:6595689259008000 Change-Id: I56892bbba2fbcf5d1ceede2b56ea34612f8d13ac
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