Commit 42cd7a98adee5462efe5fb3a4203b78d86322a86
1 parent
dc1ae845
In QPDF::recoverStreamLength mark unreachable code
Showing
1 changed file
with
1 additions
and
0 deletions
libqpdf/QPDF.cc
| ... | ... | @@ -1667,6 +1667,7 @@ QPDF::recoverStreamLength( |
| 1667 | 1667 | if (this_obj_offset && (this_og == og)) { |
| 1668 | 1668 | // Well, we found endstream\nendobj within the space allowed for this object, so we're |
| 1669 | 1669 | // probably in good shape. |
| 1670 | + throw std::logic_error("unreachable success"); | |
| 1670 | 1671 | } else { |
| 1671 | 1672 | QTC::TC("qpdf", "QPDF found wrong endstream in recovery"); |
| 1672 | 1673 | } | ... | ... |