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

Issue 1810243002: Check for unstable types in IPC messages. (Closed)

Created:
4 years, 9 months ago by Dmitry Skiba
Modified:
4 years, 5 months ago
Reviewers:
Nico, jam, dcheng, somtuy41
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check for unstable types in IPC messages. We want IPC messages to be stable so that 32-bit and 64-bit processes can talk to each other. This change adds a check to find-bad-constructs Clang plugin to detect usage of the following unstable types in IPC messages: 1. Types: long / unsigned long (but not typedefs to) 2. Typedefs: intmax_t, uintmax_t, intptr_t, uintptr_t, wint_t, size_t, rsize_t, ssize_t, ptrdiff_t, dev_t, off_t, clock_t, time_t, suseconds_t (including typedefs to) 3. Any template referencing the above (e.g. std::vector<size_t>) BUG=581409 Committed: https://crrev.com/2bc894640e0423cad921aed8d234adc375999771 Cr-Commit-Position: refs/heads/master@{#385469}

Patch Set 1 #

Patch Set 2 : Support delayed-template-parsing; remove flaky test; don't visit instantiations #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : Ignore system headers; fix comment #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1069 lines, -4 lines) Patch
M ipc/ipc_message_macros.h View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_utils.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M tools/clang/plugins/CMakeLists.txt View 1 chunk +2 lines, -1 line 0 comments Download
A tools/clang/plugins/CheckIPCVisitor.h View 1 1 chunk +99 lines, -0 lines 0 comments Download
A tools/clang/plugins/CheckIPCVisitor.cpp View 1 chunk +288 lines, -0 lines 0 comments Download
M tools/clang/plugins/FindBadConstructsAction.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.h View 1 5 chunks +12 lines, -0 lines 0 comments Download
M tools/clang/plugins/FindBadConstructsConsumer.cpp View 1 2 3 4 5 5 chunks +71 lines, -0 lines 0 comments Download
M tools/clang/plugins/Options.h View 1 chunk +1 line, -1 line 0 comments Download
A tools/clang/plugins/tests/ipc.cpp View 1 1 chunk +353 lines, -0 lines 0 comments Download
A tools/clang/plugins/tests/ipc.flags View 1 chunk +1 line, -0 lines 0 comments Download
A tools/clang/plugins/tests/ipc.txt View 1 1 chunk +224 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
Dmitry Skiba
Fixed version of (reverted) CL from https://codereview.chromium.org/1665363002 Guys, I would appreciate of you try this ...
4 years, 9 months ago (2016-03-18 17:01:33 UTC) #2
jam
On 2016/03/18 17:01:33, Dmitry Skiba wrote: > Fixed version of (reverted) CL from https://codereview.chromium.org/1665363002 is ...
4 years, 9 months ago (2016-03-18 18:09:46 UTC) #3
dcheng
On 2016/03/18 at 18:09:46, jam wrote: > On 2016/03/18 17:01:33, Dmitry Skiba wrote: > > ...
4 years, 9 months ago (2016-03-19 00:11:32 UTC) #4
Dmitry Skiba
On 2016/03/18 18:09:46, jam wrote: > On 2016/03/18 17:01:33, Dmitry Skiba wrote: > > Fixed ...
4 years, 9 months ago (2016-03-21 17:49:36 UTC) #5
jam
On 2016/03/21 17:49:36, Dmitry Skiba wrote: > On 2016/03/18 18:09:46, jam wrote: > > On ...
4 years, 9 months ago (2016-03-24 21:56:31 UTC) #6
Dmitry Skiba
Finally checked in Windows - tests pass (when ran manually), no crashes.
4 years, 9 months ago (2016-03-25 16:48:24 UTC) #7
Dmitry Skiba
Nico, Daniel - please review?
4 years, 8 months ago (2016-03-30 18:18:32 UTC) #8
dcheng
https://codereview.chromium.org/1810243002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1810243002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode940 tools/clang/plugins/FindBadConstructsConsumer.cpp:940: // template trace method bodies. Fix this comment. Also, ...
4 years, 8 months ago (2016-03-30 18:29:22 UTC) #9
Dmitry Skiba
On 2016/03/30 18:29:22, dcheng wrote: > https://codereview.chromium.org/1810243002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp > File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): > > https://codereview.chromium.org/1810243002/diff/20001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode940 > ...
4 years, 8 months ago (2016-03-30 23:08:54 UTC) #10
dcheng
https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode100 tools/clang/plugins/FindBadConstructsConsumer.cpp:100: bool VisitFunctionDecl(FunctionDecl* function_decl) { Nico, do you recall your ...
4 years, 8 months ago (2016-04-04 06:21:44 UTC) #11
Nico
https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode100 tools/clang/plugins/FindBadConstructsConsumer.cpp:100: bool VisitFunctionDecl(FunctionDecl* function_decl) { On 2016/04/04 06:21:43, dcheng wrote: ...
4 years, 8 months ago (2016-04-05 18:51:45 UTC) #12
dcheng
https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode100 tools/clang/plugins/FindBadConstructsConsumer.cpp:100: bool VisitFunctionDecl(FunctionDecl* function_decl) { On 2016/04/05 at 18:51:45, Nico ...
4 years, 8 months ago (2016-04-05 18:58:47 UTC) #13
Dmitry Skiba
On 2016/04/05 18:58:47, dcheng wrote: > https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp > File tools/clang/plugins/FindBadConstructsConsumer.cpp (right): > > https://codereview.chromium.org/1810243002/diff/60001/tools/clang/plugins/FindBadConstructsConsumer.cpp#newcode100 > ...
4 years, 8 months ago (2016-04-05 22:13:51 UTC) #14
dcheng
LGTM
4 years, 8 months ago (2016-04-06 00:20:52 UTC) #15
somtuy41
4 years, 8 months ago (2016-04-06 04:22:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1810243002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1810243002/100001
4 years, 8 months ago (2016-04-06 05:38:39 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/191944)
4 years, 8 months ago (2016-04-06 06:48:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1810243002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1810243002/100001
4 years, 8 months ago (2016-04-06 15:12:10 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-06 15:51:16 UTC) #25
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/2bc894640e0423cad921aed8d234adc375999771 Cr-Commit-Position: refs/heads/master@{#385469}
4 years, 8 months ago (2016-04-06 15:53:10 UTC) #27
somtuy41
4 years, 5 months ago (2016-07-19 09:01:10 UTC) #28
Message was sent while issue was closed.
เมื่อ 6 เม.ย. 2016 22:53 "commit-bot@chromium.org via
codereview.chromium.org" <reply@chromiumcodereview-hr.appspotmail.com>
เขียนว่า:
>
> Patchset 6 (id:??) landed as
> https://crrev.com/2bc894640e0423cad921aed8d234adc375999771
> Cr-Commit-Position: refs/heads/master@{#385469}
>
> https://codereview.chromium.org/1810243002/

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698