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

Issue 411713003: Fix potential memory violation in CJS_PublicMethods::StrRTrim() (Closed)

Created:
6 years, 5 months ago by Tom Sepez
Modified:
6 years, 5 months ago
Reviewers:
jun_fang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Fix potential memory violation in CJS_PublicMethods::StrRTrim() BUG=395266 R=jun_fang@foxitsoftware.com Committed: https://pdfium.googlesource.com/pdfium/+/46773fd

Patch Set 1 #

Patch Set 2 : Fix one other place where same logic was used. #

Total comments: 4

Patch Set 3 : Add newlines. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -19 lines) Patch
M fpdfsdk/src/javascript/PublicMethods.cpp View 1 2 2 chunks +7 lines, -19 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Tom Sepez
Jun, please review. Thanks.
6 years, 5 months ago (2014-07-22 20:20:41 UTC) #1
jun_fang
https://codereview.chromium.org/411713003/diff/20001/fpdfsdk/src/javascript/PublicMethods.cpp File fpdfsdk/src/javascript/PublicMethods.cpp (right): https://codereview.chromium.org/411713003/diff/20001/fpdfsdk/src/javascript/PublicMethods.cpp#newcode226 fpdfsdk/src/javascript/PublicMethods.cpp:226: while (p > pStr && *(p - 1) == ...
6 years, 5 months ago (2014-07-23 07:04:19 UTC) #2
jun_fang
6 years, 5 months ago (2014-07-23 07:04:52 UTC) #3
Tom Sepez
OK, Please take another look. https://codereview.chromium.org/411713003/diff/20001/fpdfsdk/src/javascript/PublicMethods.cpp File fpdfsdk/src/javascript/PublicMethods.cpp (right): https://codereview.chromium.org/411713003/diff/20001/fpdfsdk/src/javascript/PublicMethods.cpp#newcode226 fpdfsdk/src/javascript/PublicMethods.cpp:226: while (p > pStr ...
6 years, 5 months ago (2014-07-23 16:56:49 UTC) #4
jun_fang
On 2014/07/23 16:56:49, Tom Sepez wrote: > OK, Please take another look. > > https://codereview.chromium.org/411713003/diff/20001/fpdfsdk/src/javascript/PublicMethods.cpp ...
6 years, 5 months ago (2014-07-23 16:59:31 UTC) #5
Tom Sepez
6 years, 5 months ago (2014-07-23 17:50:09 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r46773fd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698