2
1
mirror of https://github.com/qpdf/qpdf.git synced 2025-01-08 17:24:06 +00:00

Fix problems found in fuzz corpus

This commit is contained in:
Jay Berkenbilt 2019-06-15 10:18:32 -04:00
parent f561a5df32
commit eb7948876b

View File

@ -2311,7 +2311,7 @@ QPDFWriter::generateObjectStreams()
unsigned int n_object_streams = (eligible.size() + 99) / 100;
if (n_object_streams == 0)
{
throw std::logic_error("n_object_streams == 0");
return;
}
unsigned int n_per = eligible.size() / n_object_streams;
if (n_per * n_object_streams < eligible.size())