mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-24 15:48:29 +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;
|
unsigned int n_object_streams = (eligible.size() + 99) / 100;
|
||||||
if (n_object_streams == 0)
|
if (n_object_streams == 0)
|
||||||
{
|
{
|
||||||
throw std::logic_error("n_object_streams == 0");
|
return;
|
||||||
}
|
}
|
||||||
unsigned int n_per = eligible.size() / n_object_streams;
|
unsigned int n_per = eligible.size() / n_object_streams;
|
||||||
if (n_per * n_object_streams < eligible.size())
|
if (n_per * n_object_streams < eligible.size())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user