From 925c57be9e6fd1589ce7b1e05002ca0eb71dfa50 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Sun, 12 Dec 2021 19:44:23 -0800 Subject: [PATCH] fuzzbug fix --- src/backend/stackify.rs | 2 -- src/frontend.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/stackify.rs b/src/backend/stackify.rs index 16814b8..146d347 100644 --- a/src/backend/stackify.rs +++ b/src/backend/stackify.rs @@ -211,5 +211,3 @@ impl Shape { Shape::None } } - - diff --git a/src/frontend.rs b/src/frontend.rs index 3beb952..8a69dc3 100644 --- a/src/frontend.rs +++ b/src/frontend.rs @@ -917,7 +917,7 @@ impl<'a, 'b> FunctionBodyBuilder<'a, 'b> { results, } = self.ctrl_stack.pop().unwrap() { - let if_results = self.pop_n(results.len()); + let if_results = self.block_results(results.len(), start_depth); self.emit_branch(out, &if_results[..]); self.op_stack.truncate(start_depth); self.op_stack.extend(param_values);