Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(656)

Side by Side Diff: core/src/fpdfapi/fpdf_font/font_int.h

Issue 656463006: Fix off-by-one in sizing of m_EmbeddedToUnicodes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: g_Charset explicitly sized. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 typedef void* FXFT_Library; 7 typedef void* FXFT_Library;
8 class CPDF_CMapManager : public CFX_Object 8 class CPDF_CMapManager : public CFX_Object
9 { 9 {
10 public: 10 public:
(...skipping 21 matching lines...) Expand all
32 ~CPDF_FontGlobals(); 32 ~CPDF_FontGlobals();
33 void ClearAll(); 33 void ClearAll();
34 void Clear(void* key); 34 void Clear(void* key);
35 CPDF_Font* Find(void* key, int index); 35 CPDF_Font* Find(void* key, int index);
36 void Set(void* key, int index, CPDF_Font* pFo nt); 36 void Set(void* key, int index, CPDF_Font* pFo nt);
37 CFX_MapPtrToPtr m_pStockMap; 37 CFX_MapPtrToPtr m_pStockMap;
38 CPDF_CMapManager m_CMapManager; 38 CPDF_CMapManager m_CMapManager;
39 struct { 39 struct {
40 const struct FXCMAP_CMap* m_pMapList; 40 const struct FXCMAP_CMap* m_pMapList;
41 int m_Count; 41 int m_Count;
42 } m_EmbeddedCharsets[5]; 42 } m_EmbeddedCharsets[NUMBER_OF_CIDSETS];
43 struct { 43 struct {
44 const FX_WORD* m_pMap; 44 const FX_WORD* m_pMap;
45 int m_Count; 45 int m_Count;
46 } m_EmbeddedToUnicodes[5]; 46 } m_EmbeddedToUnicodes[NUMBER_OF_CIDSETS];
47 FX_LPBYTE m_pContrastRamps; 47 FX_LPBYTE m_pContrastRamps;
48 }; 48 };
49 struct _CMap_CodeRange { 49 struct _CMap_CodeRange {
50 int m_CharSize; 50 int m_CharSize;
51 FX_BYTE m_Lower[4]; 51 FX_BYTE m_Lower[4];
52 FX_BYTE m_Upper[4]; 52 FX_BYTE m_Upper[4];
53 }; 53 };
54 class CPDF_CMapParser : public CFX_Object 54 class CPDF_CMapParser : public CFX_Object
55 { 55 {
56 public: 56 public:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 CFX_CMapDWordToDWord m_Map; 192 CFX_CMapDWordToDWord m_Map;
193 CPDF_CID2UnicodeMap* m_pBaseMap; 193 CPDF_CID2UnicodeMap* m_pBaseMap;
194 CFX_WideTextBuf m_MultiCharBuf; 194 CFX_WideTextBuf m_MultiCharBuf;
195 }; 195 };
196 class CPDF_FontCharMap : public CFX_CharMap, public CFX_Object 196 class CPDF_FontCharMap : public CFX_CharMap, public CFX_Object
197 { 197 {
198 public: 198 public:
199 CPDF_FontCharMap(CPDF_Font* pFont); 199 CPDF_FontCharMap(CPDF_Font* pFont);
200 CPDF_Font* m_pFont; 200 CPDF_Font* m_pFont;
201 }; 201 };
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698