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

Issue 1904553002: Check IPC messages for banned types on Linux and Android. (Closed)

Created:
4 years, 8 months ago by Dmitry Skiba
Modified:
4 years, 8 months ago
Reviewers:
Dirk Pranke, Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check IPC messages for banned types on Android. This change enables check-ipc option for find-bad-constructs Clang plugin on Android. With that option Clang plugin will check that the following types are not used 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>) These types are banned because they are not stable across 32/64-bit platforms. BUG=581409 Committed: https://crrev.com/972c22efaddb8a541351329c9e7609d04d75b95f Cr-Commit-Position: refs/heads/master@{#389850}

Patch Set 1 #

Patch Set 2 : Exclude chromeos and chromecast #

Patch Set 3 : Remove is_chromecast from GN #

Patch Set 4 : Enable only on Android (where chromecast is not enabled?) #

Patch Set 5 : rebase #

Patch Set 6 : Re-enable Linux and use defined(is_chromecast) #

Total comments: 1

Patch Set 7 : Use import, remove defined() hack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M build/common.gypi View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M build/config/clang/BUILD.gn View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Dmitry Skiba
Please review.
4 years, 8 months ago (2016-04-19 20:55:29 UTC) #2
Dirk Pranke
this seems basically okay to me, but it might be better to have thakis@ approve ...
4 years, 8 months ago (2016-04-19 21:37:40 UTC) #4
Dmitry Skiba
Nico: PTAL Note that I had to disable running this on Linux because I couldn't ...
4 years, 8 months ago (2016-04-25 15:21:29 UTC) #5
Nico
lgtm, but we don't build many configurations with clang on android (i think only asan ...
4 years, 8 months ago (2016-04-25 15:23:53 UTC) #7
Dmitry Skiba
On 2016/04/25 15:23:53, Nico wrote: > lgtm, but we don't build many configurations with clang ...
4 years, 8 months ago (2016-04-25 18:12:23 UTC) #8
Dirk Pranke
https://codereview.chromium.org/1904553002/diff/100001/build/config/clang/BUILD.gn File build/config/clang/BUILD.gn (right): https://codereview.chromium.org/1904553002/diff/100001/build/config/clang/BUILD.gn#newcode54 build/config/clang/BUILD.gn:54: !(defined(is_chromecast) && is_chromecast)) { import("//build/config/chromecast_build.gni") up after line 5, ...
4 years, 8 months ago (2016-04-25 18:41:42 UTC) #9
Dmitry Skiba
On 2016/04/25 18:41:42, Dirk Pranke wrote: > https://codereview.chromium.org/1904553002/diff/100001/build/config/clang/BUILD.gn > File build/config/clang/BUILD.gn (right): > > https://codereview.chromium.org/1904553002/diff/100001/build/config/clang/BUILD.gn#newcode54 ...
4 years, 8 months ago (2016-04-26 17:11:39 UTC) #10
Dirk Pranke
lgtm
4 years, 8 months ago (2016-04-26 18:30:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904553002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904553002/120001
4 years, 8 months ago (2016-04-26 18:40:30 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-26 19:34:30 UTC) #16
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 19:36:55 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/972c22efaddb8a541351329c9e7609d04d75b95f
Cr-Commit-Position: refs/heads/master@{#389850}

Powered by Google App Engine
This is Rietveld 408576698