ITADN

Fix UB in SparseHash impls on SIMD vectors

#12Pull RequestRalith 创建于 2025-02-23
R
Ralithcommented
Transmuting a `&[T]` to an `&[TxN]` is undefined behavior: - The resulting slice's length is not updated, so the resulting reference *always* addresses out-of-bounds memory - `TxN` has a more strict alignment than `T`, so the resulting reference may be misaligned
合并状态:未合并 关闭于 2025-02-24 3 条评论