diff options
author | Alan Modra <amodra@gmail.com> | 2022-11-28 10:16:41 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-11-28 17:29:11 +1030 |
commit | 970a38be462bda875ac495c51e93af728a8c98de (patch) | |
tree | 4a653eaa1078da6d3295eacdd4dc0cef201b88ed /bfd/pef.c | |
parent | 1523df14d74efb9f4095060b459c392b9fdbae1e (diff) | |
download | fsf-binutils-gdb-970a38be462bda875ac495c51e93af728a8c98de.zip fsf-binutils-gdb-970a38be462bda875ac495c51e93af728a8c98de.tar.gz fsf-binutils-gdb-970a38be462bda875ac495c51e93af728a8c98de.tar.bz2 |
asan: pef: buffer overflow
* pef.c (bfd_pef_parse_traceback_table): Correct size moved when
stripping leading dot.
Diffstat (limited to 'bfd/pef.c')
-rw-r--r-- | bfd/pef.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -181,7 +181,7 @@ bfd_pef_parse_traceback_table (bfd *abfd, /* Strip leading period inserted by compiler. */ if (namebuf[0] == '.') - memmove (namebuf, namebuf + 1, name.name_len + 1); + memmove (namebuf, namebuf + 1, name.name_len); sym->name = namebuf; |