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

Issue 848073003: PDF: Yet another stab at getting WriteInto() buffer sizes correct. (Closed)

Created:
5 years, 11 months ago by Lei Zhang
Modified:
5 years, 11 months ago
Reviewers:
raymes
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF: Yet another stab at getting WriteInto() buffer sizes correct. - Fix remaining case with extra null-character. - Do not assume strings are null-terminated, even though they most likely are. - Fix accessibility code that checked for the extra null-character. Committed: https://crrev.com/026f6359bf17043fc7404354a1777bb368534610 Cr-Commit-Position: refs/heads/master@{#311715}

Patch Set 1 #

Patch Set 2 : Fix accessibility code that can no longer occur #

Total comments: 9

Patch Set 3 : add a helper class #

Patch Set 4 : document #

Total comments: 2

Patch Set 5 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -27 lines) Patch
M pdf/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M pdf/pdf.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A pdf/pdfium/pdfium_api_string_buffer_adapter.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A pdf/pdfium/pdfium_api_string_buffer_adapter.cc View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M pdf/pdfium/pdfium_page.cc View 1 2 4 chunks +17 lines, -13 lines 0 comments Download
M pdf/pdfium/pdfium_range.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Lei Zhang
As before, look carefully.
5 years, 11 months ago (2015-01-14 03:14:48 UTC) #2
raymes
OK! This definitely looks right to me now :) https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc File pdf/pdfium/pdfium_page.cc (right): https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc#newcode203 pdf/pdfium/pdfium_page.cc:203: ...
5 years, 11 months ago (2015-01-14 05:05:52 UTC) #3
Lei Zhang
https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc File pdf/pdfium/pdfium_page.cc (right): https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc#newcode203 pdf/pdfium/pdfium_page.cc:203: DCHECK(targets[i].url[targets[i].url.size() - 1] != '\0'); On 2015/01/14 05:05:52, raymes ...
5 years, 11 months ago (2015-01-15 00:42:08 UTC) #4
raymes
https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc File pdf/pdfium/pdfium_page.cc (right): https://codereview.chromium.org/848073003/diff/20001/pdf/pdfium/pdfium_page.cc#newcode203 pdf/pdfium/pdfium_page.cc:203: DCHECK(targets[i].url[targets[i].url.size() - 1] != '\0'); I was just checking ...
5 years, 11 months ago (2015-01-15 01:22:58 UTC) #5
Lei Zhang
I added a class. See patch set 4.
5 years, 11 months ago (2015-01-15 03:41:03 UTC) #6
raymes
lgtm! Thanks for doing this - there are 2 CLs under review currently that need ...
5 years, 11 months ago (2015-01-15 04:33:24 UTC) #7
Lei Zhang
On 2015/01/15 04:33:24, raymes wrote: > lgtm! Thanks for doing this - there are 2 ...
5 years, 11 months ago (2015-01-15 04:44:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848073003/80001
5 years, 11 months ago (2015-01-15 09:07:12 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/37852)
5 years, 11 months ago (2015-01-15 09:32:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848073003/80001
5 years, 11 months ago (2015-01-15 19:33:06 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-15 19:51:42 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-15 19:52:50 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/026f6359bf17043fc7404354a1777bb368534610
Cr-Commit-Position: refs/heads/master@{#311715}

Powered by Google App Engine
This is Rietveld 408576698