about summary refs log tree commit diff
path: root/nptl/tst-tls3.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-19 13:18:10 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-19 14:59:06 +0000
commitbbce0c75f35f55b9f5e43dd4fa01a82cc27bf020 (patch)
treed9ab159f3cd796bd4cc9d4e331cd8b82c501f9dc /nptl/tst-tls3.c
parentdc23cc80210799f8d8ab5b1ea2e00341e613a1a7 (diff)
downloadglibc-bbce0c75f35f55b9f5e43dd4fa01a82cc27bf020.tar.gz
glibc-bbce0c75f35f55b9f5e43dd4fa01a82cc27bf020.tar.xz
glibc-bbce0c75f35f55b9f5e43dd4fa01a82cc27bf020.zip
cheri: malloc: Fix realloc to copy all relevant bytes
New code in realloc that handles when new allocation is needed for
alignment reasons (for capability narrowing) used the wrong size in
memcpy (size was off by SIZE_SZ unless memory tagging was enabled)
and used wrongly tagged pointer for untagging the old memory.

Due to this bug realloc sometimes failed to copy tail bytes of an old
allocation to the new allocation when capability narrowing is enabled.
Diffstat (limited to 'nptl/tst-tls3.c')
0 files changed, 0 insertions, 0 deletions