From 604cf2f40efc5687f10ef21b1c5d18fd52656ed9 Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 24 May 2016 20:15:45 +0100 Subject: [PATCH] PDF.js version 1.5.266 - See mozilla/pdf.js@b86610ffdbc7bcdab5456d1537b29800cce703c6 --- bower.json | 2 +- build/pdf.combined.js | 9 +++++++-- build/pdf.js | 4 ++-- build/pdf.worker.js | 9 +++++++-- package.json | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/bower.json b/bower.json index 7ad21ca7b..5be10099f 100644 --- a/bower.json +++ b/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" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index ebb41d6a2..daeb178d0 100644 --- a/build/pdf.combined.js +++ b/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; diff --git a/build/pdf.js b/build/pdf.js index c2e4446c6..2aedb57e1 100644 --- a/build/pdf.js +++ b/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 ? diff --git a/build/pdf.worker.js b/build/pdf.worker.js index 86d5acf27..119ca19c0 100644 --- a/build/pdf.worker.js +++ b/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; diff --git a/package.json b/package.json index 307c9b31d..46d2b5221 100644 --- a/package.json +++ b/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": [