Filza 27.2 worse_query: public and developer builds
This commit is contained in:
commit
91a6adf723
267 files changed
+42015
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// ptrauth.h replacement
|
||||
#include <stdbool.h>
|
||||
|
||||
extern bool gIsPACSupported;
|
||||
|
||||
static uint64_t __attribute((naked)) __xpaci(uint64_t a)
|
||||
{
|
||||
asm(".long 0xDAC143E0"); // XPACI X0
|
||||
asm("ret");
|
||||
}
|
||||
|
||||
static uint64_t xpaci(uint64_t a)
|
||||
{
|
||||
if(!gIsPACSupported) return a;
|
||||
|
||||
// If a looks like a non-pac'd pointer just return it
|
||||
if ((a & 0xFFFFFF0000000000) == 0xFFFFFF0000000000)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
return __xpaci(a);
|
||||
}
|
||||
Reference in new issue
Block a user