asan: double free sb_kill
authorAlan Modra <amodra@gmail.com>
Mon, 6 Jun 2022 04:57:17 +0000 (14:27 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 8 Jun 2022 06:52:15 +0000 (16:22 +0930)
commit38ef9f36cf2c31bef5d3c0f122cadd5b8c291c0e
treea768fdb60f6018254b11aa4bc68738233edda633
parentbcdbf606bc054bd1fa9a1c8978f2d3a57e42adf4
asan: double free sb_kill

oss-fuzz hits a flaky crash with a double-free.  I think this is due
to gas static state not being reinitialised between testcases, a bug
with oss-fuzz not gas.  Anyway, this patch should avoid the problem.

* input-scrub.c (input_scrub_push): Move init of sb_index..
(input_scrub_reinit): ..to here.
gas/input-scrub.c