mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-03 15:17:29 +00:00
Fix fuzz issue 16301
This commit is contained in:
parent
8721f189f8
commit
94e86e2528
7
fuzz/qpdf_extra/16301.fuzz
Normal file
7
fuzz/qpdf_extra/16301.fuzz
Normal file
@ -0,0 +1,7 @@
|
||||
1 0 obj << /AcroForm<< /Fields ÿ /NeedAppearances true>> /Pages 16 0 R >>
|
||||
endobj
|
||||
15 0 obj << /Annots [ << ÿ /FT/Ch/Subtype /Widget >>
|
||||
endobj
|
||||
16 0 obj <<ÿÿÿÿ/Kids[15 0 R] >>
|
||||
endobj
|
||||
trailer << /Root 1 0 R >> ]>> ÿ ÿ
|
@ -2310,6 +2310,11 @@ QPDFObjectHandle::newStream(QPDF* qpdf, int objid, int generation,
|
||||
QPDFObjectHandle
|
||||
QPDFObjectHandle::newStream(QPDF* qpdf)
|
||||
{
|
||||
if (qpdf == 0)
|
||||
{
|
||||
throw std::runtime_error(
|
||||
"attempt to create stream in null qpdf object");
|
||||
}
|
||||
QTC::TC("qpdf", "QPDFObjectHandle newStream");
|
||||
QPDFObjectHandle stream_dict = newDictionary();
|
||||
QPDFObjectHandle result = qpdf->makeIndirectObject(
|
||||
|
Loading…
Reference in New Issue
Block a user