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-14.0.3 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-14.0.3 ./ext/cargo-vendor/wast-66.0.2/tests/recursive.rs
wasmtime-14.0.1 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-14.0.1 ./ext/cargo-vendor/wast-66.0.2/tests/recursive.rs
wasmtime-14.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-14.0.0 ./ext/cargo-vendor/wast-66.0.2/tests/recursive.rs
wasmtime-13.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-13.0.0 ./ext/cargo-vendor/wast-65.0.1/tests/recursive.rs
wasmtime-12.0.1 ./ext/cargo-vendor/wast-63.0.0/tests/recursive.rs
wasmtime-12.0.1 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-12.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-12.0.0 ./ext/cargo-vendor/wast-63.0.0/tests/recursive.rs
wasmtime-11.0.0 ./ext/cargo-vendor/wast-63.0.0/tests/recursive.rs
wasmtime-11.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-10.0.1 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-10.0.1 ./ext/cargo-vendor/wast-62.0.1/tests/recursive.rs
wasmtime-10.0.0 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-10.0.0 ./ext/cargo-vendor/wast-62.0.1/tests/recursive.rs
wasmtime-9.0.4 ./ext/cargo-vendor/wast-35.0.2/tests/recursive.rs
wasmtime-9.0.4 ./ext/cargo-vendor/wast-62.0.1/tests/recursive.rs