[Pkg-javascript-commits] [pdf.js] 125/139: CCITTFaxStream: fix regression when EncodedByteAlign is true and EndOfLine is false

David Prévot taffit at moszumanska.debian.org
Fri Jan 9 21:18:35 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 b835ef425e8035c282fc4465ad71f282502a0698
Author: Tim van der Meij <timvandermeij at gmail.com>
Date:   Mon Dec 29 22:28:03 2014 +0100

    CCITTFaxStream: fix regression when EncodedByteAlign is true and EndOfLine is false
---
 src/core/stream.js           | 2 +-
 test/pdfs/issue5592.pdf.link | 1 +
 test/test_manifest.json      | 7 +++++++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/core/stream.js b/src/core/stream.js
index 4145b41..e08114a 100644
--- a/src/core/stream.js
+++ b/src/core/stream.js
@@ -2040,7 +2040,7 @@ var CCITTFaxStream = (function CCITTFaxStreamClosure() {
 
       if (!this.eoblock && this.row === this.rows - 1) {
         this.eof = true;
-      } else if (this.eoline || !this.byteAlign) {
+      } else {
         code1 = this.lookBits(12);
         if (this.eoline) {
           while (code1 !== EOF && code1 !== 1) {
diff --git a/test/pdfs/issue5592.pdf.link b/test/pdfs/issue5592.pdf.link
new file mode 100644
index 0000000..19ffbb4
--- /dev/null
+++ b/test/pdfs/issue5592.pdf.link
@@ -0,0 +1 @@
+http://www.pdf-archive.com/2014/12/29/4111112/4111112.pdf
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 8d63462..7b919da 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1926,6 +1926,13 @@
        "link": true,
        "type": "eq"
     },
+    {  "id": "issue5592",
+       "file": "pdfs/issue5592.pdf",
+       "md5": "a0750f95afa80c880f7966df7062616c",
+       "rounds": 1,
+       "link": true,
+       "type": "eq"
+    },
     {  "id": "issue5549.pdf",
        "file": "pdfs/issue5549.pdf",
        "md5": "6c36df6ebc583c9e18aad0ad00d257b8",

-- 
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