stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
60 stars 40 forks source link

Add test for checking VM stack depth. #1322

Closed dmkozh closed 8 months ago

dmkozh commented 8 months ago

What

This replaces 'stack_smash' test, as it hasn't covered the respective area: it apparently just got compiled into 'unreachable' code and hasn't actually created stack frames (the actual VM stack overflow should fail with 'budget exceeded' error.

Also add observations for most of the hostile.rs tests (the only test not observed is too large/slow with observations).

Resolves https://github.com/stellar/rs-soroban-env/issues/1156

Why

Improving test coverage

Known limitations

N/A