Fix use-after-free in tccelf.c
commit4c2b55f962f1f93959ec058dbc9963a23828187b
authorMichael Matz <matz@suse.de>
Sun, 16 Jun 2019 20:06:07 +0000 (16 22:06 +0200)
committerMichael Matz <matz@suse.de>
Sun, 16 Jun 2019 20:06:07 +0000 (16 22:06 +0200)
treeb6c4eaf4b76ae120ccdf8ee2270dd028e2aa6075
parent47722a8c2ebd9575b0111fade551863f972478cc
Fix use-after-free in tccelf.c

build_got might realloc the symbol table (for the _GLOBAL_OFFSET_TABLE_
symbol), so we can't reuse sym (a pointer into it) after build_got.
Using it isn't necessary, as we pass the sym_index to put_got_entry,
and that recomputes sym.
tccelf.c