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

Issue 2648013002: Fix crash in PDF accessibility when PDF engine reports -1 as char count. (Closed)

Created:
3 years, 11 months ago by dmazzoni
Modified:
3 years, 10 months ago
Reviewers:
raymes
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash in PDF accessibility when PDF engine reports -1 as char count. The PDF engine was returning -1 from engine_->GetCharCount(), and we were trying to allocate that many bytes. See bug for repro. BUG=648981 Review-Url: https://codereview.chromium.org/2648013002 Cr-Commit-Position: refs/heads/master@{#447132} Committed: https://chromium.googlesource.com/chromium/src/+/d45c2e686cfea25c8e480cbb5604ef1bc5dfae0f

Patch Set 1 #

Patch Set 2 : Add test #

Total comments: 2

Patch Set 3 : Add link to bug #

Patch Set 4 : Move file to pdf_private #

Total comments: 1

Patch Set 5 : Reword comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M pdf/out_of_process_instance.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
dmazzoni
3 years, 11 months ago (2017-01-20 22:11:14 UTC) #3
raymes
Thanks! lg but could you please add a regression test? It should be as simple ...
3 years, 11 months ago (2017-01-22 21:54:34 UTC) #7
dmazzoni
Test added!
3 years, 11 months ago (2017-01-24 19:49:15 UTC) #9
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/2648013002/20001
3 years, 11 months ago (2017-01-24 19:49:51 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 11 months ago (2017-01-24 19:49:52 UTC) #12
raymes
lgtm https://codereview.chromium.org/2648013002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2648013002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc#newcode662 chrome/browser/pdf/pdf_extension_test.cc:662: IN_PROC_BROWSER_TEST_F(PDFExtensionTest, PdfAccessibilityCharCountCrash) { nit: please add a comment ...
3 years, 11 months ago (2017-01-24 23:05:47 UTC) #13
dmazzoni
https://codereview.chromium.org/2648013002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2648013002/diff/20001/chrome/browser/pdf/pdf_extension_test.cc#newcode662 chrome/browser/pdf/pdf_extension_test.cc:662: IN_PROC_BROWSER_TEST_F(PDFExtensionTest, PdfAccessibilityCharCountCrash) { On 2017/01/24 23:05:47, raymes wrote: > ...
3 years, 11 months ago (2017-01-25 20:30:36 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/2648013002/40001
3 years, 11 months ago (2017-01-25 20:31:21 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/378201)
3 years, 11 months ago (2017-01-25 21:04:55 UTC) #19
dmazzoni
Please review this change to add the test file to pdf_private first: https://chromereviews.googleplex.com/559577013/ Then this ...
3 years, 11 months ago (2017-01-26 06:51:02 UTC) #20
raymes
lgtm
3 years, 10 months ago (2017-01-30 18:55:15 UTC) #21
raymes
https://codereview.chromium.org/2648013002/diff/60001/chrome/browser/pdf/pdf_extension_test.cc File chrome/browser/pdf/pdf_extension_test.cc (right): https://codereview.chromium.org/2648013002/diff/60001/chrome/browser/pdf/pdf_extension_test.cc#newcode663 chrome/browser/pdf/pdf_extension_test.cc:663: // Test a particular PDF encountered in the wild ...
3 years, 10 months ago (2017-01-30 18:58:04 UTC) #22
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/2648013002/80001
3 years, 10 months ago (2017-01-30 23:41:22 UTC) #25
dmazzoni
On 2017/01/30 18:58:04, raymes wrote: > https://codereview.chromium.org/2648013002/diff/60001/chrome/browser/pdf/pdf_extension_test.cc > File chrome/browser/pdf/pdf_extension_test.cc (right): > > https://codereview.chromium.org/2648013002/diff/60001/chrome/browser/pdf/pdf_extension_test.cc#newcode663 > ...
3 years, 10 months ago (2017-01-30 23:42:41 UTC) #26
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 00:35:49 UTC) #29
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/d45c2e686cfea25c8e480cbb5604...

Powered by Google App Engine
This is Rietveld 408576698