You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(psl): harden get_next_offset bounds against malformed input
Replace the raw graph indexing and the over-strict `*pos + 2 >= end`
guard with .get() lookups and checked_add for the offset accumulator.
The old guard rejected structurally-valid 1- and 2-byte offset codes at
the end of the graph and could overflow usize on `*pos + 2`; the new
form is panic-free by construction and accepts those codes.
0 commit comments