[all-commits] [llvm/llvm-project] 038731: [ubsan] Remove -fsanitizer=vptr from -fsanitizer=u...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Sat Mar 1 13:22:08 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 038731c709c665634714275996559c21f36372f2
      https://github.com/llvm/llvm-project/commit/038731c709c665634714275996559c21f36372f2
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-03-01 (Sat, 01 Mar 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/docs/UndefinedBehaviorSanitizer.rst
    M clang/include/clang/Basic/Sanitizers.def
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/test/Driver/fsanitize.c
    M clang/test/Driver/sanitizer-ld.c

  Log Message:
  -----------
  [ubsan] Remove -fsanitizer=vptr from -fsanitizer=undefined (#121115)

This makes `undefined` more consistent.

`vptr` check adds additional constraints:
1. trap is off,  or silently disabled
2. rtti is no, or compilation error
3. c++abi, or linking error

So it's not obvious if `-fsanitizer=undefined`
will have it on.

https://discourse.llvm.org/t/rfc-remove-vptr-from-undefined/83830



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list