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 #include "encoder_utils.cc"
      8 
      9 static bool validateFileName(const std::string &fileName)
     10 {
     11   // Signature: this will most likely cause a timeout.
     12   if (fileName.find("%#") != -1)
     13     return false;
     14 
     15   return true;
     16 }
     17 
     18 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
     19   return fuzzEncoderWithStringFilename("label", Data, Size, validateFileName);
     20 }
     21 
     22 #include "travis.cc"
     23