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:
parent
f561a5df32
commit
eb7948876b
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user