and working address.wast

This commit is contained in:
NikVolf
2017-06-06 12:22:41 +03:00
parent 78bff38284
commit 9a38c75a10

View File

@ -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())));
}