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

Issue 497863002: Bounds check in CFX_Font::LoadGlyphPath(). (Closed)

Created:
6 years, 4 months ago by Tom Sepez
Modified:
6 years, 4 months ago
Reviewers:
jun_fang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Bounds check in CFX_Font::LoadGlyphPath(). Add a check to CFX_Font::LoadGlyphPath() similar to the one that exists in CFX_FaceCache::RenderGlyph(). Also replace some scattered magic numbers in the file with constants, and make arrays not used outside this file be statically scoped. BUG=406144 R=jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/02132dc

Patch Set 1 #

Patch Set 2 : Tabify. #

Patch Set 3 : untabify #

Patch Set 4 : Replace magic numbers with constants. #

Patch Set 5 : Make arrays statically scoped. #

Total comments: 12

Patch Set 6 : use const size_t in place of #define. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M core/src/fxge/ge/fx_ge_text.cpp View 1 2 3 4 5 7 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Tom Sepez
Jun, please review.
6 years, 4 months ago (2014-08-22 22:07:56 UTC) #1
jun_fang
Hi Tom, please see my comments. https://codereview.chromium.org/497863002/diff/80001/core/src/fxge/ge/fx_ge_text.cpp File core/src/fxge/ge/fx_ge_text.cpp (right): https://codereview.chromium.org/497863002/diff/80001/core/src/fxge/ge/fx_ge_text.cpp#newcode1229 core/src/fxge/ge/fx_ge_text.cpp:1229: #define ANGLESKEW_ARRAY_SIZE 30 ...
6 years, 4 months ago (2014-08-22 22:42:13 UTC) #2
Tom Sepez
I changed the #defines to const size_t's. Let me know if you care about the ...
6 years, 4 months ago (2014-08-22 23:02:33 UTC) #3
jun_fang
On 2014/08/22 23:02:33, Tom Sepez wrote: > I changed the #defines to const size_t's. Let ...
6 years, 4 months ago (2014-08-22 23:05:57 UTC) #4
Tom Sepez
6 years, 4 months ago (2014-08-22 23:08:01 UTC) #5
Message was sent while issue was closed.
Committed patchset #6 manually as 02132dc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698