diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-07-12 11:11:05 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:53 +0100 |
commit | 6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99 (patch) | |
tree | ff7f0a3c4cad88c36865b7d57dd7ed4493e7892d /sysdeps/unix/sysv/linux/malloc-hugepages.c | |
parent | db3c584cbf398c47fe3c9e9428bc6512cb4a2f23 (diff) | |
download | glibc-6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99.tar glibc-6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99.tar.gz glibc-6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99.tar.bz2 glibc-6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99.zip |
cheri: fix pointer tagging in tsearch
USE_MALLOC_LOW_BIT should work for capabilities too, but we need to
ensure that pointer provenance is right: the red/black flag is
computed as uintptr_t, but with uintptr_t | uintptr_t it's not clear
which side provides the provenance.
So use unsigned int type for the flag (which is the type used in case
of !USE_MALLOC_LOW_BIT anyway), then unsigned int | uintptr_t works.
The type of RED is corrected too to match unsigned int.
Diffstat (limited to 'sysdeps/unix/sysv/linux/malloc-hugepages.c')
0 files changed, 0 insertions, 0 deletions