diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-03-11 14:09:56 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-03-26 11:03:06 +0000 |
commit | 8ae909a533b12221c3fd0c2331b13d99d9790718 (patch) | |
tree | 139dd8b6670e894ab1aa576cbbbf5b33d2484df7 /nss | |
parent | 42cc96066b22ba065db11096c78881a55e45def4 (diff) | |
download | glibc-8ae909a533b12221c3fd0c2331b13d99d9790718.tar.gz glibc-8ae909a533b12221c3fd0c2331b13d99d9790718.tar.xz glibc-8ae909a533b12221c3fd0c2331b13d99d9790718.zip |
malloc: Fix a potential realloc issue with memory tagging
At an _int_free call site in realloc the wrong size was used for tag clearing: the chunk header of the next chunk was also cleared which in practice may work, but logically wrong. The tag clearing is moved before the memcpy to save a tag computation, this avoids a chunk2mem. Another chunk2mem is removed because newmem does not have to be recomputed. Whitespaces got fixed too. Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'nss')
0 files changed, 0 insertions, 0 deletions