Tristan Knight
80e37aa533
fix(lsp): str_byteindex_enc bounds checking #30747
...
Problem:
Previously the index was only checked against the UTF8 length. This
could cause unexpected behaviours for strings containing multibyte chars
Solution:
Check indicies correctly against their max value before returning the
fallback length
2024-10-16 09:12:19 -07:00
..
2024-10-15 20:50:21 +02:00
2024-10-15 20:50:21 +02:00
2024-10-07 19:19:15 +02:00
2024-10-15 20:50:21 +02:00
2024-10-15 20:50:21 +02:00
2024-09-04 19:32:52 -05:00
2024-06-14 23:58:27 +02:00
2024-10-16 09:12:19 -07:00
2024-07-31 23:06:28 +02:00
2024-08-25 06:07:43 +08:00
2024-09-27 08:53:30 -07:00
2024-10-15 20:50:21 +02:00
2022-03-13 04:52:45 +00:00
2024-10-14 09:31:24 +02:00
2024-08-16 10:35:13 -07:00
2024-10-15 20:50:21 +02:00
2023-08-13 13:25:10 +01:00
2024-06-28 19:58:31 +02:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2023-08-13 13:25:10 +01:00
2024-01-16 17:45:57 +00:00
2024-10-14 09:27:29 +08:00
2022-10-13 05:48:12 -07:00
2024-05-16 14:34:32 +02:00
2024-08-29 06:11:32 +08:00
2019-03-11 21:00:12 +01:00
2024-10-03 06:45:01 +08:00
2024-01-16 17:45:57 +00:00
2024-07-02 13:05:16 +02:00