asan: readelf: use after free in process_archive
authorAlan Modra <amodra@gmail.com>
Sat, 27 Jun 2020 03:17:45 +0000 (12:47 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 27 Jun 2020 03:25:35 +0000 (12:55 +0930)
commitcfc16775b7678e1ad8f9fce048652defd78e3787
treec96a499b820e11d40ef063f32dd3e8243f47ff0b
parentaa57a9d3b6b471e665639a6d927061cbf2529e2e
asan: readelf: use after free in process_archive

This tidies up in cases where fuzzed thin archives hit the error return
path in setup_nested_archive.

* elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
after freeing.
(release_archive): Set fields of arch to NULL after freeing.
binutils/ChangeLog
binutils/elfcomm.c
This page took 0.025693 seconds and 4 git commands to generate.