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

Issue 1465423002: Fix a crasher in LoadFont() when non-standard font is used in XFA files (Closed)

Created:
5 years ago by jun_fang
Modified:
5 years ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

Fix a crasher in LoadFont() when non-standard font is used in XFA files This CL includes the following changes: 1. Add return value for InitFont(). It can indicate a failure in the initialization of non-standard fonts. 2. Change NULL to nullptr. 3. Rewrite several pointer checking. BUG=pdfium:279, pdfium:286 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/d6c62cfd71e5bc6b22e20f20384b748664e1aff4

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -42 lines) Patch
M xfa/src/fgas/src/font/fx_gefont.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/src/fgas/src/font/fx_gefont.cpp View 1 5 chunks +32 lines, -41 lines 0 comments Download

Messages

Total messages: 8 (5 generated)
Tom Sepez
lgtm https://codereview.chromium.org/1465423002/diff/1/xfa/src/fgas/src/font/fx_gefont.cpp File xfa/src/fgas/src/font/fx_gefont.cpp (right): https://codereview.chromium.org/1465423002/diff/1/xfa/src/fgas/src/font/fx_gefont.cpp#newcode308 xfa/src/fgas/src/font/fx_gefont.cpp:308: FX_BOOL bRet = (m_pFont = pExtFont) != nullptr; ...
5 years ago (2015-11-24 17:09:18 UTC) #4
jun_fang
https://codereview.chromium.org/1465423002/diff/1/xfa/src/fgas/src/font/fx_gefont.cpp File xfa/src/fgas/src/font/fx_gefont.cpp (right): https://codereview.chromium.org/1465423002/diff/1/xfa/src/fgas/src/font/fx_gefont.cpp#newcode308 xfa/src/fgas/src/font/fx_gefont.cpp:308: FX_BOOL bRet = (m_pFont = pExtFont) != nullptr; On ...
5 years ago (2015-11-25 06:49:58 UTC) #6
jun_fang
5 years ago (2015-11-27 08:27:41 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
d6c62cfd71e5bc6b22e20f20384b748664e1aff4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698