LibWasm: Turn memory read failures into traps

This commit is contained in:
Ali Mohammad Pur 2021-05-18 01:39:12 +04:30 committed by Ali Mohammad Pur
commit 7966168fea
Notes: sideshowbarker 2024-07-18 17:22:54 +09:00
2 changed files with 12 additions and 6 deletions

View file

@ -27,6 +27,9 @@ private:
template<typename V, typename T>
MakeSigned<T> checked_signed_truncate(V);
template<typename T>
T read_value(ReadonlyBytes data);
Vector<NonnullOwnPtr<Value>> pop_values(Configuration& configuration, size_t count);
bool trap_if_not(bool value)
{