[clang] [PAC] Authenticate function pointers in UBSan type checks (PR #99590)
Anton Korobeynikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 18 21:32:50 PDT 2024
================
@@ -13,6 +15,8 @@ void fun() {}
// ARM: ptrtoint ptr {{.*}} to i32, !nosanitize !5
// ARM: and i32 {{.*}}, -2, !nosanitize !5
// ARM: inttoptr i32 {{.*}} to ptr, !nosanitize !5
+// 64e: %[[STRIPPED:.*]] = ptrtoint ptr {{.*}} to i64, !nosanitize
+// 64e: call i64 @llvm.ptrauth.auth(i64 %[[STRIPPED]], i32 0, i64 0), !nosanitize
----------------
asl wrote:
Sadly we are not checking full sequence here :( But this is not a problem of this patch, it is just underlying test done this way
https://github.com/llvm/llvm-project/pull/99590
More information about the cfe-commits
mailing list