aboutsummaryrefslogtreecommitdiff
path: root/projects/libwebp
diff options
context:
space:
mode:
authorYannisGuyon <7632072+YannisGuyon@users.noreply.github.com>2018-09-20 17:00:35 +0200
committerAbhishek Arya <inferno@chromium.org>2018-09-20 08:00:35 -0700
commit908d4322f566496aa71c5fef14b7f29b7b6097ab (patch)
treec295733cec434f27d05072f0c84715a1786ab32c /projects/libwebp
parent7dd99e90cffa8569b072f561af5d35448b0b76be (diff)
downloadoss-fuzz-908d4322f566496aa71c5fef14b7f29b7b6097ab.tar.gz
webp_enc_dec: Fix timeout by skipping crusher (#1831)
* webp_enc_dec: Fix timeout by skipping crasher The target fuzz_webp_enc_dec with msan crashes (timeout) on a 128*128px image encoding with max compression (crusher). Reduce crusher encoding to 16*16px and below. Bug report 10423
Diffstat (limited to 'projects/libwebp')
-rw-r--r--projects/libwebp/fuzz_webp_enc_dec.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/libwebp/fuzz_webp_enc_dec.cc b/projects/libwebp/fuzz_webp_enc_dec.cc
index 0ae224fcf..f50c6c954 100644
--- a/projects/libwebp/fuzz_webp_enc_dec.cc
+++ b/projects/libwebp/fuzz_webp_enc_dec.cc
@@ -183,7 +183,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* const data, size_t size) {
// Skip the cruncher except on small images, it's likely to timeout.
if (config.lossless && config.quality == 100. && config.method == 6 &&
- pic.width * pic.height >= 16384) {
+ pic.width * pic.height >= 16 * 16) {
config.lossless = 0;
}