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

Side by Side Diff: core/fpdfapi/fpdf_page/pageint.h

Issue 1998583002: Fix leak in CPDF_StreamContentParser::AddTextObject(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: CollectionSize Created 4 years, 7 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
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 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 8 #define CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 CPDF_PageObjectHolder* m_pObjectHolder; 243 CPDF_PageObjectHolder* m_pObjectHolder;
244 int m_Level; 244 int m_Level;
245 CFX_Matrix m_mtContentToUser; 245 CFX_Matrix m_mtContentToUser;
246 CFX_FloatRect m_BBox; 246 CFX_FloatRect m_BBox;
247 ContentParam m_ParamBuf[PARAM_BUF_SIZE]; 247 ContentParam m_ParamBuf[PARAM_BUF_SIZE];
248 uint32_t m_ParamStartPos; 248 uint32_t m_ParamStartPos;
249 uint32_t m_ParamCount; 249 uint32_t m_ParamCount;
250 CPDF_StreamParser* m_pSyntax; 250 CPDF_StreamParser* m_pSyntax;
251 std::unique_ptr<CPDF_AllStates> m_pCurStates; 251 std::unique_ptr<CPDF_AllStates> m_pCurStates;
252 CPDF_ContentMark m_CurContentMark; 252 CPDF_ContentMark m_CurContentMark;
253 CFX_ArrayTemplate<CPDF_TextObject*> m_ClipTextList; 253 std::vector<std::unique_ptr<CPDF_TextObject>> m_ClipTextList;
254 CPDF_TextObject* m_pLastTextObject; 254 CPDF_TextObject* m_pLastTextObject;
255 FX_FLOAT m_DefFontSize; 255 FX_FLOAT m_DefFontSize;
256 FX_PATHPOINT* m_pPathPoints; 256 FX_PATHPOINT* m_pPathPoints;
257 int m_PathPointCount; 257 int m_PathPointCount;
258 int m_PathAllocSize; 258 int m_PathAllocSize;
259 FX_FLOAT m_PathStartX; 259 FX_FLOAT m_PathStartX;
260 FX_FLOAT m_PathStartY; 260 FX_FLOAT m_PathStartY;
261 FX_FLOAT m_PathCurrentX; 261 FX_FLOAT m_PathCurrentX;
262 FX_FLOAT m_PathCurrentY; 262 FX_FLOAT m_PathCurrentY;
263 int m_PathClipType; 263 uint8_t m_PathClipType;
264 CFX_ByteString m_LastImageName; 264 CFX_ByteString m_LastImageName;
265 CPDF_Image* m_pLastImage; 265 CPDF_Image* m_pLastImage;
266 CFX_BinaryBuf m_LastImageDict; 266 CFX_BinaryBuf m_LastImageDict;
267 CFX_BinaryBuf m_LastImageData; 267 CFX_BinaryBuf m_LastImageData;
268 CPDF_Dictionary* m_pLastImageDict; 268 CPDF_Dictionary* m_pLastImageDict;
269 CPDF_Dictionary* m_pLastCloneImageDict; 269 CPDF_Dictionary* m_pLastCloneImageDict;
270 FX_BOOL m_bReleaseLastDict; 270 FX_BOOL m_bReleaseLastDict;
271 FX_BOOL m_bSameLastDict; 271 FX_BOOL m_bSameLastDict;
272 FX_BOOL m_bColored; 272 FX_BOOL m_bColored;
273 FX_FLOAT m_Type3Data[6]; 273 FX_FLOAT m_Type3Data[6];
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 }; 523 };
524 524
525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr); 525 CFX_ByteStringC PDF_FindKeyAbbreviationForTesting(const CFX_ByteStringC& abbr);
526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting( 526 CFX_ByteStringC PDF_FindValueAbbreviationForTesting(
527 const CFX_ByteStringC& abbr); 527 const CFX_ByteStringC& abbr);
528 528
529 void PDF_ReplaceAbbr(CPDF_Object* pObj); 529 void PDF_ReplaceAbbr(CPDF_Object* pObj);
530 bool IsPathOperator(const uint8_t* buf, size_t len); 530 bool IsPathOperator(const uint8_t* buf, size_t len);
531 531
532 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_ 532 #endif // CORE_FPDFAPI_FPDF_PAGE_PAGEINT_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/include/cpdf_clippath.h ('k') | core/fpdfapi/fpdf_render/fpdf_render_text.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698