aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-03-18 06:55:31 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commitcd345f5c03e504faca874e1da74bc966a379cedb (patch)
tree70adff20fa229a1d60872d20537f5b27eb54942b /malloc/alloc_buffer_alloc_array.c
parentc0ba8ad1fe451f2849ce7c6fdb477c94471d5d25 (diff)
downloadglibc-cd345f5c03e504faca874e1da74bc966a379cedb.tar.xz
glibc-cd345f5c03e504faca874e1da74bc966a379cedb.zip
cheri: fix invalid pointer use after realloc in localealias
This code updates pointers to a reallocated buffer to point to the new buffer. It is not conforming (does arithmetics with freed pointers), but it also creates invalid capabilities because the provenance is derived from the original freed pointers instead of the new buffer. Change the arithmetics so provenance is derived from the new buffer. The conformance issue is not fixed.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions