Home | History | Annotate | Download | only in fuzz
      1 #include <cstdint>
      2 
      3 #include <Magick++/Blob.h>
      4 #include <Magick++/Image.h>
      5 
      6 #include "utils.cc"
      7 
      8 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
      9   const Magick::Blob blob(Data, Size);
     10   Magick::Image image;
     11   try {
     12     image.read(blob);
     13     image.enhance();
     14   } catch (Magick::Exception &e) {
     15     return 0;
     16   }
     17   return 0;
     18 }
     19 
     20 #include "travis.cc"
     21