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

Issue 2960753002: Fix bug where Chromium crashes in PDFiumEngine::OnMouseUp(). (Closed)

Created:
3 years, 5 months ago by drgage
Modified:
3 years, 5 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix bug where Chromium crashes in PDFiumEngine::OnMouseUp(). Chromium previously crashed when a user right clicked outside of a form text area, and then left clicked in the form text area. This was due to an out of bounds error. The fix is checking that |last_page_mouse_down_| is not -1 before trying to set the PDF plugin's selected text. BUG=59266, 737529 Review-Url: https://codereview.chromium.org/2960753002 Cr-Commit-Position: refs/heads/master@{#483133} Committed: https://chromium.googlesource.com/chromium/src/+/ea6109f1b3034ec6557598194c72c2c3533a7aa5

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M pdf/pdfium/pdfium_engine.cc View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 23 (12 generated)
drgage
Hi Lei and Dan, In this CL, I have a fix to prevent Chromium from ...
3 years, 5 months ago (2017-06-26 22:07:02 UTC) #3
Lei Zhang
https://codereview.chromium.org/2960753002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2960753002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode1860 pdf/pdfium/pdfium_engine.cc:1860: if (area == PDFiumPage::FORM_TEXT_AREA && last_page_mouse_down_ != -1) This ...
3 years, 5 months ago (2017-06-27 01:26:51 UTC) #8
dsinclair
https://codereview.chromium.org/2960753002/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/2960753002/diff/1/pdf/pdfium/pdfium_engine.cc#newcode1860 pdf/pdfium/pdfium_engine.cc:1860: if (area == PDFiumPage::FORM_TEXT_AREA && last_page_mouse_down_ != -1) On ...
3 years, 5 months ago (2017-06-27 15:24:22 UTC) #9
Lei Zhang
On 2017/06/27 15:24:22, dsinclair wrote: > FORM_GetSelectedText returns the text from a text field or ...
3 years, 5 months ago (2017-06-27 20:27:20 UTC) #10
drgage
On 2017/06/27 20:27:20, Lei Zhang wrote: > On 2017/06/27 15:24:22, dsinclair wrote: > > FORM_GetSelectedText ...
3 years, 5 months ago (2017-06-28 04:13:38 UTC) #11
Lei Zhang
The selection is still wonky, but let's do this for the sake of fixing the ...
3 years, 5 months ago (2017-06-28 18:59:04 UTC) #13
Lei Zhang
lgtm
3 years, 5 months ago (2017-06-28 18:59:14 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/2960753002/1
3 years, 5 months ago (2017-06-28 19:00:21 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/444635)
3 years, 5 months ago (2017-06-28 19:39:34 UTC) #18
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/2960753002/1
3 years, 5 months ago (2017-06-28 20:20:02 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-06-28 20:58:34 UTC) #23
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/ea6109f1b3034ec6557598194c72...

Powered by Google App Engine
This is Rietveld 408576698