oxc/crates/oxc_syntax
overlookmotel 82ba2a073f fix(syntax): fix unsound use of NonZeroU32 (#4466)
`NonZeroU32::new_unchecked(idx as u32 + 1)` is unsound because if `idx == u32::MAX`, `idx + 1` wraps around back to zero. So unfortunately we need to use the checked version `NonZeroU32::new(idx as u32 + 1).unwrap()` to avoid UB in this edge case.
2024-07-26 00:14:44 +00:00
..
src fix(syntax): fix unsound use of NonZeroU32 (#4466) 2024-07-26 00:14:44 +00:00
Cargo.toml Release crates v0.22.0 (#4434) 2024-07-24 08:23:27 +08:00
CHANGELOG.md Release crates v0.22.0 (#4434) 2024-07-24 08:23:27 +08:00