Commit 68c2489b8099453096619c65cf56badfbef9cb75

Authored by m-holger
1 parent dcf111a9

For qpdf fuzzers adjust the memory limit for Flate filtered streams

fuzz/qpdf_crypt_fuzzer.cc
... ... @@ -109,7 +109,7 @@ FuzzHelper::doChecks()
109 109  
110 110 Pl_PNGFilter::setMemoryLimit(1'000'000);
111 111 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
112   - Pl_Flate::setMemoryLimit(1'000'000);
  112 + Pl_Flate::setMemoryLimit(200'000);
113 113  
114 114 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
115 115 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...
fuzz/qpdf_crypt_insecure_fuzzer.cc
... ... @@ -109,7 +109,7 @@ FuzzHelper::doChecks()
109 109  
110 110 Pl_PNGFilter::setMemoryLimit(1'000'000);
111 111 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
112   - Pl_Flate::setMemoryLimit(1'000'000);
  112 + Pl_Flate::setMemoryLimit(200'000);
113 113  
114 114 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
115 115 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...
fuzz/qpdf_fuzzer.cc
... ... @@ -107,7 +107,7 @@ FuzzHelper::doChecks()
107 107  
108 108 Pl_PNGFilter::setMemoryLimit(1'000'000);
109 109 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
110   - Pl_Flate::setMemoryLimit(1'000'000);
  110 + Pl_Flate::setMemoryLimit(200'000);
111 111  
112 112 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
113 113 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...
fuzz/qpdf_lin_fuzzer.cc
... ... @@ -108,7 +108,7 @@ FuzzHelper::doChecks()
108 108  
109 109 Pl_PNGFilter::setMemoryLimit(1'000'000);
110 110 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
111   - Pl_Flate::setMemoryLimit(1'000'000);
  111 + Pl_Flate::setMemoryLimit(200'000);
112 112  
113 113 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
114 114 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...
fuzz/qpdf_outlines_fuzzer.cc
... ... @@ -85,7 +85,7 @@ FuzzHelper::doChecks()
85 85  
86 86 Pl_PNGFilter::setMemoryLimit(1'000'000);
87 87 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
88   - Pl_Flate::setMemoryLimit(1'000'000);
  88 + Pl_Flate::setMemoryLimit(200'000);
89 89  
90 90 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
91 91 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...
fuzz/qpdf_pages_fuzzer.cc
... ... @@ -106,7 +106,7 @@ FuzzHelper::doChecks()
106 106  
107 107 Pl_PNGFilter::setMemoryLimit(1'000'000);
108 108 Pl_TIFFPredictor::setMemoryLimit(1'000'000);
109   - Pl_Flate::setMemoryLimit(1'000'000);
  109 + Pl_Flate::setMemoryLimit(200'000);
110 110  
111 111 // Do not decompress corrupt data. This may cause extended runtime within jpeglib without
112 112 // exercising additional code paths in qpdf, and potentially causing counterproductive timeouts.
... ...