| Index: src/wasm/module-decoder.cc
|
| diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc
|
| index 2a4752e0f6f5771c32bdb798bed18af1bea4e04b..344196f9eebc7f76c3f5e154ca107e8edc3ceeed 100644
|
| --- a/src/wasm/module-decoder.cc
|
| +++ b/src/wasm/module-decoder.cc
|
| @@ -626,7 +626,7 @@ class ModuleDecoder : public Decoder {
|
| }
|
|
|
| uint32_t local_names_count = inner.consume_u32v("local names count");
|
| - for (uint32_t j = 0; ok() && j < local_names_count; j++) {
|
| + for (uint32_t j = 0; inner.ok() && j < local_names_count; j++) {
|
| uint32_t length = inner.consume_u32v("string length");
|
| inner.consume_bytes(length, "string");
|
| }
|
|
|