| Index: src/wasm/module-decoder.cc
|
| diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc
|
| index 1236fd6982b92492722c4c7483c72797c54c0fcc..b902e56c59ab9d7b475581fa4b18b6115c7dd905 100644
|
| --- a/src/wasm/module-decoder.cc
|
| +++ b/src/wasm/module-decoder.cc
|
| @@ -13,14 +13,10 @@ namespace v8 {
|
| namespace internal {
|
| namespace wasm {
|
|
|
| -#if DEBUG
|
| #define TRACE(...) \
|
| do { \
|
| if (FLAG_trace_wasm_decoder) PrintF(__VA_ARGS__); \
|
| } while (false)
|
| -#else
|
| -#define TRACE(...)
|
| -#endif
|
|
|
|
|
| // The main logic for decoding the bytes of a module.
|
| @@ -330,7 +326,7 @@ class ModuleDecoder : public Decoder {
|
| function->local_f64_count = consume_u16("f64 count");
|
| }
|
|
|
| - uint16_t size = consume_u16("body size");
|
| + uint32_t size = consume_u32("body size");
|
| if (ok()) {
|
| if ((pc_ + size) > limit_) {
|
| return error(pc_, limit_,
|
|
|