From 0be087619a60b8bc6e2ed2e14c54f67aa8e963e4 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 30 Nov 2017 19:52:51 +0000 Subject: 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 Commit-Queue: Lei Zhang --- core/fpdfapi/cmaps/GB1/cmaps_gb1.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/fpdfapi/cmaps/GB1/cmaps_gb1.h') 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 +#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[]; -- cgit v1.2.3