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

Issue 691273003: PDF: Fix potential bad indexes in find results. (Closed)

Created:
6 years, 1 month ago by Lei Zhang
Modified:
6 years, 1 month ago
Reviewers:
raymes
CC:
chromium-reviews, Nikhil
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

PDF: Fix potential bad indexes in find results. Add a new FindTextData class to store the index to avoid all the size_t to int casts. BUG=416696 Committed: https://crrev.com/4da86e9519681acee27ec47c63685eb2804d7144 Cr-Commit-Position: refs/heads/master@{#302532}

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -55 lines) Patch
M pdf/instance.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 chunk +1 line, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.h View 1 2 3 3 chunks +25 lines, -2 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 9 chunks +92 lines, -53 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Lei Zhang
6 years, 1 month ago (2014-10-31 03:33:13 UTC) #2
raymes
Thank you a ton for taking a look. lgtm with some minor comments. https://codereview.chromium.org/691273003/diff/20001/pdf/pdfium/pdfium_engine.cc File ...
6 years, 1 month ago (2014-11-03 05:17:31 UTC) #3
Lei Zhang
https://codereview.chromium.org/691273003/diff/20001/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/691273003/diff/20001/pdf/pdfium/pdfium_engine.cc#newcode1796 pdf/pdfium/pdfium_engine.cc:1796: size_t find_index = current_find_index_.IncrementIndex(); On 2014/11/03 05:17:30, raymes wrote: ...
6 years, 1 month ago (2014-11-03 23:25:42 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691273003/60001
6 years, 1 month ago (2014-11-03 23:30:15 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-04 01:00:29 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 01:01:02 UTC) #8
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4da86e9519681acee27ec47c63685eb2804d7144
Cr-Commit-Position: refs/heads/master@{#302532}

Powered by Google App Engine
This is Rietveld 408576698