-
Hi, there. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It shouldn't be possible for the guest to bypass the metering restrictions:
It is not. WASM linear memory is separated from the locals on the call stack and the globals. (Besides security, this also helps optimization.)
To be overly accurate: It inserts a new global. This global doesn't have a name, only an index, and it's always a new global that the module doesn't otherwise have access to. (Shouldn't, at least. I haven't tried what happens if you try to access a global index once past the number of existing globals. I'd expect the module to be rejected at validation. Might be worth checking.) |
Beta Was this translation helpful? Give feedback.
It shouldn't be possible for the guest to bypass the metering restrictions:
It is not. WASM linear memory is separated from the locals on the call stack and the globals. (Besides security, this also helps optimization.)
To be overly accurate: It inserts a new global. This global doesn't have a name, only an index, and it's always a new global that the module doesn't otherwise have access to. (Shouldn't, at least. I haven't tried what happens if you try to access a global index once pa…