aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.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-10-27 14:46:53 +0100
commitcf06645316e11077afbc9731693fd19e55619f59 (patch)
tree4b032d6f0a38d84e46e0694574dd38934e58d3f2 /malloc/malloc.c
parent6de52d57a1dd1f85ccd9bdbb3c5231e36dd00a99 (diff)
downloadglibc-cf06645316e11077afbc9731693fd19e55619f59.tar
glibc-cf06645316e11077afbc9731693fd19e55619f59.tar.gz
glibc-cf06645316e11077afbc9731693fd19e55619f59.tar.bz2
glibc-cf06645316e11077afbc9731693fd19e55619f59.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/malloc.c')
0 files changed, 0 insertions, 0 deletions