Commit eb7948876b896f7d351ca4e9817522c71678cd43
1 parent
f561a5df
Fix problems found in fuzz corpus
Showing
1 changed file
with
1 additions
and
1 deletions
libqpdf/QPDFWriter.cc
| ... | ... | @@ -2311,7 +2311,7 @@ QPDFWriter::generateObjectStreams() |
| 2311 | 2311 | unsigned int n_object_streams = (eligible.size() + 99) / 100; |
| 2312 | 2312 | if (n_object_streams == 0) |
| 2313 | 2313 | { |
| 2314 | - throw std::logic_error("n_object_streams == 0"); | |
| 2314 | + return; | |
| 2315 | 2315 | } |
| 2316 | 2316 | unsigned int n_per = eligible.size() / n_object_streams; |
| 2317 | 2317 | if (n_per * n_object_streams < eligible.size()) | ... | ... |