mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-13 06:51:45 +00:00
and working address.wast
This commit is contained in:
@ -44,7 +44,7 @@ impl MemoryInstance {
|
||||
};
|
||||
|
||||
let buffer = self.buffer.read();
|
||||
if buffer.len() <= end {
|
||||
if buffer.len() < end {
|
||||
return Err(Error::Memory(format!("trying to read region [{}..{}] in memory [0..{}]", begin, end, buffer.len())));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user