[llvm-branch-commits] [compiler-rt] [TySan] Fix struct access with different bases (PR #108385)

Tavian Barnes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Sep 12 13:02:25 PDT 2024


tavianator wrote:

I guess the bug there is that the memcpy() interceptor literally copies the dynamic type from `node->next` to `list->head`.  Then `list->head` is accessed but tysan thinks the memory has type `struct node::next` which doesn't match.

https://github.com/llvm/llvm-project/pull/108385


More information about the llvm-branch-commits mailing list