aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-19 03:26:19 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-20 01:48:27 +0200
commit42d396f1dd8d38294e45b14021cd72c13850a53b (patch)
treec4f0eed9ce9d048a7db7322050fd5b73d67a8d3c /libqpdf/QPDF.cc
parentd9dd99eca32e44788165ce169f1e59498ad1c16e (diff)
downloadqpdf-42d396f1dd8d38294e45b14021cd72c13850a53b.tar.zst
Handle invalid name tokens symmetrically for PDF < 1.2 (fixes #332)
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r--libqpdf/QPDF.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index 5a03facc..23545d1a 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -374,10 +374,6 @@ QPDF::parse(char const* password)
// version 1.2 for /FlateDecode
this->m->pdf_version = "1.2";
}
- if (atof(this->m->pdf_version.c_str()) < 1.2)
- {
- this->m->tokenizer.allowPoundAnywhereInName();
- }
// PDF spec says %%EOF must be found within the last 1024 bytes of
// the file. We add an extra 30 characters to leave room for the