You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how this can be done. The wasm code to call a function will have its type already encoded and will load the number of operands based on the arity, so if we were to leave an extra (or one less) operand on the stack before call it would just make the wasm module invalid.
### What
Resolves#1155
Add a macro that
- Generates synth-wasm for each host function
- For each type which appears in any host function, pass in an invalid
type and call the synth-wasm in a new test
- For every object type argument of a host function, pass in an invalid
object handle and call the synth-wasm in a new test
Catches and fixes three issues where invalid object handle isn't caught
early enough: `contract_event`, `require_auth`, `require_auth_for_args`.
---------
Co-authored-by: Graydon Hoare <graydon@pobox.com>
The text was updated successfully, but these errors were encountered: