Commit f8c1c4ef authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Commit Bot

[wasm][bug] Exit early in Delegate in case of error

We need to exit before FallThruTo invokes DCHECK(this->ok()).

Bug: chromium:1194316
Change-Id: I77eb58cbe232277cc8fc3cc0d1c327d7eba8bfb3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2796954Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73742}
parent 728b8d0f
...@@ -2585,6 +2585,7 @@ class WasmFullDecoder : public WasmDecoder<validate> { ...@@ -2585,6 +2585,7 @@ class WasmFullDecoder : public WasmDecoder<validate> {
target->is_try_unwind()) { target->is_try_unwind()) {
this->DecodeError( this->DecodeError(
"cannot delegate inside the catch handler of the target"); "cannot delegate inside the catch handler of the target");
return 0;
} }
FallThruTo(c); FallThruTo(c);
CALL_INTERFACE_IF_PARENT_REACHABLE(Delegate, imm.depth + 1, c); CALL_INTERFACE_IF_PARENT_REACHABLE(Delegate, imm.depth + 1, c);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment