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

Issue 9447013: [OTS] Allow empty Private DICT inside CFF data (Closed)

Created:
8 years, 10 months ago by bashi
Modified:
8 years, 10 months ago
Reviewers:
Yusuke Sato, agl
CC:
chromium-reviews
Visibility:
Public.

Description

[OTS] Allow empty Private DICT inside CFF data BUG=chromium:112414 TEST=ran test_{un,}malicious_fonts.sh

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/cff.cc View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
bashi
Hi, I think it is ok to allow private_offset == table_length. (following checks reject the ...
8 years, 10 months ago (2012-02-23 10:12:40 UTC) #1
Yusuke Sato
lgtm On 2012/02/23 10:12:40, bashik wrote: > Hi, > > I think it is ok ...
8 years, 10 months ago (2012-02-23 13:32:54 UTC) #2
agl
lgtm http://codereview.chromium.org/9447013/diff/1/src/cff.cc File src/cff.cc (right): http://codereview.chromium.org/9447013/diff/1/src/cff.cc#newcode770 src/cff.cc:770: // does not overflow since table_length < 1GB ...
8 years, 10 months ago (2012-02-23 15:30:55 UTC) #3
bashi
8 years, 10 months ago (2012-02-23 23:36:34 UTC) #4
Thank you for review!

http://codereview.chromium.org/9447013/diff/1/src/cff.cc
File src/cff.cc (right):

http://codereview.chromium.org/9447013/diff/1/src/cff.cc#newcode770
src/cff.cc:770: // does not overflow since table_length < 1GB
On 2012/02/23 15:30:55, agl wrote:
> Note: this comment is nonsensical. It doesn't matter what value table_length
> has, in order to avoid overflow, |private_length| and |private_offset| have to
> be correctly bounded.

Done.

Powered by Google App Engine
This is Rietveld 408576698