HomePhabricator

Finish "Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO"

Description

Finish "Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO"

i.e., recent 5745eccef54ddd3caca278d1d292a88b2281528b:

  • Bump the function_type_mismatch handler version, as its signature has changed.
  • The function_type_mismatch handler can return successfully now, so SanitizerKind::Function must be AlwaysRecoverable (like for SanitizerKind::Vptr).
  • But the minimal runtime would still unconditionally treat a call to the function_type_mismatch handler as failure, so disallow -fsanitize=function in combination with -fsanitize-minimal-runtime (like it was already done for -fsanitize=vptr).
  • Add tests.

Differential Revision: https://reviews.llvm.org/D61479

Details

Committed
sbergJul 15 2019, 11:23 PM
Differential Revision
D61479: Finish "Adapt -fsanitize=function to SANITIZER_NON_UNIQUE_TYPEINFO"
Branches
Unknown
Tags
Unknown