[Pkg-javascript-commits] [pdf.js] 03/119: Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)

David Prévot taffit at moszumanska.debian.org
Wed May 13 21:27: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 0a3341dadcd808edfdb168e4e98733c899437787
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Fri Feb 6 21:58:01 2015 +0100

    Don't map glyphs to Unicode "Dotted circle" combining mark (bug 1108301)
    
    It seems that `0x25CC` is another bad spot for charCodes.
    Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1108301.
---
 src/core/fonts.js        |   1 +
 test/pdfs/.gitignore     |   1 +
 test/pdfs/bug1108301.pdf | Bin 0 -> 48421 bytes
 test/test_manifest.json  |   7 +++++++
 4 files changed, 9 insertions(+)

diff --git a/src/core/fonts.js b/src/core/fonts.js
index 1f904cd..dd9b271 100644
--- a/src/core/fonts.js
+++ b/src/core/fonts.js
@@ -2700,6 +2700,7 @@ var Font = (function FontClosure() {
            fontCharCode === 0x7F || // Control char
            fontCharCode === 0xAD || // Soft hyphen
            fontCharCode === 0xA0 || // Non breaking space
+           fontCharCode === 0x25CC || // Dotted circle (combining mark)
            (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
            // Prevent drawing characters in the specials unicode block.
            (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore
index 03c7133..1289657 100644
--- a/test/pdfs/.gitignore
+++ b/test/pdfs/.gitignore
@@ -30,6 +30,7 @@
 !bug847420.pdf
 !bug860632.pdf
 !bug894572.pdf
+!bug1108301.pdf
 !pdfjsbad1586.pdf
 !freeculture.pdf
 !pdfkit_compressed.pdf
diff --git a/test/pdfs/bug1108301.pdf b/test/pdfs/bug1108301.pdf
new file mode 100644
index 0000000..70bc58f
Binary files /dev/null and b/test/pdfs/bug1108301.pdf differ
diff --git a/test/test_manifest.json b/test/test_manifest.json
index 9332d52..0eb2095 100644
--- a/test/test_manifest.json
+++ b/test/test_manifest.json
@@ -1113,6 +1113,13 @@
        "link": false,
        "type": "eq"
     },
+    {  "id": "bug1108301",
+       "file": "pdfs/bug1108301.pdf",
+       "md5": "cc94cc7e5f5e281dfa7e21020dd90cc7",
+       "rounds": 1,
+       "link": false,
+       "type": "eq"
+    },
     {  "id": "issue1466",
       "file": "pdfs/issue1466.pdf",
       "md5": "8a8877432e5bb10cfd50d60488d947bb",

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