Exercise more parameters of the tiff predictor in fuzz

This commit is contained in:
Jay Berkenbilt 2024-02-03 11:27:42 -05:00
parent b1ec5ba883
commit e641a883cd
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ FuzzHelper::doChecks()
Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8);
p.write(const_cast<unsigned char*>(data), size);
p.finish();
// Exercise with strange values for some of the parameters.
Pl_TIFFPredictor p2("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 2, 5);
p2.write(const_cast<unsigned char*>(data), size);
p2.finish();
}
void