diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-30 19:52:51 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 19:52:51 +0000 |
commit | 0be087619a60b8bc6e2ed2e14c54f67aa8e963e4 (patch) | |
tree | f45e0823b466edb2966528ca09869265c6972539 /core/fpdfapi/cmaps/GB1/cmaps_gb1.h | |
parent | c25394f5d8622fbb6203e73843f84ec1739bfa0b (diff) | |
download | pdfium-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/GB1/cmaps_gb1.h')
-rw-r--r-- | core/fpdfapi/cmaps/GB1/cmaps_gb1.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fpdfapi/cmaps/GB1/cmaps_gb1.h b/core/fpdfapi/cmaps/GB1/cmaps_gb1.h index 0b8a3505f3..a475af1568 100644 --- a/core/fpdfapi/cmaps/GB1/cmaps_gb1.h +++ b/core/fpdfapi/cmaps/GB1/cmaps_gb1.h @@ -9,6 +9,8 @@ #include <stdint.h> +#include "core/fpdfapi/cmaps/cmap_int.h" + extern const uint16_t g_FXCMAP_GB_EUC_H_0[]; extern const uint16_t g_FXCMAP_GB_EUC_V_0[]; extern const uint16_t g_FXCMAP_GBpc_EUC_H_0[]; @@ -18,7 +20,7 @@ extern const uint16_t g_FXCMAP_GBK_EUC_V_2[]; extern const uint16_t g_FXCMAP_GBKp_EUC_H_2[]; extern const uint16_t g_FXCMAP_GBKp_EUC_V_2[]; extern const uint16_t g_FXCMAP_GBK2K_H_5[]; -extern const uint16_t g_FXCMAP_GBK2K_H_5_DWord[]; +extern const FXCMAP_DWordCIDMap g_FXCMAP_GBK2K_H_5_DWord[]; extern const uint16_t g_FXCMAP_GBK2K_V_5[]; extern const uint16_t g_FXCMAP_UniGB_UCS2_H_4[]; extern const uint16_t g_FXCMAP_UniGB_UCS2_V_4[]; |