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:
50128d0
)
Clear plugin_data memory
author
H.J. Lu
<hjl.tools@gmail.com>
Tue, 11 Feb 2020 12:26:00 +0000
(
04:26
-0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Tue, 11 Feb 2020 12:27:27 +0000
(
04:27
-0800)
Clear plugin_data memory since it may be uninitialized.
* plugin.c (add_symbols): Clear plugin_data memory.
bfd/ChangeLog
patch
|
blob
|
history
bfd/plugin.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index fef8bc43004ec2c9e9e06c8f859ad0657db6a0a9..57b1959ee29f36ce520895828eeeaf899dac14be 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,7
@@
+2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
+
+ * plugin.c (add_symbols): Clear plugin_data memory.
+
2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/25355
diff --git
a/bfd/plugin.c
b/bfd/plugin.c
index 1edcb57bf3a358a6f01d44c756a3a0bac45a6674..5681a6a2913df2f6d21ecd34cc427636fe47c11e 100644
(file)
--- a/
bfd/plugin.c
+++ b/
bfd/plugin.c
@@
-448,6
+448,8
@@
add_symbols (void * handle,
size_t sym_info_size, name_length;
int i;
+ memset (plugin_data, 0, sizeof (*plugin_data));
+
abfd->tdata.plugin_data = plugin_data;
/* NB: LTO symbols are owned by LTO plugin. Create a copy so