Skip to content

Commit

Permalink
Don't generate multi-return functions in wit-smith (#1699)
Browse files Browse the repository at this point in the history
This fixes a fuzz issue from #1670 which wasn't fixed at the time and
has been found on oss-fuzz.
  • Loading branch information
alexcrichton authored Jul 25, 2024
1 parent 368184c commit fafea31
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/wit-smith/src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,6 @@ impl<'a> InterfaceGenerator<'a> {
dst.push_str("func");
self.gen_params(u, dst, method)?;
if u.arbitrary()? {
dst.push_str(" -> ");
self.gen_params(u, dst, false)?;
} else if u.arbitrary()? {
dst.push_str(" -> ");
let mut fuel = self.config.max_type_size;
self.gen_type(u, &mut fuel, dst)?;
Expand Down

0 comments on commit fafea31

Please sign in to comment.