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

Issue 813473002: DCHECK_LE for cr_ngroups vs arraysize(cr_groups) (Closed)

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

Description

DCHECK_LE for cr_ngroups vs arraysize(cr_groups) This DCHECK fails for me locally as [----------] 3 tests from ProcessInfo [ RUN ] ProcessInfo.Self [70989:10546846:20141216,112509.948519:FATAL process_info_mac.cc:114] Check failed: static_cast<size_t>(ngroups) < (sizeof(ArraySizeHelper(kern_proc_info_.kp_eproc.e_ucred.cr_groups))) (16 vs. 16). Abort trap: 6 It doesn't seem to happen on the waterfall, so maybe I'm building against an incorrect header? I don't particularly understand the code, but assuming it's normal 0-based array, perhaps it should be a DCHECK_LE in any case. R=mark@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4a5d21528e5a7da84352a447c0df2e341159a53e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M util/posix/process_info_mac.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
scottmg
6 years ago (2014-12-16 19:40:21 UTC) #1
Mark Mentovai
The headers are fine. What does it show when you run “id?” How many groups ...
6 years ago (2014-12-16 19:53:38 UTC) #2
Mark Mentovai
DCHECK_LE is correct. LGTM.
6 years ago (2014-12-16 20:14:52 UTC) #3
scottmg
6 years ago (2014-12-16 20:18:37 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4a5d21528e5a7da84352a447c0df2e341159a53e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698