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

Issue 779633004: MachMessageServer: scribble over memory allocations in debug mode (Closed)

Created:
6 years ago by Mark Mentovai
Modified:
6 years ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

MachMessageServer: scribble over memory allocations in debug mode. This exposed a bug in the ExcClientVariants test, which was expecting the memory used for new_state to be initialized with zeroes. In reality, no guarantee of initialization is made. MIG “out” parameters are strictly “out” and may contain garbage at function entry. TEST=util_test R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/86588c55262f2be0f1608cda499f03c9c533c65d

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -18 lines) Patch
M util/mach/exc_client_variants_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M util/mach/mach_message_server.cc View 1 2 chunks +24 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Mark Mentovai
6 years ago (2014-12-03 22:06:47 UTC) #2
Robert Sesek
LGTM
6 years ago (2014-12-03 23:22:45 UTC) #3
Mark Mentovai
6 years ago (2014-12-03 23:24:31 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
86588c55262f2be0f1608cda499f03c9c533c65d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698