]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[Morello/gdbserver] Fix incorrect vector resize operation
authorLuis Machado <luis.machado@arm.com>
Fri, 11 Aug 2023 06:54:25 +0000 (07:54 +0100)
committerLuis Machado <luis.machado@arm.com>
Fri, 11 Aug 2023 06:54:25 +0000 (07:54 +0100)
commite4c78b3b86fd2148c37d1870cf8bd663f49d4fe0
tree9c0f1d67e5e717e80333264c1b3bb58317c3f568
parent459784def001e3d5b1b6a18246a5e01de2a357d2
[Morello/gdbserver] Fix incorrect vector resize operation

This patch fixes an incorrect vector resize operation when reading the auxv.  A
mistake makes the current code copy data over the end of the vector buffer,
leading to memory corruption.

Fix this by having a pointer to the end of the vector buffer before resizing the
took place.
gdbserver/linux-low.cc