From e04fe0c39f06d5209b0dc0f3f6318cd517c9889c Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 15 Feb 2019 17:31:33 -0800 Subject: [PATCH] revert the previous change: the leak is actually not fixed yet https://github.com/glennrp/libpng/pull/279 https://github.com/glennrp/libpng/issues/274 --- projects/libpng-proto/libpng_transforms_fuzzer.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/libpng-proto/libpng_transforms_fuzzer.cc b/projects/libpng-proto/libpng_transforms_fuzzer.cc index 4cce234fd..b87705d0b 100644 --- a/projects/libpng-proto/libpng_transforms_fuzzer.cc +++ b/projects/libpng-proto/libpng_transforms_fuzzer.cc @@ -132,3 +132,10 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { png_image_free(&image); return 0; } + +extern "C" const char *__asan_default_options() { + // TODO: remove this once + // https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12716 + // is fixed. + return "detect_leaks=0"; +}