Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1278)

Issue 593003: NULL-check the entry in NonAllocatingMap before setting on it. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by rsesek
Modified:
11 years, 4 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

NULL-check the entry in NonAllocatingMap before setting on it.

Using just an assert will still cause a crash in a release build.

BUG=http://code.google.com/p/chromium/issues/detail?id=238757
R=mark@chromium.org

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1174

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/common/simple_string_dictionary.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M src/common/simple_string_dictionary_unittest.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8
rsesek
11 years, 4 months ago #1
Mark Mentovai
https://breakpad.appspot.com/593003/diff/1/src/common/simple_string_dictionary.h File src/common/simple_string_dictionary.h (right): https://breakpad.appspot.com/593003/diff/1/src/common/simple_string_dictionary.h#newcode194 src/common/simple_string_dictionary.h:194: assert(entry); You seem to want to be able to ...
11 years, 4 months ago #2
rsesek
https://breakpad.appspot.com/593003/diff/1/src/common/simple_string_dictionary.h File src/common/simple_string_dictionary.h (right): https://breakpad.appspot.com/593003/diff/1/src/common/simple_string_dictionary.h#newcode194 src/common/simple_string_dictionary.h:194: assert(entry); On 2013/05/08 15:54:26, Mark Mentovai wrote: > You ...
11 years, 4 months ago #3
Mark Mentovai
LGTM with one more word. https://breakpad.appspot.com/593003/diff/4001/src/common/simple_string_dictionary.h File src/common/simple_string_dictionary.h (right): https://breakpad.appspot.com/593003/diff/4001/src/common/simple_string_dictionary.h#newcode160 src/common/simple_string_dictionary.h:160: // operation fails. “fails” ...
11 years, 4 months ago #4
rsesek
https://breakpad.appspot.com/593003/diff/4001/src/common/simple_string_dictionary.h File src/common/simple_string_dictionary.h (right): https://breakpad.appspot.com/593003/diff/4001/src/common/simple_string_dictionary.h#newcode160 src/common/simple_string_dictionary.h:160: // operation fails. On 2013/05/08 16:04:03, Mark Mentovai wrote: ...
11 years, 4 months ago #5
Mark Mentovai
not lgtm
11 years, 4 months ago #6
Mark Mentovai
just kidding. LGTM.
11 years, 4 months ago #7
rsesek
11 years, 4 months ago #8
Message was sent while issue was closed.
Committed patchset #3 manually as r1174 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted