Commit e641a883cd4475671a01c006e4c801f6297ee836
1 parent
b1ec5ba8
Exercise more parameters of the tiff predictor in fuzz
Showing
1 changed file
with
4 additions
and
0 deletions
fuzz/tiffpredictor_fuzzer.cc
| @@ -29,6 +29,10 @@ FuzzHelper::doChecks() | @@ -29,6 +29,10 @@ FuzzHelper::doChecks() | ||
| 29 | Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8); | 29 | Pl_TIFFPredictor p("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 1, 8); |
| 30 | p.write(const_cast<unsigned char*>(data), size); | 30 | p.write(const_cast<unsigned char*>(data), size); |
| 31 | p.finish(); | 31 | p.finish(); |
| 32 | + // Exercise with strange values for some of the parameters. | ||
| 33 | + Pl_TIFFPredictor p2("decoder", &discard, Pl_TIFFPredictor::a_decode, 16, 2, 5); | ||
| 34 | + p2.write(const_cast<unsigned char*>(data), size); | ||
| 35 | + p2.finish(); | ||
| 32 | } | 36 | } |
| 33 | 37 | ||
| 34 | void | 38 | void |