mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 17:45:09 +00:00
Fix gratuitous calls to bad_subsections in Xref_table::subsections
This commit is contained in:
parent
c648b9a018
commit
1eb5df92f4
@ -493,7 +493,7 @@ Xref_table::subsections(std::string& line)
|
|||||||
auto offset = std::get<2>(sub);
|
auto offset = std::get<2>(sub);
|
||||||
file->seek(offset + 20 * toO(count) - 1, SEEK_SET);
|
file->seek(offset + 20 * toO(count) - 1, SEEK_SET);
|
||||||
file->read(line.data(), 1);
|
file->read(line.data(), 1);
|
||||||
if (!(line[0] == '\n' || line[0] == '\n')) {
|
if (!(line[0] == '\n' || line[0] == '\r')) {
|
||||||
return bad_subsections(line, recovery_offset);
|
return bad_subsections(line, recovery_offset);
|
||||||
}
|
}
|
||||||
qpdf_offset_t pos = file->tell();
|
qpdf_offset_t pos = file->tell();
|
||||||
|
Loading…
Reference in New Issue
Block a user