| Index: src/wasm/wasm-module.h
|
| diff --git a/src/wasm/wasm-module.h b/src/wasm/wasm-module.h
|
| index 3b14aa788c99de09fedf48c1a46ba8b812acece5..cc9a32ce6ca55e73687813ad2610091859dc2940 100644
|
| --- a/src/wasm/wasm-module.h
|
| +++ b/src/wasm/wasm-module.h
|
| @@ -220,7 +220,7 @@ struct WasmModule {
|
| // Checks the given offset range is contained within the module bytes.
|
| bool BoundsCheck(uint32_t start, uint32_t end) const {
|
| size_t size = module_end - module_start;
|
| - return start < size && end < size;
|
| + return start <= size && end <= size;
|
| }
|
|
|
| // Creates a new instantiation of the module in the given isolate.
|
|
|