Skip to content

Commit 49a1814

Browse files
committed
fix(builtins): prevent awk parser panic on multi-byte UTF-8
The awk parser used byte offsets with chars().nth() (char index), causing panics when multi-byte UTF-8 appeared in comments, strings, or regex patterns. Added current_char()/advance() helpers for safe char-boundary handling and replaced all chars().nth(byte_offset) patterns with byte-safe slicing. Closes #395
1 parent 9ad3ac3 commit 49a1814

1 file changed

Lines changed: 149 additions & 124 deletions

File tree

  • crates/bashkit/src/builtins

0 commit comments

Comments
 (0)