2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

In QPDF::recoverStreamLength mark unreachable code

This commit is contained in:
m-holger 2024-08-20 12:52:33 +01:00
parent dc1ae8457d
commit 42cd7a98ad

View File

@ -1667,6 +1667,7 @@ QPDF::recoverStreamLength(
if (this_obj_offset && (this_og == og)) {
// Well, we found endstream\nendobj within the space allowed for this object, so we're
// probably in good shape.
throw std::logic_error("unreachable success");
} else {
QTC::TC("qpdf", "QPDF found wrong endstream in recovery");
}