summaryrefslogtreecommitdiff
path: root/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-30 19:52:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-30 19:52:51 +0000
commit0be087619a60b8bc6e2ed2e14c54f67aa8e963e4 (patch)
treef45e0823b466edb2966528ca09869265c6972539 /core/fpdfapi/cmaps/CNS1/cmaps_cns1.h
parentc25394f5d8622fbb6203e73843f84ec1739bfa0b (diff)
downloadpdfium-0be087619a60b8bc6e2ed2e14c54f67aa8e963e4.tar.xz
Fix GBK2K-H CMap usage.
The data used is clearly a CID Range, but the code was interpreting it as single CID values. Change-Id: Ibb68f5ca2150d74b007a64ef5daa412fd542cecd Reviewed-on: https://pdfium-review.googlesource.com/17650 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/cmaps/CNS1/cmaps_cns1.h')
-rw-r--r--core/fpdfapi/cmaps/CNS1/cmaps_cns1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h b/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h
index a87a47fca3..627feb7bed 100644
--- a/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h
+++ b/core/fpdfapi/cmaps/CNS1/cmaps_cns1.h
@@ -9,6 +9,8 @@
#include <stdint.h>
+#include "core/fpdfapi/cmaps/cmap_int.h"
+
extern const uint16_t g_FXCMAP_B5pc_H_0[];
extern const uint16_t g_FXCMAP_B5pc_V_0[];
extern const uint16_t g_FXCMAP_HKscs_B5_H_5[];
@@ -18,9 +20,9 @@ extern const uint16_t g_FXCMAP_ETen_B5_V_0[];
extern const uint16_t g_FXCMAP_ETenms_B5_H_0[];
extern const uint16_t g_FXCMAP_ETenms_B5_V_0[];
extern const uint16_t g_FXCMAP_CNS_EUC_H_0[];
-extern const uint16_t g_FXCMAP_CNS_EUC_H_0_DWord[];
+extern const FXCMAP_DWordCIDMap g_FXCMAP_CNS_EUC_H_0_DWord[];
extern const uint16_t g_FXCMAP_CNS_EUC_V_0[];
-extern const uint16_t g_FXCMAP_CNS_EUC_V_0_DWord[];
+extern const FXCMAP_DWordCIDMap g_FXCMAP_CNS_EUC_V_0_DWord[];
extern const uint16_t g_FXCMAP_UniCNS_UCS2_H_3[];
extern const uint16_t g_FXCMAP_UniCNS_UCS2_V_3[];
extern const uint16_t g_FXCMAP_UniCNS_UTF16_H_0[];