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

Issue 2542163002: Fix invalid casts from ComplexFeature to SimpleFeature. (Closed)

Created:
4 years ago by krasin1
Modified:
4 years ago
Reviewers:
Devlin, Nico, tbarzic
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix invalid casts from ComplexFeature to SimpleFeature. UBSan and CFI made the following invalid cast: ../../tools/json_schema_compiler/test/features_generation_unittest.cc:102:12: runtime error: downcast of address 0x1f55b1c64040 which does not point to an object of type 'APIFeature' (aka 'extensions::SimpleFeat ure') 0x1f55b1c64040: note: object is of type 'extensions::ComplexFeature' It is currently impossible to catch regressions like these with the CQ, but there is a work on getting a UBSan Vptr trybot there. BUG=612594, 670404 Committed: https://crrev.com/f37d4947c6fd5ccb4189f2e24a6f0031ee37676d Cr-Commit-Position: refs/heads/master@{#435713}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove debug printf #

Patch Set 3 : Remove unnecessary casts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M tools/json_schema_compiler/test/features_generation_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
krasin1
4 years ago (2016-12-01 18:44:11 UTC) #2
tbarzic
+rdevlin.cronin, who has OWNER powers for this. I think the real issue here is that ...
4 years ago (2016-12-01 19:02:29 UTC) #3
tbarzic
adding rdevlin for real
4 years ago (2016-12-01 19:03:06 UTC) #5
krasin1
>I think the real issue here is that APIFeature overrides SimpleFeature, even though there are ...
4 years ago (2016-12-01 19:06:23 UTC) #6
Devlin
On 2016/12/01 19:06:23, krasin1 wrote: > >I think the real issue here is that APIFeature ...
4 years ago (2016-12-01 19:34:14 UTC) #7
krasin1
On 2016/12/01 19:34:14, Devlin wrote: > On 2016/12/01 19:06:23, krasin1 wrote: > > >I think ...
4 years ago (2016-12-01 19:36:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542163002/1
4 years ago (2016-12-01 19:37:14 UTC) #10
Nico
(i unchecked cq since this still has the debug printf in it that tbarzic commented ...
4 years ago (2016-12-01 19:45:05 UTC) #14
krasin1
https://codereview.chromium.org/2542163002/diff/1/tools/json_schema_compiler/test/features_generation_unittest.cc File tools/json_schema_compiler/test/features_generation_unittest.cc (right): https://codereview.chromium.org/2542163002/diff/1/tools/json_schema_compiler/test/features_generation_unittest.cc#newcode99 tools/json_schema_compiler/test/features_generation_unittest.cc:99: fprintf(stderr, "GetAPIFeature(\"%s\")\n", name.c_str()); On 2016/12/01 19:02:29, tbarzic wrote: > ...
4 years ago (2016-12-01 20:41:13 UTC) #15
krasin1
On 2016/12/01 19:45:05, Nico wrote: > (i unchecked cq since this still has the debug ...
4 years ago (2016-12-01 20:41:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542163002/40001
4 years ago (2016-12-01 20:42:09 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-01 21:15:58 UTC) #22
commit-bot: I haz the power
4 years ago (2016-12-01 21:18:10 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f37d4947c6fd5ccb4189f2e24a6f0031ee37676d
Cr-Commit-Position: refs/heads/master@{#435713}

Powered by Google App Engine
This is Rietveld 408576698