Skip to content

Commit 98957fe

Browse files
Update clang/lib/Headers/ptrauth.h
Co-authored-by: John McCall <[email protected]>
1 parent 65d6370 commit 98957fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Headers/ptrauth.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
383383
(void)__old_data; \
384384
(void)__new_key; \
385385
(void)__new_data; \
386-
__value + *(int *)((char *)__value + __addend); \
386+
const char *__value_tmp = (const char*) (__value); \
387+
(void*) (__value_tmp + *(const int *)(__value_tmp + (__addend))); \
387388
})
388389

389390
#define ptrauth_auth_function(__value, __old_key, __old_data) \

0 commit comments

Comments
 (0)