]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
tc-i386.c fix for oss-fuzz gas fuzzing
authorAlan Modra <amodra@gmail.com>
Mon, 10 Feb 2025 02:44:16 +0000 (13:14 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 10 Feb 2025 02:59:08 +0000 (13:29 +1030)
oss-fuzz fuzz_as is seriously broken with respect to gas static
variables, so much so that most fuzz_as reports should simply be
ignored.  This patch is a fix for
https://oss-fuzz.com/testcase-detail/6268463220654080

* config/tc-i386.c (i386_md_end): Clear GOT_symbol.

gas/config/tc-i386.c

index 62058f7e993170939cf9bcac6fef996d9c7c5337..538e3fb06ad9806197fb4bbc90729943adfced91 100644 (file)
@@ -3612,6 +3612,7 @@ i386_md_end (void)
 {
   htab_delete (op_hash);
   htab_delete (reg_hash);
+  GOT_symbol = NULL;
 }
 \f
 #ifdef DEBUG386