]> git.parisson.com Git - pdf.js.git/commitdiff
cleanup
authorsbarman <sbarman@L3CWZ5T.(none)>
Mon, 11 Jul 2011 23:44:58 +0000 (16:44 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Mon, 11 Jul 2011 23:44:58 +0000 (16:44 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index a96ea8742530bc8c4d59a4f5930ffa50c63612d5..a4c10fef74cb1544721cdfd3553b4ac40c4f83d1 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -5370,6 +5370,9 @@ var PDFFunction = (function() {
       var c1 = dict.get('C1') || [1];
       var n = dict.get('N');
       
+      if (!IsArray(c0) || !IsArray(c1))
+        error('Illegal dictionary for interpolated function');
+
       var length = c0.length;
       var diff = [];
       for (var i = 0; i < length; ++i)