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

Issue 406002: Allow the crash generation server to be initialized with a handle instead of a pipe name. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by bsmedberg
Modified:
12 years, 4 months ago
Reviewers:
Ted Mielczarek
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Allow the crash generation server to be initialized with a handle instead of a
pipe name.

This is useful when a crash handler needs to be added to a process that is
already sandboxed so that it cannot directly open the named pipe.

Patch Set 1 #

Patch Set 2 : Correct v2, static method in CrashGenerationClient #

Total comments: 10

Patch Set 3 : v3, nits fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/windows/crash_generation/crash_generation_client.cc View 1 2 4 chunks +56 lines, -0 lines 0 comments Download
M src/client/windows/crash_generation/crash_generation_client.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M src/client/windows/handler/exception_handler.cc View 1 2 4 chunks +35 lines, -3 lines 0 comments Download
M src/client/windows/handler/exception_handler.h View 3 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 3
Ted Mielczarek
12 years, 5 months ago #1
Ted Mielczarek
LGTM with a few nits fixed. http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generation/crash_generation_client.cc File src/client/windows/crash_generation/crash_generation_client.cc (right): http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generation/crash_generation_client.cc#newcode374 src/client/windows/crash_generation/crash_generation_client.cc:374: { opening brace ...
12 years, 4 months ago #2
bsmedberg
12 years, 4 months ago #3
http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generat...
File src/client/windows/crash_generation/crash_generation_client.cc (right):

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generat...
src/client/windows/crash_generation/crash_generation_client.cc:374: {
On 2012/06/29 20:05:26, Ted Mielczarek wrote:
> opening brace of functions goes at the end of the previous line.

Done.

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generat...
src/client/windows/crash_generation/crash_generation_client.cc:376: HANDLE
localPipe = CreateFile(pipe_name, kPipeDesiredAccess,
On 2012/06/29 20:05:26, Ted Mielczarek wrote:
> Google style for variable names is underscore_separated, not camelCase.

Done.

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generat...
src/client/windows/crash_generation/crash_generation_client.cc:379: if
(INVALID_HANDLE_VALUE != localPipe) {
On 2012/06/29 20:05:26, Ted Mielczarek wrote:
> The order of operands here is reversed compared to elsewhere in this file
(like
> ConnectToPipe up above).

Done, although I personally prefer const != lval to avoid accidental assigments.

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/crash_generat...
src/client/windows/crash_generation/crash_generation_client.cc:386: else {
On 2012/06/29 20:05:26, Ted Mielczarek wrote:
> } else {

Done.

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/handler/excep...
File src/client/windows/handler/exception_handler.cc (right):

http://breakpad.appspot.com/406002/diff/6001/src/client/windows/handler/excep...
src/client/windows/handler/exception_handler.cc:151: if (pipe_name != NULL ||
pipe_handle != 0) {
On 2012/06/29 20:05:26, Ted Mielczarek wrote:
> You pass NULL as the missing pipe handle value, so maybe you should compare to
> that as well for sanity?

Done.
Sign in to reply to this message.

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