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

Issue 2293403003: Check whether the annotation content is empty using CFX_WideString. (Closed)

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

Description

Check whether the annotation content is empty using CFX_WideString. CFX_ByteString cannot properly check whether the contents string is empty because the first two bytes of text strings encoded in Unicode are always ASCII 254 followed by 255. So if we get contents in CFX_ByteString, the length will always be 2. Also, roll DEPS for testing/corpus to 608bf04. Committed: https://pdfium.googlesource.com/pdfium/+/3451c0900cbbc06d82a07bca3670ac87ec36f52e

Patch Set 1 #

Patch Set 2 : Rebased #

Patch Set 3 : Check whether the annotation content is empty using CFX_WideString. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M DEPS View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpdf_annotlist.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
jaepark
The test case for this is in https://codereview.chromium.org/2301793002 .
4 years, 3 months ago (2016-09-01 01:07:33 UTC) #2
Lei Zhang
Can you be more specific about why CFX_ByteString cannot properly check for emptiness?
4 years, 3 months ago (2016-09-01 01:17:52 UTC) #3
jaepark
On 2016/09/01 01:17:52, Lei Zhang wrote: > Can you be more specific about why CFX_ByteString ...
4 years, 3 months ago (2016-09-01 01:50:35 UTC) #7
dsinclair
On 2016/09/01 01:50:35, jaepark wrote: > On 2016/09/01 01:17:52, Lei Zhang wrote: > > Can ...
4 years, 3 months ago (2016-09-01 14:21:29 UTC) #8
jaepark
On 2016/09/01 14:21:29, dsinclair wrote: > > We have a unicode BOM at the beginning ...
4 years, 3 months ago (2016-09-01 17:20:27 UTC) #9
dsinclair
On 2016/09/01 17:20:27, jaepark wrote: > On 2016/09/01 14:21:29, dsinclair wrote: > > > > ...
4 years, 3 months ago (2016-09-01 17:22:16 UTC) #10
Lei Zhang
On 2016/09/01 17:22:16, dsinclair wrote: > It seems strange that we'd store the BOM for ...
4 years, 3 months ago (2016-09-01 21:18:39 UTC) #11
dsinclair
On 2016/09/01 21:18:39, Lei Zhang wrote: > On 2016/09/01 17:22:16, dsinclair wrote: > > It ...
4 years, 3 months ago (2016-09-06 12:53:14 UTC) #12
Lei Zhang
On 2016/09/06 12:53:14, dsinclair wrote: > We is PDFium. If the PDF has BOM's we ...
4 years, 3 months ago (2016-09-07 01:47:14 UTC) #13
dsinclair
On 2016/09/07 01:47:14, Lei Zhang wrote: > On 2016/09/06 12:53:14, dsinclair wrote: > > We ...
4 years, 3 months ago (2016-09-07 02:20:36 UTC) #14
dsinclair
On 2016/09/07 02:20:36, dsinclair wrote: > On 2016/09/07 01:47:14, Lei Zhang wrote: > > On ...
4 years, 3 months ago (2016-09-07 12:59:34 UTC) #15
Lei Zhang
On 2016/09/07 12:59:34, dsinclair wrote: > On 2016/09/07 02:20:36, dsinclair wrote: > > On 2016/09/07 ...
4 years, 3 months ago (2016-09-07 22:13:50 UTC) #16
dsinclair
On 2016/09/07 22:13:50, Lei Zhang wrote: > On 2016/09/07 12:59:34, dsinclair wrote: > > On ...
4 years, 3 months ago (2016-09-08 12:52:49 UTC) #17
jaepark
On 2016/09/08 12:52:49, dsinclair wrote: > > Sounds good, Jae, can you file a bug ...
4 years, 3 months ago (2016-09-08 17:20:29 UTC) #18
jaepark
Rebased and added a comment with TODO. Test case is in https://codereview.chromium.org/2301793002 .
4 years, 3 months ago (2016-09-08 18:11:16 UTC) #19
dsinclair
lgtm
4 years, 3 months ago (2016-09-08 18:16:46 UTC) #20
Lei Zhang
lgtm
4 years, 3 months ago (2016-09-08 18:52:42 UTC) #21
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/2293403003/40001
4 years, 3 months ago (2016-09-08 20:34:08 UTC) #29
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 20:34:22 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/3451c0900cbbc06d82a07bca3670ac87ec36...

Powered by Google App Engine
This is Rietveld 408576698