Versions v0.8.3 through v0.8.6 of adblock-rust
could panic as a result of certain filter inputs.
This WASM module, based off of the original adblock-rust
code, can be used to detect whether or not the original code would panic when parsing a certain filter.
cargo build --release
wasm-bindgen --target --target experimental-nodejs-module --no-typescript --out-dir out target/wasm32-unknown-unknown/release/adblock_rust_0_8_6_compat_checker.wasm
Modify your target
platform as needed:
cargo test --target x86_64-unknown-linux-gnu