Let Lexer.getNumber treat a single minus sign as zero (bug 1753983)

This appears to be consistent with the behaviour in both Adobe Reader and PDFium (in Google Chrome); this is essentially the same approach as used for a single decimal point in PR 9827.
This commit is contained in:
Jonas Jenwald 2022-02-07 16:14:45 +01:00
parent acc758c40c
commit 64f3dbeb48
5 changed files with 27 additions and 12 deletions

View file

@ -4561,7 +4561,7 @@ class EvaluatorPreprocessor {
}
static get MAX_INVALID_PATH_OPS() {
return shadow(this, "MAX_INVALID_PATH_OPS", 20);
return shadow(this, "MAX_INVALID_PATH_OPS", 10);
}
constructor(stream, xref, stateManager = new StateManager()) {