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

Issue 7234009: sandbox: avoid an extra if() which is not required and is wrong (Closed)

Created:
9 years, 6 months ago by Timur Iskhodzhanov
Modified:
9 years, 5 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Avoid an extra if() which is not required and is wrong Info: a) args[i] is uninitialized for (i >= ipc_params->GetParamsCount()) and sometimes for smaller (i) as well (see GetArgs()). Hence, if() is wrong. b) However, when args[i] is uninitialized the ipc_params->args[i] holds INVALID_TYPE. Hence, the if() is redundant. BUG=87078 TEST=no more uninit reports under Dr. Memory Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90742

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -13 lines) Patch
M sandbox/src/sharedmem_ipc_server.cc View 1 1 chunk +11 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Timur Iskhodzhanov
9 years, 6 months ago (2011-06-22 13:55:46 UTC) #1
Finnur
I'll defer to cpu. He knows this code much better than I.
9 years, 6 months ago (2011-06-22 15:41:25 UTC) #2
cpu_(ooo_6.6-7.5)
looks good to me but I want a second opinion from Ricardo.
9 years, 6 months ago (2011-06-22 17:37:03 UTC) #3
rvargas (doing something else)
LGTM. It is redundant from the point of view that delete NULL is fine.
9 years, 6 months ago (2011-06-23 18:45:23 UTC) #4
commit-bot: I haz the power
9 years, 5 months ago (2011-06-28 09:58:22 UTC) #5
Change committed as 90742

Powered by Google App Engine
This is Rietveld 408576698