aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-11 01:37:05 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-11 03:30:32 +0200
commit30f109e244f365111d5219903f13d64cf1a95054 (patch)
tree0bb3bca1f13bc8a2e3d0afa57bd96f3f06cc084c /include
parent98a843c2a2e09df6457c023a8da52faa0d977a12 (diff)
downloadqpdf-30f109e244f365111d5219903f13d64cf1a95054.tar.zst
Read xref table without PCRE
Also accept more errors than before.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index 92a66a34..004e4b9c 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -652,6 +652,10 @@ class QPDF
void setTrailer(QPDFObjectHandle obj);
void read_xref(qpdf_offset_t offset);
void reconstruct_xref(QPDFExc& e);
+ bool parse_xrefFirst(std::string const& line,
+ int& obj, int& num, int& bytes);
+ bool parse_xrefEntry(std::string const& line,
+ qpdf_offset_t& f1, int& f2, char& type);
qpdf_offset_t read_xrefTable(qpdf_offset_t offset);
qpdf_offset_t read_xrefStream(qpdf_offset_t offset);
qpdf_offset_t processXRefStream(