Browse Source

PDF.js version 1.0.306

Yury Delendik 11 years ago
parent
commit
8d07a82990
5 changed files with 14 additions and 8 deletions
  1. 1 1
      bower.json
  2. 5 2
      build/pdf.combined.js
  3. 2 2
      build/pdf.js
  4. 5 2
      build/pdf.worker.js
  5. 1 1
      package.json

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.304",
+  "version": "1.0.306",
   "keywords": [
     "Mozilla",
     "pdf",

+ 5 - 2
build/pdf.combined.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.304';
-PDFJS.build = '806aa36';
+PDFJS.version = '1.0.306';
+PDFJS.build = '2da1942';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -38989,6 +38989,9 @@ var Parser = (function ParserClosure() {
         while (stream.pos < stream.end) {
           var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
           var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
+          if (scanLength <= 0) {
+            break;
+          }
           found = false;
           for (i = 0, j = 0; i < scanLength; i++) {
             var b = scanBytes[i];

+ 2 - 2
build/pdf.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.304';
-PDFJS.build = '806aa36';
+PDFJS.version = '1.0.306';
+PDFJS.build = '2da1942';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it

+ 5 - 2
build/pdf.worker.js

@@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
   (typeof window !== 'undefined' ? window : this).PDFJS = {};
 }
 
-PDFJS.version = '1.0.304';
-PDFJS.build = '806aa36';
+PDFJS.version = '1.0.306';
+PDFJS.build = '2da1942';
 
 (function pdfjsWrapper() {
   // Use strict in our context only - users might not want it
@@ -34482,6 +34482,9 @@ var Parser = (function ParserClosure() {
         while (stream.pos < stream.end) {
           var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
           var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
+          if (scanLength <= 0) {
+            break;
+          }
           found = false;
           for (i = 0, j = 0; i < scanLength; i++) {
             var b = scanBytes[i];

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pdfjs-dist",
-  "version": "1.0.304",
+  "version": "1.0.306",
   "description": "Generic build of Mozilla's PDF.js library.",
   "keywords": [
     "Mozilla",