about summary refs log tree commit diff
path: root/misc/bug18240.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2021-07-12 11:11:05 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commitc0ba8ad1fe451f2849ce7c6fdb477c94471d5d25 (patch)
treeb5e7be1fb5d879369110427ca55f7a3cb33c14d2 /misc/bug18240.c
parentcf95053a832df4dc3c6f72de76d366856cdf7eae (diff)
downloadglibc-c0ba8ad1fe451f2849ce7c6fdb477c94471d5d25.tar.gz
glibc-c0ba8ad1fe451f2849ce7c6fdb477c94471d5d25.tar.xz
glibc-c0ba8ad1fe451f2849ce7c6fdb477c94471d5d25.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 'misc/bug18240.c')
0 files changed, 0 insertions, 0 deletions