| Index: src/wasm/decoder.h
|
| diff --git a/src/wasm/decoder.h b/src/wasm/decoder.h
|
| index afe8701779300f7251f6dcbecd450e1933500841..bfd14366e114633d9b2243c64cdcc11efe7acc2f 100644
|
| --- a/src/wasm/decoder.h
|
| +++ b/src/wasm/decoder.h
|
| @@ -382,8 +382,10 @@ class Decoder {
|
|
|
| int length = static_cast<int>(pc_ - pos);
|
| if (pc_ == end && (b & 0x80)) {
|
| + TRACE("\n");
|
| error(pc_ - 1, "varint too large");
|
| } else if (length == 0) {
|
| + TRACE("\n");
|
| error(pc_, "varint of length 0");
|
| } else if (is_signed) {
|
| if (length < kMaxLength) {
|
|
|