Repository navigation
Commit 770d016
buffer: fix odd UTF-16LE indexOf start
UTF-16LE string searches rounded odd forward start offsets down,
allowing a match before the requested range.
Round the start up to the next code-unit boundary while leaving
reverse search and the existing 16-bit implementation unchanged.
Assisted-by: Codex
Signed-off-by: inoway46 <[email protected]>
PR-URL: #65960
Fixes: #26448
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 6d58ce5 commit 770d016
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
1030 | 1034 | | |
1031 | 1035 | | |
1032 | 1036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
311 | 317 | | |
312 | 318 | | |
313 | 319 | | |
| |||
0 commit comments