We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62bf7c commit c3c9611Copy full SHA for c3c9611
libcxx/src/include/overridable_function.h
@@ -116,6 +116,11 @@ _LIBCPP_HIDE_FROM_ABI bool __is_function_overridden(_Ret (*__fptr)(_Args...)) no
116
uintptr_t __end = reinterpret_cast<uintptr_t>(&__stop___lcxx_override);
117
uintptr_t __ptr = reinterpret_cast<uintptr_t>(__fptr);
118
119
+# if __has_feature(ptrauth_calls)
120
+ // We must pass a void* to ptrauth_strip since it only accepts a pointer type. See full explanation above.
121
+ __ptr = reinterpret_cast<uintptr_t>(ptrauth_strip(reinterpret_cast<void*>(__ptr), ptrauth_key_function_pointer));
122
+# endif
123
+
124
return __ptr < __start || __ptr > __end;
125
}
126
_LIBCPP_END_NAMESPACE_STD
0 commit comments