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

Issue 728993002: Check NULL pointer dereferencing from GetDirect (Closed)

Created:
6 years, 1 month ago by Bo Xu
Modified:
6 years, 1 month ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clean up #

Total comments: 1

Patch Set 3 : Check NULL #

Patch Set 4 : Use GetElementValue() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M xfa/src/fxfa/src/app/xfa_ffdoc.cpp View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Bo Xu
Hi Tom, please review this one.
6 years, 1 month ago (2014-11-14 22:35:49 UTC) #1
Bo Xu
Hi Tom, please review this one.
6 years, 1 month ago (2014-11-14 22:37:34 UTC) #3
Tom Sepez
https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp File xfa/src/fxfa/src/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp#newcode244 xfa/src/fxfa/src/app/xfa_ffdoc.cpp:244: return FALSE; Doesn't getDirect() check the object type, and ...
6 years, 1 month ago (2014-11-14 22:41:45 UTC) #4
Tom Sepez
https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp File xfa/src/fxfa/src/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp#newcode237 xfa/src/fxfa/src/app/xfa_ffdoc.cpp:237: if (pElementXFA == NULL) { Actually, doesn't GetElementValue() do ...
6 years, 1 month ago (2014-11-14 22:44:42 UTC) #5
Bo Xu
https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp File xfa/src/fxfa/src/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp#newcode244 xfa/src/fxfa/src/app/xfa_ffdoc.cpp:244: return FALSE; On 2014/11/14 22:41:44, Tom Sepez wrote: > ...
6 years, 1 month ago (2014-11-14 23:44:53 UTC) #6
Tom Sepez
https://codereview.chromium.org/728993002/diff/20001/xfa/src/fxfa/src/app/xfa_ffdoc.cpp File xfa/src/fxfa/src/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/728993002/diff/20001/xfa/src/fxfa/src/app/xfa_ffdoc.cpp#newcode237 xfa/src/fxfa/src/app/xfa_ffdoc.cpp:237: pElementXFA = pElementXFA->GetDirect(); Need to check for null before ...
6 years, 1 month ago (2014-11-14 23:58:44 UTC) #7
Bo Xu
https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp File xfa/src/fxfa/src/app/xfa_ffdoc.cpp (right): https://codereview.chromium.org/728993002/diff/1/xfa/src/fxfa/src/app/xfa_ffdoc.cpp#newcode237 xfa/src/fxfa/src/app/xfa_ffdoc.cpp:237: if (pElementXFA == NULL) { On 2014/11/14 22:44:41, Tom ...
6 years, 1 month ago (2014-11-15 00:09:18 UTC) #8
Tom Sepez
LGTM. Sometime down the road, can I beg you guys to change the name of ...
6 years, 1 month ago (2014-11-15 00:12:19 UTC) #9
Bo Xu
On 2014/11/15 00:12:19, Tom Sepez wrote: > LGTM. > > Sometime down the road, can ...
6 years, 1 month ago (2014-11-15 00:18:41 UTC) #10
Bo Xu
6 years, 1 month ago (2014-11-15 01:22:47 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
0c32f02cf5dabd80c03f3af34874b5f84535b1ef (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698