CFI: invalid cast in DeclarativeChromeContentRulesRegistryTest.ActiveRulesDoesntGrow |
||
Issue descriptionChrome Version: tip OS: Linux x86-64 What steps will reproduce the problem? (1) Build unit_tests with Control Flow Integrity: $ GYP_DEFINES='buildtype=Official' gclient sync $ gn gen out/cfi-diag '--args=is_debug=false is_cfi=true use_cfi_diag=true use_cfi_cast=true symbol_level=1 dcheck_always_on=true' --check $ ninja -C out/cfi-diag unit_tests See more details at https://www.chromium.org/developers/testing/control-flow-integrity (2) Run DeclarativeChromeContentRulesRegistryTest.ActiveRulesDoesntGrow test case: ./out/cfi-diag/unit_tests --gtest_filter=DeclarativeChromeContentRulesRegistryTest.ActiveRulesDoesntGrow Failure: ../../content/test/test_web_contents.cc:53:10: runtime error: control flow integrity check for type 'content::TestRenderFrameHost' failed during base-to-derived cast (vtable address 0x00000a65fca0) 0x00000a65fca0: note: vtable is of type 'content::RenderFrameHostImpl' 00 00 00 00 50 3c eb 01 00 00 00 00 10 e0 0e 09 00 00 00 00 10 e0 0e 09 00 00 00 00 10 e0 0e 09 This is very similar to https://crbug.com/516528 . The issue is first detected by 'CFI Linux ToT' bot in https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux%20ToT/builds/5693 and 'CFI Linux Full' bot in https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux%20Full/builds/1334 but none of the commits from the intersection look relevant.
,
Feb 3 2017
,
Feb 6 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/17c45669733a9c6acc7f3a0d095a92f118eb0e2a commit 17c45669733a9c6acc7f3a0d095a92f118eb0e2a Author: krasin <krasin@chromium.org> Date: Mon Feb 06 20:19:22 2017 Properly set up TestRenderFrameHost in DeclarativeChromeContentRulesRegistryTest. This fixes an invalid cast detected by Control Flow Integrity check. BUG= 688518 Review-Url: https://codereview.chromium.org/2678563002 Cr-Commit-Position: refs/heads/master@{#448370} [modify] https://crrev.com/17c45669733a9c6acc7f3a0d095a92f118eb0e2a/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry_unittest.cc
,
Feb 6 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by krasin@chromium.org
, Feb 3 2017