Commit 7e5e1a7158a440c0e0d3156d73220759f254d8f1
1 parent
cffb6fd6
Fix offset in error message
Showing
1 changed file
with
2 additions
and
1 deletions
libqpdf/QPDF.cc
| @@ -1692,7 +1692,8 @@ QPDF::readObjectAtOffset(bool try_recovery, | @@ -1692,7 +1692,8 @@ QPDF::readObjectAtOffset(bool try_recovery, | ||
| 1692 | else | 1692 | else |
| 1693 | { | 1693 | { |
| 1694 | throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(), | 1694 | throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(), |
| 1695 | - this->m->last_object_description, offset, | 1695 | + this->m->last_object_description, |
| 1696 | + this->m->file->tell(), | ||
| 1696 | "EOF after endobj"); | 1697 | "EOF after endobj"); |
| 1697 | } | 1698 | } |
| 1698 | } | 1699 | } |