1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 07:37:57 +02:00

XFA - Don't fail xfa loading because of a JS subexpression in SOM expressions

- Fix for one pdf in bug 1717668 (PDFIUM-292-0.pdf).
This commit is contained in:
Calixte Denizet 2021-07-07 10:32:53 +02:00
parent a0aff125dd
commit 0486d24e36
5 changed files with 40 additions and 6 deletions

View file

@ -545,6 +545,12 @@ class Binder {
// to have something to match with the given expression.
// See http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.364.2157&rep=rep1&type=pdf#page=199
match = createDataNode(this.data, dataNode, ref);
if (!match) {
// For example if the node contains a .(...) then it isn't
// findable.
// TODO: remove this when .(...) is implemented.
continue;
}
if (this._isConsumeData()) {
match[$consumed] = true;
}