mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Fix errors reported by Coverity
Thanks to Jiri Popelka from Red Hat for sending the output of a Coverity run over qpdf.
This commit is contained in:
parent
66c88995fc
commit
212812d837
@ -35,6 +35,7 @@ QPDFObjectHandle::ParserCallbacks::terminateParsing()
|
|||||||
|
|
||||||
QPDFObjectHandle::QPDFObjectHandle() :
|
QPDFObjectHandle::QPDFObjectHandle() :
|
||||||
initialized(false),
|
initialized(false),
|
||||||
|
qpdf(0),
|
||||||
objid(0),
|
objid(0),
|
||||||
generation(0),
|
generation(0),
|
||||||
reserved(false)
|
reserved(false)
|
||||||
|
@ -70,6 +70,7 @@ QPDFWriter::init()
|
|||||||
encryption_V = 0;
|
encryption_V = 0;
|
||||||
encryption_R = 0;
|
encryption_R = 0;
|
||||||
encryption_dict_objid = 0;
|
encryption_dict_objid = 0;
|
||||||
|
pipeline = 0;
|
||||||
next_objid = 1;
|
next_objid = 1;
|
||||||
cur_stream_length_id = 0;
|
cur_stream_length_id = 0;
|
||||||
cur_stream_length = 0;
|
cur_stream_length = 0;
|
||||||
@ -2695,7 +2696,7 @@ QPDFWriter::writeLinearized()
|
|||||||
|
|
||||||
this->next_objid = part4_first_obj;
|
this->next_objid = part4_first_obj;
|
||||||
enqueuePart(part4);
|
enqueuePart(part4);
|
||||||
assert(this->next_objid = after_part4);
|
assert(this->next_objid == after_part4);
|
||||||
this->next_objid = part6_first_obj;
|
this->next_objid = part6_first_obj;
|
||||||
enqueuePart(part6);
|
enqueuePart(part6);
|
||||||
assert(this->next_objid == after_part6);
|
assert(this->next_objid == after_part6);
|
||||||
|
@ -46,6 +46,7 @@ void run(char const* filename)
|
|||||||
// Write to the both pipeline
|
// Write to the both pipeline
|
||||||
def3->write(buf, len);
|
def3->write(buf, len);
|
||||||
}
|
}
|
||||||
|
fclose(in1);
|
||||||
|
|
||||||
def1->finish();
|
def1->finish();
|
||||||
delete def1;
|
delete def1;
|
||||||
@ -69,6 +70,7 @@ void run(char const* filename)
|
|||||||
{
|
{
|
||||||
inf2->write(buf, len);
|
inf2->write(buf, len);
|
||||||
}
|
}
|
||||||
|
fclose(in2);
|
||||||
|
|
||||||
inf2->finish();
|
inf2->finish();
|
||||||
delete inf2;
|
delete inf2;
|
||||||
|
Loading…
Reference in New Issue
Block a user