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: replace unsafe byte indexing with upfront span validation (#45)
Direct byte indexing (source[span.0..span.1] and source[..span.0]) panics
if yamlpath returns a span misaligned to UTF-8 boundaries, crashing the
Python process. Replace with upfront is_char_boundary + bounds checks that
return a recoverable error, then use direct indexing safely.
Applied consistently to all 5 sites in document.rs: parse_value,
apply_insert_at, and apply_complex_replace.
Closes#44
0 commit comments