Просмотр исходного кода

PDF.js version 1.5.266 - See mozilla/pdf.js@b86610ffdbc7bcdab5456d1537b29800cce703c6

Pdf Bot 9 лет назад
Родитель
Сommit
604cf2f40e
5 измененных файлов с 18 добавлено и 8 удалено
  1. 1 1
      bower.json
  2. 7 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 7 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.5.264",
+  "version": "1.5.266",
   "main": [
     "build/pdf.js",
     "build/pdf.worker.js"

+ 7 - 2
build/pdf.combined.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfCombined = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.5.264';
-var pdfjsBuild = 'db46829';
+var pdfjsVersion = '1.5.266';
+var pdfjsBuild = 'b86610f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -5374,6 +5374,11 @@ var CFFDict = (function CFFDictClosure() {
       // remove the array wrapping these types of values
       if (type === 'num' || type === 'sid' || type === 'offset') {
         value = value[0];
+        // Ignore invalid values (fixes bug 1068432).
+        if (isNaN(value)) {
+          warn('Invalid CFFDict value: ' + value + ', for key: ' + key + '.');
+          return true;
+        }
       }
       this.values[key] = value;
       return true;

+ 2 - 2
build/pdf.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdf = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.5.264';
-var pdfjsBuild = 'db46829';
+var pdfjsVersion = '1.5.266';
+var pdfjsBuild = 'b86610f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?

+ 7 - 2
build/pdf.worker.js

@@ -28,8 +28,8 @@ factory((root.pdfjsDistBuildPdfWorker = {}));
   // Use strict in our context only - users might not want it
   'use strict';
 
-var pdfjsVersion = '1.5.264';
-var pdfjsBuild = 'db46829';
+var pdfjsVersion = '1.5.266';
+var pdfjsBuild = 'b86610f';
 
   var pdfjsFilePath =
     typeof document !== 'undefined' && document.currentScript ?
@@ -5374,6 +5374,11 @@ var CFFDict = (function CFFDictClosure() {
       // remove the array wrapping these types of values
       if (type === 'num' || type === 'sid' || type === 'offset') {
         value = value[0];
+        // Ignore invalid values (fixes bug 1068432).
+        if (isNaN(value)) {
+          warn('Invalid CFFDict value: ' + value + ', for key: ' + key + '.');
+          return true;
+        }
       }
       this.values[key] = value;
       return true;

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.5.264",
+  "version": "1.5.266",
   "main": "build/pdf.js",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [