diff options
author | Tom Sepez <tsepez@chromium.org> | 2014-10-13 13:16:32 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2014-10-13 13:16:32 -0700 |
commit | 9dd088033537c071725b9a61fd5b519d65ea9f13 (patch) | |
tree | d1e5227cb907ec7b043b615b0118f18852b59740 /core/src/fpdfapi/fpdf_font/font_int.h | |
parent | 6cf012af4954807255ce7cdb5b92a20f74d34e6d (diff) | |
download | pdfium-9dd088033537c071725b9a61fd5b519d65ea9f13.tar.xz |
Fix off-by-one in sizing of m_EmbeddedToUnicodes.
BUG=421196
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/656463006
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/font_int.h')
-rw-r--r-- | core/src/fpdfapi/fpdf_font/font_int.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fpdfapi/fpdf_font/font_int.h b/core/src/fpdfapi/fpdf_font/font_int.h index b151d78b51..3ce9664ceb 100644 --- a/core/src/fpdfapi/fpdf_font/font_int.h +++ b/core/src/fpdfapi/fpdf_font/font_int.h @@ -39,11 +39,11 @@ public: struct { const struct FXCMAP_CMap* m_pMapList; int m_Count; - } m_EmbeddedCharsets[5]; + } m_EmbeddedCharsets[NUMBER_OF_CIDSETS]; struct { const FX_WORD* m_pMap; int m_Count; - } m_EmbeddedToUnicodes[5]; + } m_EmbeddedToUnicodes[NUMBER_OF_CIDSETS]; FX_LPBYTE m_pContrastRamps; }; struct _CMap_CodeRange { |