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

Issue 1991123002: Fix a potential nullptr deref in CFX_MapPtrToPtr. (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

Fix a potential nullptr deref in CFX_MapPtrToPtr. And also in CFX_PtrList. BUG=596528 Committed: https://pdfium.googlesource.com/pdfium/+/db9e49889d4129bbe96abdbce7dc3662e97a9df8

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -14 lines) Patch
M core/fxcrt/fx_basic_list.cpp View 1 2 1 chunk +9 lines, -3 lines 0 comments Download
M core/fxcrt/fx_basic_maps.cpp View 1 2 2 chunks +14 lines, -11 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Lei Zhang
The weird thing is that the original code does not crash in my Clang built ...
4 years, 7 months ago (2016-05-19 06:41:11 UTC) #2
Tom Sepez
lgtm https://codereview.chromium.org/1991123002/diff/1/core/fxcrt/fx_basic_list.cpp File core/fxcrt/fx_basic_list.cpp (right): https://codereview.chromium.org/1991123002/diff/1/core/fxcrt/fx_basic_list.cpp#newcode78 core/fxcrt/fx_basic_list.cpp:78: m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; nit: ...
4 years, 7 months ago (2016-05-19 17:02:01 UTC) #3
Lei Zhang
https://codereview.chromium.org/1991123002/diff/1/core/fxcrt/fx_basic_list.cpp File core/fxcrt/fx_basic_list.cpp (right): https://codereview.chromium.org/1991123002/diff/1/core/fxcrt/fx_basic_list.cpp#newcode78 core/fxcrt/fx_basic_list.cpp:78: m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 20:48:50 UTC) #4
Tom Sepez
still LGTM
4 years, 7 months ago (2016-05-19 22:34:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991123002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991123002/40001
4 years, 7 months ago (2016-05-19 22:36:16 UTC) #7
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 22:36:39 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/db9e49889d4129bbe96abdbce7dc3662e97a...

Powered by Google App Engine
This is Rietveld 408576698