mirror of https://github.com/google/oss-fuzz.git
[libwebp] webp_enc_dec: Limit alpha_quality to 99 when method is 6 (#1860)
webp_enc_dec: Limit alpha_quality to 99 when method is 6 The target fuzz_webp_enc_dec with asan crashes (timeout) during encoding with heavy alpha compression. Clamp alpha compression parameters for images bigger than 16*16. Bug report 10838
This commit is contained in:
parent
2e867a3f6e
commit
3c1aba15b5
|
@ -193,6 +193,9 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* const data, size_t size) {
|
|||
config.quality = 99.0f;
|
||||
}
|
||||
}
|
||||
if (config.alpha_quality == 100 && config.method == 6) {
|
||||
config.alpha_quality = 99;
|
||||
}
|
||||
}
|
||||
|
||||
// Encode.
|
||||
|
|
Loading…
Reference in New Issue