From eddf109b52fcf098a9dff0c5e19bd609bc976cc6 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Sat, 19 Mar 2022 19:19:31 +0000 Subject: [PATCH] binutils: fix fuzz_as (#7402) macro_init needs to be called. Ref: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43790#c2 --- projects/binutils/fuzz_as.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/binutils/fuzz_as.c b/projects/binutils/fuzz_as.c index 1051143f3..9cd4eb0d5 100644 --- a/projects/binutils/fuzz_as.c +++ b/projects/binutils/fuzz_as.c @@ -44,6 +44,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { read_begin (); input_scrub_begin (); expr_begin (); + macro_init (flag_macro_alternate, flag_mri, 0, macro_expr); + output_file_create (out_file_name); itbl_init (); dwarf2_init ();