Sha256: ad8a2b07bf955121a7c9e326ed35f9b2bc56b440c8cc0bbde24d423a79945c1a

Contents?: true

Size: 187 Bytes

Versions: 76

Compression:

Stored size: 187 Bytes

Contents

#[test]
fn no_stack_overflow() {
    let mut s = format!("(module (func \n");
    for _ in 0..10_000 {
        s.push_str("(i32.add\n");
    }
    assert!(wat::parse_str(&s).is_err());
}

Version data entries

76 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-29.0.0 ./ext/cargo-vendor/wast-224.0.0/tests/recursive.rs
wasmtime-28.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-28.0.0 ./ext/cargo-vendor/wast-223.0.0/tests/recursive.rs
wasmtime-27.0.0 ./ext/cargo-vendor/wast-220.0.0/tests/recursive.rs
wasmtime-27.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-26.0.0 ./ext/cargo-vendor/wast-219.0.1/tests/recursive.rs
wasmtime-26.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-25.0.2 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-25.0.2 ./ext/cargo-vendor/wast-218.0.0/tests/recursive.rs
wasmtime-25.0.1 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-25.0.1 ./ext/cargo-vendor/wast-217.0.0/tests/recursive.rs
wasmtime-25.0.0 ./ext/cargo-vendor/wast-217.0.0/tests/recursive.rs
wasmtime-25.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-24.0.0 ./ext/cargo-vendor/wast-216.0.0/tests/recursive.rs
wasmtime-24.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-23.0.2 ./ext/cargo-vendor/wast-215.0.0/tests/recursive.rs
wasmtime-23.0.2 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-22.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-22.0.0 ./ext/cargo-vendor/wast-209.0.1/tests/recursive.rs