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

Issue 2342073002: Respect ToUnicode map when it maps a charcode to unicode 0 (Closed)

Created:
4 years, 3 months ago by npm
Modified:
4 years, 3 months ago
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Use ToUnicode mapping even when unicode is 0. CPDF_Font::UnicodeFromCharcode returns 0 only if ToUnicode map maps the charcode to 0. CPDF_SimpleFont::UnicodeFromCharcode and CPDF_CID_Font:: UnicodeFromCharCode return 0 only if the call to CPDF_Font returns 0. In other cases, these methods return an empty string. So when processing text, a 0 return from the method should not be replaced with the charcode. BUG=pdfium:583 Committed: https://pdfium.googlesource.com/pdfium/+/84be3a3cfec5107aac9a58ea00b58b733d393c7d

Patch Set 1 #

Patch Set 2 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -6 lines) Patch
M core/fpdftext/cpdf_textpage.cpp View 1 1 chunk +2 lines, -6 lines 0 comments Download
M fpdfsdk/fpdftext_embeddertest.cpp View 1 1 chunk +15 lines, -0 lines 0 comments Download
A testing/resources/bug_583.pdf View 1 1 chunk +216 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
npm
PTAL
4 years, 3 months ago (2016-09-15 16:03:26 UTC) #3
dsinclair
Code lg to me. Can we create a unit test or some kind of test ...
4 years, 3 months ago (2016-09-15 17:43:39 UTC) #8
npm
PTAL
4 years, 3 months ago (2016-09-15 20:06:41 UTC) #9
dsinclair
lgtm
4 years, 3 months ago (2016-09-15 20:25:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2342073002/20001
4 years, 3 months ago (2016-09-15 20:27:06 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 20:27:24 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/84be3a3cfec5107aac9a58ea00b58b733d39...

Powered by Google App Engine
This is Rietveld 408576698