Sha256: c8244640bf021cf50a24d4d1f76b146e1327210e70f985ef57da63eaedeb009b

Contents?: true

Size: 409 Bytes

Versions: 13

Compression:

Stored size: 409 Bytes

Contents

const TEXT: &[u8] = include_bytes!("../assets/example.txt");

#[test]
#[should_panic]
fn test_issue_182() {
    use std::io::BufRead;

    let compressed = zstd::encode_all(TEXT, 3).unwrap();
    let truncated = &compressed[..compressed.len() / 2];

    let rdr = zstd::Decoder::new(truncated).unwrap();
    let rdr = std::io::BufReader::new(rdr);
    for line in rdr.lines() {
        line.unwrap();
    }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-28.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-27.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-26.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-25.0.2 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-25.0.1 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-25.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-24.0.0 ./ext/cargo-vendor/zstd-0.13.2/tests/issue_182.rs
wasmtime-23.0.2 ./ext/cargo-vendor/zstd-0.13.1/tests/issue_182.rs
wasmtime-22.0.0 ./ext/cargo-vendor/zstd-0.13.1/tests/issue_182.rs
wasmtime-21.0.1 ./ext/cargo-vendor/zstd-0.13.1/tests/issue_182.rs
wasmtime-20.0.2 ./ext/cargo-vendor/zstd-0.13.1/tests/issue_182.rs
wasmtime-20.0.0 ./ext/cargo-vendor/zstd-0.13.1/tests/issue_182.rs