1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Prevent failures in the Annotation code if the Rect array contains indirect objects (issue 7115)

Note that in the PDF files provided by the reporter, this issue was limited to `Rect` arrays in AcroForm entries (which we currently don't support).
However, since a bad PDF generator could create this problem in *any* kind of annotation, the reduced test-case included here uses a simple LinkAnnotation instead.

Fixes 7115.
This commit is contained in:
Jonas Jenwald 2016-03-26 14:41:15 +01:00
parent df7afcf004
commit 13d7a5070e
4 changed files with 108 additions and 1 deletions

View file

@ -171,7 +171,7 @@ var Annotation = (function AnnotationClosure() {
var dict = params.dict;
this.setFlags(dict.get('F'));
this.setRectangle(dict.get('Rect'));
this.setRectangle(dict.getArray('Rect'));
this.setColor(dict.get('C'));
this.setBorderStyle(dict);
this.appearance = getDefaultAppearance(dict);