Commit 06559f42 authored by Jakob Kummerow's avatar Jakob Kummerow Committed by Commit Bot

[wasm] Fix error check in simd instruction decoding

read_prefixed_opcode() can fail; we must check for that case
before using the value it returned.

Bug: chromium:1073356
Change-Id: Ic213bd296e9c50dbffd5df8bc94ef0e7695d75a2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2161068
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Auto-Submit: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67314}
parent 6e5f2812
......@@ -2401,6 +2401,7 @@ class WasmFullDecoder : public WasmDecoder<validate> {
uint32_t length = 0;
opcode =
this->template read_prefixed_opcode<validate>(this->pc_, &length);
if (!VALIDATE(this->ok())) break;
len += length;
TRACE_PART(TRACE_INST_FORMAT, startrel(this->pc_),
......
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