Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(173)

Issue 7179053: [PDF] Handle invalid glyph IDs on drawText methods. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by Steve VanDeBogart
Modified:
11 years, 9 months ago
Reviewers:
edisonn, reed1
CC:
skia-review_googlegroups.com, bungeman
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

[PDF] Handle invalid glyph IDs on drawText methods. Committed: https://code.google.com/p/skia/source/detail?r=7401

Patch Set 1 #

Patch Set 2 : smaller #

Patch Set 3 : Add test #

Patch Set 4 : Use SkAutoSTMalloc #

Patch Set 5 : nit #

Patch Set 6 : Address comments #

Patch Set 7 : Map invalid glyphs to glyph id 0. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -31 lines) Patch
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 6 chunks +75 lines, -31 lines 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 3 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Steve VanDeBogart
Ok, this fixes both issues. I don't like how it silently drops invalid draw arguments, ...
11 years, 9 months ago (2013-01-23 01:53:03 UTC) #1
edisonn
Mike/Ben, Steve insists on fixing the callers, this is the proposed fix. Steve, have you ...
11 years, 9 months ago (2013-01-23 14:14:07 UTC) #2
reed1
These are just performance comments, that apply equally to the old and new code. 1. ...
11 years, 9 months ago (2013-01-23 14:39:48 UTC) #3
Steve VanDeBogart
On 2013/01/23 14:39:48, reed1 wrote: > These are just performance comments, that apply equally to ...
11 years, 9 months ago (2013-01-23 22:21:37 UTC) #4
reed1
On 2013/01/23 22:21:37, Steve VanDeBogart wrote: > On 2013/01/23 14:39:48, reed1 wrote: > > These ...
11 years, 9 months ago (2013-01-23 22:32:27 UTC) #5
Steve VanDeBogart
On 2013/01/23 22:32:27, reed1 wrote: > On 2013/01/23 22:21:37, Steve VanDeBogart wrote: > > On ...
11 years, 9 months ago (2013-01-23 22:54:27 UTC) #6
reed1
1. Why do we always allocate/copy the input in the glyphID case? It seems to ...
11 years, 9 months ago (2013-01-24 12:51:24 UTC) #7
Steve VanDeBogart
On 2013/01/24 12:51:24, reed1 wrote: > 1. Why do we always allocate/copy the input in ...
11 years, 9 months ago (2013-01-24 22:25:12 UTC) #8
reed1
Thanks for both optimizations. It looks like the validation process just skips bad glyphs? In ...
11 years, 9 months ago (2013-01-25 13:23:06 UTC) #9
Steve VanDeBogart
On 2013/01/25 13:23:06, reed1 wrote: > Thanks for both optimizations. > > It looks like ...
11 years, 9 months ago (2013-01-25 18:10:39 UTC) #10
reed1
11 years, 9 months ago (2013-01-25 18:57:47 UTC) #11
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b