ladybird/Libraries/LibWeb/HTML/Parser/Rust
Andreas Kling 5b63cb5f37 LibWeb: Avoid unsafe tokenizer state conversion
Replace the FFI tokenizer state transmute with an explicit conversion
from the incoming numeric value. The old code range-checked against the
last state before transmuting, which matched today's contiguous enum but
left the conversion dependent on that layout detail.

Returning early for unknown values keeps the FFI boundary tolerant while
removing a source of possible invalid enum discriminants.
2026-05-17 15:35:56 +02:00
..
src LibWeb: Avoid unsafe tokenizer state conversion 2026-05-17 15:35:56 +02:00
build.rs
Cargo.toml
cbindgen.toml