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

Issue 1925363002: Do not check pointers before deleting them. (Closed)

Created:
4 years, 7 months ago by Lei Zhang
Modified:
4 years, 7 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Do not check pointers before deleting them. XFA edition. Committed: https://pdfium.googlesource.com/pdfium/+/495bda110a6ea8e7a6fc313ec0232a9ca6e3cfdc

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Patch Set 3 : rebase #

Total comments: 5

Patch Set 4 : address comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -572 lines) Patch
M xfa/fde/css/fde_cssstyleselector.h View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.cpp View 2 chunks +8 lines, -10 lines 0 comments Download
M xfa/fde/fde_render.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M xfa/fee/fde_txtedtengine.cpp View 6 chunks +14 lines, -24 lines 0 comments Download
M xfa/fee/fde_txtedtpage.cpp View 2 chunks +23 lines, -33 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 2 chunks +3 lines, -9 lines 0 comments Download
M xfa/fwl/basewidget/fwl_caretimp.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M xfa/fwl/basewidget/fxmath_barcodeimp.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/fwl_formimp.cpp View 1 chunk +10 lines, -16 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M xfa/fwl/core/fwl_widgetmgrimp.cpp View 3 chunks +9 lines, -10 lines 0 comments Download
M xfa/fwl/theme/cfwl_checkboxtp.cpp View 1 1 chunk +5 lines, -7 lines 0 comments Download
M xfa/fwl/theme/cfwl_formtp.cpp View 3 chunks +11 lines, -20 lines 0 comments Download
M xfa/fwl/theme/cfwl_pushbuttontp.cpp View 1 chunk +4 lines, -5 lines 0 comments Download
M xfa/fwl/theme/cfwl_scrollbartp.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 1 chunk +10 lines, -11 lines 0 comments Download
M xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp View 1 2 chunks +18 lines, -41 lines 0 comments Download
M xfa/fxbarcode/BC_TwoDimWriter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.cpp View 1 chunk +6 lines, -8 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417BoundingBox.cpp View 1 chunk +6 lines, -12 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417Detector.cpp View 1 2 chunks +2 lines, -6 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417ECErrorCorrection.cpp View 4 chunks +44 lines, -104 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCodeReader.cpp View 1 chunk +4 lines, -8 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.cpp View 1 1 chunk +10 lines, -16 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 chunk +5 lines, -8 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.cpp View 3 chunks +8 lines, -10 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 chunk +21 lines, -34 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_layout_imp.cpp View 2 chunks +11 lines, -14 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.cpp View 1 chunk +5 lines, -6 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 2 3 3 chunks +76 lines, -80 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.cpp View 1 chunk +4 lines, -7 lines 0 comments Download
M xfa/fxgraphics/cagg_graphics.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxgraphics/cfx_path_generator.cpp View 1 chunk +5 lines, -7 lines 0 comments Download
M xfa/fxjse/context.cpp View 1 2 3 4 chunks +16 lines, -16 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Lei Zhang
There's some goto removal too. BC_PDF417ECErrorCorrection.cpp can use some unique_ptrs, but I'm too lazy right ...
4 years, 7 months ago (2016-04-28 21:28:04 UTC) #2
Tom Sepez
https://codereview.chromium.org/1925363002/diff/1/xfa/fwl/theme/cfwl_checkboxtp.cpp File xfa/fwl/theme/cfwl_checkboxtp.cpp (right): https://codereview.chromium.org/1925363002/diff/1/xfa/fwl/theme/cfwl_checkboxtp.cpp#newcode35 xfa/fwl/theme/cfwl_checkboxtp.cpp:35: m_pCheckPath = nullptr; nit: probably not necessary. https://codereview.chromium.org/1925363002/diff/1/xfa/fxbarcode/BC_BufferedImageLuminanceSource.cpp File ...
4 years, 7 months ago (2016-04-28 21:47:23 UTC) #3
Lei Zhang
https://codereview.chromium.org/1925363002/diff/1/xfa/fwl/theme/cfwl_checkboxtp.cpp File xfa/fwl/theme/cfwl_checkboxtp.cpp (right): https://codereview.chromium.org/1925363002/diff/1/xfa/fwl/theme/cfwl_checkboxtp.cpp#newcode35 xfa/fwl/theme/cfwl_checkboxtp.cpp:35: m_pCheckPath = nullptr; On 2016/04/28 21:47:22, Tom Sepez wrote: ...
4 years, 7 months ago (2016-04-28 22:31:11 UTC) #4
Tom Sepez
https://codereview.chromium.org/1925363002/diff/40001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): https://codereview.chromium.org/1925363002/diff/40001/xfa/fxfa/parser/xfa_script_imp.cpp#newcode518 xfa/fxfa/parser/xfa_script_imp.cpp:518: delete reinterpret_cast<CXFA_ThisProxy*>( static_cast not good enough (void return?) Also ...
4 years, 7 months ago (2016-04-28 23:07:55 UTC) #5
Lei Zhang
I'll wait for your CLs to land and resolve the conflicts. https://codereview.chromium.org/1925363002/diff/40001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): ...
4 years, 7 months ago (2016-04-28 23:43:53 UTC) #6
Tom Sepez
lgtm https://codereview.chromium.org/1925363002/diff/40001/xfa/fxfa/parser/xfa_script_imp.cpp File xfa/fxfa/parser/xfa_script_imp.cpp (right): https://codereview.chromium.org/1925363002/diff/40001/xfa/fxfa/parser/xfa_script_imp.cpp#newcode518 xfa/fxfa/parser/xfa_script_imp.cpp:518: delete reinterpret_cast<CXFA_ThisProxy*>( On 2016/04/28 23:43:53, Lei Zhang wrote: ...
4 years, 7 months ago (2016-04-28 23:47:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925363002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925363002/80001
4 years, 7 months ago (2016-04-29 00:08:26 UTC) #10
commit-bot: I haz the power
4 years, 7 months ago (2016-04-29 00:29:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/495bda110a6ea8e7a6fc313ec0232a9ca6e3...

Powered by Google App Engine
This is Rietveld 408576698