From eb7948876b896f7d351ca4e9817522c71678cd43 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 15 Jun 2019 10:18:32 -0400 Subject: Fix problems found in fuzz corpus --- libqpdf/QPDFWriter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqpdf/QPDFWriter.cc') diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index 0cc0547d..22928372 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -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()) -- cgit v1.2.3-54-g00ecf