diff options
author | Tom de Vries <tdevries@suse.de> | 2025-03-13 07:49:33 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2025-03-13 07:49:33 +0100 |
commit | 51729ea0905d1f688b7fd2ea769e69b29daa1b7c (patch) | |
tree | 275b0b814fdf6896da6b3f0775af1324ea434835 /gas/ChangeLog-2005 | |
parent | f9f033220046f011aeb259469cb15fe8141b213b (diff) | |
download | gdb-master.zip gdb-master.tar.gz gdb-master.tar.bz2 |
After compiling gdb with -fstack-protector-all, and running test-case
gdb.reverse/getrandom.exp on aarch64-linux, we run into
"Stack smashing detected" in function aarch64_record_asimd_load_store.
This is reported in PR record/32784.
This happens due to an out-of-bounds write to local array record_buf_mem:
...
uint64_t record_buf_mem[24];
...
when recording insn:
...
B+>0xfffff7ff4d10 st1 {v0.16b-v3.16b}, [x0]
...
We can fix this by increasing the array size to 128, but rather than again
hardcoding a size, reimplement record_buf_mem as std::vector.
Tested on aarch64-linux.
Approved-By: Guinevere Larsen <guinevere@redhat.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32784
Diffstat (limited to 'gas/ChangeLog-2005')
0 files changed, 0 insertions, 0 deletions