[PATCH] D38210: [ubsan] Port the function sanitizer to C
Peter Collingbourne via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 15:44:59 PDT 2017
pcc added a comment.
Wouldn't we get false positives if there is an indirect call in C++ code that calls into C code (or vice versa)?
I think I'd prefer it if we came up with a precise encoding of function types that was independent of RTTI, and use it in all languages. One possibility would be to represent each function type with an object of size 1 whose name contains the mangled function type, and use its address as the identity of the function type.
https://reviews.llvm.org/D38210
More information about the cfe-commits
mailing list