authorgravatar for 28024277+tjog@users.noreply.github.comtjog <28024277+tjog@users.noreply.github.com> 2025-05-03 17:17:07+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-05 07:25:55+02:00
logf592674642ba79601e0eeda0492063c40e2206db
tree0a1e4f5a9d1caab80ca517363450ac5c252ea655
parent566e4ab6b19fb8075dd591968eeb4cad53679cfd
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

link+macho+fuzz: use correct input type

A debug build of the compiler detects invalid union access since `classifyInputFile` detects `.archive` and this line constructed a `.object` input.

1 files changed, 1 insertions(+), 1 deletions(-)

src/link/MachO.zig+1-1
...@@ -416,7 +416,7 @@ pub fn flushModule(...@@ -416,7 +416,7 @@ pub fn flushModule(
416 }416 }
417417
418 if (comp.config.any_fuzz) {418 if (comp.config.any_fuzz) {
419 try positionals.append(try link.openObjectInput(diags, comp.fuzzer_lib.?.full_object_path));419 try positionals.append(try link.openArchiveInput(diags, comp.fuzzer_lib.?.full_object_path, false, false));
420 }420 }
421421
422 if (comp.ubsan_rt_lib) |crt_file| {422 if (comp.ubsan_rt_lib) |crt_file| {