mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 12:48:11 -05:00
Previously calling the function with invalid UTF-8 could cause it to iterate over all the data and, if built in debug mode, could cause an assertion failure. Now we return the sequence’s end when the data appears to be malformed and we never look at more than the last 6 bytes in the sequence.