v8/test/unittests/wasm/wasm-disassembler-unittest-too-many-ends.wat.inc
Matthias Liedtke 859d958110 [wami] Prevent crash on disassembling too many end bytes
Bug: v8:13525
Change-Id: I80350c2b713b63e00d7f32a552a5386df28e8ac3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4047873
Commit-Queue: Matthias Liedtke <mliedtke@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#84432}
2022-11-23 11:58:26 +00:00

10 lines
183 B
C++

;; expected = R"---(;; This is a polyglot C++/WAT file.
(module
(func $doubleEnd (;0;) (export "doubleEnd")
nop
)
;; Unexpected end byte
;; Unexpected end byte
)
;;)---";