[Pkg-javascript-commits] [pdf.js] 15/139: fix "JPX Out of Packets" Error (issues 4358, 4659, 4814)

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 141ecfa61ff1d92e5b27d2e2eff451179c36ff9e
Author: fkaelberer <l_l at gmx-topmail.de>
Date:   Mon Oct 20 23:53:40 2014 +0200

    fix "JPX Out of Packets" Error (issues 4358, 4659, 4814)
---
 src/core/jpx.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/core/jpx.js b/src/core/jpx.js
index b316102..3c6a210 100644
--- a/src/core/jpx.js
+++ b/src/core/jpx.js
@@ -540,6 +540,11 @@ var JpxImage = (function JpxImageClosure() {
         codeblock.precinctNumber = precinctNumber;
         codeblock.subbandType = subband.type;
         codeblock.Lblock = 3;
+
+        if (codeblock.tbx1_ <= codeblock.tbx0_ ||
+            codeblock.tby1_ <= codeblock.tby0_) {
+          continue;
+        }
         codeblocks.push(codeblock);
         // building precinct for the sub-band
         var precinct = precincts[precinctNumber];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list