projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1523df1
)
asan: pef: buffer overflow
author
Alan Modra
<amodra@gmail.com>
Sun, 27 Nov 2022 23:46:41 +0000
(10:16 +1030)
committer
Alan Modra
<amodra@gmail.com>
Mon, 28 Nov 2022 06:59:11 +0000
(17:29 +1030)
* pef.c (bfd_pef_parse_traceback_table): Correct size moved when
stripping leading dot.
bfd/pef.c
patch
|
blob
|
history
diff --git
a/bfd/pef.c
b/bfd/pef.c
index 334d802eb75a56210e5c028bb6b00058952c3def..e8672a40da79543fa9979f784850374196745ae9 100644
(file)
--- a/
bfd/pef.c
+++ b/
bfd/pef.c
@@
-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;