Clear plugin_data memory
Clear plugin_data memory since it may be uninitialized. * plugin.c (add_symbols): Clear plugin_data memory.
This commit is contained in:
parent
50128d0cab
commit
1d07a805c8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user