diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-07-12 11:11:05 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-08-05 19:45:19 +0100 |
commit | 68822420a6da19adf0030ddc836c6968b071b467 (patch) | |
tree | 1071e60507dcfe41d1a3c93624b8256e50f4872a /intl | |
parent | 159a76a8dd93700cc5a8039e7483836d86974ce2 (diff) | |
download | glibc-68822420a6da19adf0030ddc836c6968b071b467.tar.gz glibc-68822420a6da19adf0030ddc836c6968b071b467.tar.xz glibc-68822420a6da19adf0030ddc836c6968b071b467.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 'intl')
0 files changed, 0 insertions, 0 deletions