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

Issue 6542044: [PDF] Fix name generation - / needs to be escaped. (Closed)

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

Description

[PDF] Fix name generation - / needs to be escaped. BUG=chromium 148422 Committed: https://code.google.com/p/skia/source/detail?r=5641

Patch Set 1 #

Total comments: 2

Patch Set 2 : Escape more and add test #

Total comments: 2

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M src/pdf/SkPDFTypes.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Steve VanDeBogart
11 years, 11 months ago (2012-09-20 00:02:59 UTC) #1
edisonn
LGTM - see comments https://codereview.appspot.com/6542044/diff/1/src/pdf/SkPDFTypes.cpp File src/pdf/SkPDFTypes.cpp (right): https://codereview.appspot.com/6542044/diff/1/src/pdf/SkPDFTypes.cpp#newcode308 src/pdf/SkPDFTypes.cpp:308: input[i] == '/') { Can ...
11 years, 11 months ago (2012-09-20 14:35:40 UTC) #2
Steve VanDeBogart
https://codereview.appspot.com/6542044/diff/1/src/pdf/SkPDFTypes.cpp File src/pdf/SkPDFTypes.cpp (right): https://codereview.appspot.com/6542044/diff/1/src/pdf/SkPDFTypes.cpp#newcode308 src/pdf/SkPDFTypes.cpp:308: input[i] == '/') { On 2012/09/20 14:35:41, edisonn wrote: ...
11 years, 11 months ago (2012-09-20 17:23:55 UTC) #3
edisonn
https://codereview.appspot.com/6542044/diff/1002/src/pdf/SkPDFTypes.cpp File src/pdf/SkPDFTypes.cpp (right): https://codereview.appspot.com/6542044/diff/1002/src/pdf/SkPDFTypes.cpp#newcode308 src/pdf/SkPDFTypes.cpp:308: if (input[i] & 0x80 || input[i] < '!' || ...
11 years, 11 months ago (2012-09-21 17:35:59 UTC) #4
edisonn
LGTM
11 years, 11 months ago (2012-09-21 17:36:43 UTC) #5
Steve VanDeBogart
11 years, 11 months ago (2012-09-21 17:45:38 UTC) #6
https://codereview.appspot.com/6542044/diff/1002/src/pdf/SkPDFTypes.cpp
File src/pdf/SkPDFTypes.cpp (right):

https://codereview.appspot.com/6542044/diff/1002/src/pdf/SkPDFTypes.cpp#newco...
src/pdf/SkPDFTypes.cpp:308: if (input[i] & 0x80 || input[i] < '!' ||
strchr(escaped, input[i])) {
On 2012/09/21 17:35:59, edisonn wrote:
> escaped string is small, so lgtm, but please add a comment that if the number
of
> chars needing escaping gets larger than, say 20, then we should use a form of
> map instead

Done.
Sign in to reply to this message.

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