binutils: fix fuzz_as (#7402)

macro_init needs to be called.

Ref: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43790#c2
This commit is contained in:
DavidKorczynski 2022-03-19 19:19:31 +00:00 committed by GitHub
parent 36d589d9d5
commit eddf109b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 ();