mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 07:12:28 +00:00
Exercise more parameters of the tiff predictor in fuzz
This commit is contained in:
parent
b1ec5ba883
commit
e641a883cd
@ -29,6 +29,10 @@ FuzzHelper::doChecks()
|
|||||||
Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8);
|
Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8);
|
||||||
p.write(const_cast<unsigned char*>(data), size);
|
p.write(const_cast<unsigned char*>(data), size);
|
||||||
p.finish();
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user