]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: avoid dangling pointers into freed memory
authorAlan Modra <amodra@gmail.com>
Sun, 23 Feb 2025 10:35:00 +0000 (21:05 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 23 Feb 2025 10:35:00 +0000 (21:05 +1030)
commit70b4fd3dc795f90014b7cb2f0c82c4f81edb889e
tree41978a9e7edcdf4360d89b07f4c5be3cc0f3ed6b
parenta021382482a6c891d74d302a598688f447ae97e0
gas: avoid dangling pointers into freed memory

The oss-fuzz gas fuzzer is quite broken in that it doesn't
reinitialise all gas and bfd static variables between runs.  Since gas
naughtily modifies bfd_und_section and bfd_abs_section those bfd
statics can hold pointers into freed memory between runs.
This patch fixes oss-fuzz issue 398060144.
gas/subsegs.c