mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
asan: pef: buffer overflow
* pef.c (bfd_pef_parse_traceback_table): Correct size moved when stripping leading dot.
This commit is contained in:
@ -181,7 +181,7 @@ bfd_pef_parse_traceback_table (bfd *abfd,
|
|||||||
|
|
||||||
/* Strip leading period inserted by compiler. */
|
/* Strip leading period inserted by compiler. */
|
||||||
if (namebuf[0] == '.')
|
if (namebuf[0] == '.')
|
||||||
memmove (namebuf, namebuf + 1, name.name_len + 1);
|
memmove (namebuf, namebuf + 1, name.name_len);
|
||||||
|
|
||||||
sym->name = namebuf;
|
sym->name = namebuf;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user