From: Dirk Lemstra Date: Sat, 27 Jan 2018 11:55:46 +0000 (+0100) Subject: Added exclude list for specific encoders when fuzzing (#962) X-Git-Tag: 7.0.7-23~273 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0017e695e6fa71744997e18056ed4e022e0133a8;p=imagemagick Added exclude list for specific encoders when fuzzing (#962) --- diff --git a/Magick++/fuzz/encoder_list.cc b/Magick++/fuzz/encoder_list.cc index 517a8dbd9..562b85037 100644 --- a/Magick++/fuzz/encoder_list.cc +++ b/Magick++/fuzz/encoder_list.cc @@ -33,8 +33,14 @@ int main() { allowedNames.push_back("TXT"); allowedNames.push_back("YCBCR"); + std::list excludeList; + excludeList.push_back("SCREENSHOT"); + for (std::list::iterator it = coderList.begin(); it != coderList.end(); it++) { + if (std::find(excludeList.begin(), excludeList.end(), (*it).module()) != excludeList.end()) + continue; + if ((*it).name() == (*it).module()) std::cout << ((*it).isWritable() ? "+" : "-") << (*it).module() << std::endl; else if (std::find(allowedNames.begin(), allowedNames.end(), (*it).module()) != allowedNames.end())