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

Issue 481733002: Fix a double-free issue in CFX_PathData::~CFX_PathData (Closed)

Created:
6 years, 4 months ago by jun_fang
Modified:
5 years, 9 months ago
Reviewers:
Tom Sepez, Bo Xu
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Fix a double-free issue in CFX_PathData::~CFX_PathData In CPDFSDK_InterForm::SubmitFields, the buffer pointed by m_pBuffer is returned and released by the caller. However, it will be released again in the destructor. BUG=401580 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/39a97ea

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -6 lines) Patch
M fpdfsdk/src/fsdk_baseform.cpp View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jun_fang
Hi Tom, please review this change. Thanks!
6 years, 4 months ago (2014-08-17 06:38:55 UTC) #1
Tom Sepez
On 2014/08/17 06:38:55, jun_fang wrote: > Hi Tom, please review this change. Thanks! How about ...
6 years, 4 months ago (2014-08-18 18:13:09 UTC) #2
jun_fang
On 2014/08/18 18:13:09, Tom Sepez wrote: > On 2014/08/17 06:38:55, jun_fang wrote: > > Hi ...
6 years, 4 months ago (2014-08-18 19:00:16 UTC) #3
Tom Sepez
> So pBuffer and m_pBuffer points to the same buffer. > When we release the ...
6 years, 4 months ago (2014-08-18 19:07:48 UTC) #4
jun_fang
On 2014/08/18 19:07:48, Tom Sepez wrote: > > So pBuffer and m_pBuffer points to the ...
6 years, 4 months ago (2014-08-18 19:10:55 UTC) #5
Tom Sepez
> You are right. So in this fix, I removed the free of pBuffer. LGTM. ...
6 years, 4 months ago (2014-08-18 19:16:14 UTC) #6
jun_fang
6 years, 4 months ago (2014-08-18 19:22:02 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 manually as 39a97ea (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698