| Issue |
238329
|
| Summary |
[LLVM][Clang] Fix Control Flow Integrity (CFI) violations across LLVM and Clang
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
rjodinchr
|
This is an umbrella issue tracking fixes for Control Flow Integrity (CFI) violations encountered when building and running LLVM and Clang with CFI enabled.
Several patterns in the codebase trigger CFI failures at runtime, such as:
- Casting tagged or opaque pointers to polymorphic class pointers before inspecting or stripping tag bits.
- Casting raw uninitialized memory buffers to polymorphic class pointers prior to object construction (before placement `new` initializes the vtable).
- Downcasting `this` from a base class to a derived class inside a base class constructor before the derived object's lifetime has begun.
Individual PRs addressing these violations will be linked to this issue.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs