Skip to content

Conversation

tuohy
Copy link

@tuohy tuohy commented Jun 22, 2023

Previously this code had calls to Array.unsafe_set that would use indices beyond the range of the array being manipulated. Thankfully, Zed_string.length would throw an exception first.

Trying to allocate the array in advance does not work out if some Zed_chars are being replaced by an escape sequence with four Zed_chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant