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

Issue 599373003: Memory allocation for WriteInto is not proper. (Closed)

Created:
6 years, 2 months ago by Deepak
Modified:
6 years, 2 months ago
Reviewers:
gene
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Memory allocation for WriteInto is not proper. Memory for WriteInto() should be greater than the url length, As in the WriteInto() it reserve the memory of size 'length_with_null' and then resize it to "length_with_null-1' Chnage done to give memory 1 greater than the url length size. BUG=417732 Committed: https://crrev.com/64d81572b36829960001fc34314604f71c6bd50a Cr-Commit-Position: refs/heads/master@{#297102}

Patch Set 1 #

Total comments: 2

Patch Set 2 : changes as per review comments. #

Patch Set 3 : changes as per review comments. #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M pdf/pdfium/pdfium_engine.cc View 1 3 1 chunk +2 lines, -2 lines 0 comments Download
M pdf/pdfium/pdfium_page.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Deepak
PTAL
6 years, 2 months ago (2014-09-25 15:33:52 UTC) #2
gene
lgtm
6 years, 2 months ago (2014-09-25 18:16:58 UTC) #3
gene
https://codereview.chromium.org/599373003/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/599373003/diff/1/pdf/pdfium/pdfium_engine.cc#newcode3404 pdf/pdfium/pdfium_engine.cc:3404: doc, "Creator", WriteInto(&creator, buffer_bytes), buffer_bytes + 1); Are you ...
6 years, 2 months ago (2014-09-25 18:18:56 UTC) #4
Deepak
PTAL https://codereview.chromium.org/599373003/diff/1/pdf/pdfium/pdfium_engine.cc File pdf/pdfium/pdfium_engine.cc (right): https://codereview.chromium.org/599373003/diff/1/pdf/pdfium/pdfium_engine.cc#newcode3404 pdf/pdfium/pdfium_engine.cc:3404: doc, "Creator", WriteInto(&creator, buffer_bytes), buffer_bytes + 1); On ...
6 years, 2 months ago (2014-09-26 03:02:38 UTC) #5
Deepak
On 2014/09/26 03:02:38, Deepak wrote: > PTAL > > https://codereview.chromium.org/599373003/diff/1/pdf/pdfium/pdfium_engine.cc > File pdf/pdfium/pdfium_engine.cc (right): > ...
6 years, 2 months ago (2014-09-26 03:16:52 UTC) #6
Deepak
On 2014/09/26 03:16:52, Deepak wrote: > On 2014/09/26 03:02:38, Deepak wrote: > > PTAL > ...
6 years, 2 months ago (2014-09-26 04:38:08 UTC) #7
gene
lgtm
6 years, 2 months ago (2014-09-26 18:25:42 UTC) #8
jam
On 2014/09/26 18:25:42, gene wrote: > lgtm removing myself as reviewer since gene is an ...
6 years, 2 months ago (2014-09-27 00:57:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/599373003/60001
6 years, 2 months ago (2014-09-27 03:19:13 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001) as d7e417ecb086306fdfe80d5bddd491271e53529c
6 years, 2 months ago (2014-09-27 04:11:42 UTC) #13
commit-bot: I haz the power
6 years, 2 months ago (2014-09-27 04:12:40 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/64d81572b36829960001fc34314604f71c6bd50a
Cr-Commit-Position: refs/heads/master@{#297102}

Powered by Google App Engine
This is Rietveld 408576698