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
Instantiating deeply-nested ScVecs into the host environment causes stack overflow. Presumably also with maps and UDTs. It is unclear to me whether this is something that a user can trigger by e.g. submitting a specially-crafted transaction.
I am interested in opinions on whether this is something exposed to user input, how to test whether it is exposed to user input, and whether it should be fixed.
I think conversion in the opposite direction, from_host_val can also stack overflow.
A guest can trigger these with the put_contract_data and get_contract_data syscalls. Doing so requires a large budget, but someone clever might be able to do it in increments.
Here's a guest-side contract that stack overflows the host with budget turned off:
Instantiating deeply-nested ScVecs into the host environment causes stack overflow. Presumably also with maps and UDTs. It is unclear to me whether this is something that a user can trigger by e.g. submitting a specially-crafted transaction.
I am interested in opinions on whether this is something exposed to user input, how to test whether it is exposed to user input, and whether it should be fixed.
What version are you using?
e6e02dc
What did you do?
Run this test case
What did you expect to see?
An error.
What did you see instead?
Stack overflow.
The text was updated successfully, but these errors were encountered: