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 UB: replace unsafe String::from_utf8_unchecked with checked conversion
A panic in a CustomTransliterator can unwind through Insertable's Drop
impl without fully restoring UTF-8 validity, causing into_string() to
produce undefined behavior via from_utf8_unchecked. Use checked
from_utf8().expect() so this becomes a clean panic instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments