From: Dirk Lemstra Date: Wed, 10 Jan 2018 06:30:15 +0000 (+0100) Subject: Use new overload when reading the image. X-Git-Tag: 7.0.7-22~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c390c7bbe7fb3b6e1b6da90eb297a83206d357e4;p=imagemagick Use new overload when reading the image. --- diff --git a/Magick++/fuzz/encoder_fuzzer.cc b/Magick++/fuzz/encoder_fuzzer.cc index 134a90d60..37b70b10f 100644 --- a/Magick++/fuzz/encoder_fuzzer.cc +++ b/Magick++/fuzz/encoder_fuzzer.cc @@ -10,9 +10,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { const Magick::Blob blob(Data, Size); Magick::Image image; try { - image.magick(FUZZ_ENCODER); - image.fileName(FUZZ_ENCODER + ':'); - image.read(blob); + image.read(blob, FUZZ_ENCODER); } catch (Magick::Exception &e) { return 0; }