Commit ff7acdc
fix(table_translator): index out of bound access in string
when trying to add blank to preedit then increase pos, might lead to
input[pos - 1] out of bound.
`pos` is tracking string variable `preedit`, they should be updated in
sync. checking delimiters at word ending should also refer to
`preedit` instead of the unchanged `input_`.1 parent 1fad0b8 commit ff7acdc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
0 commit comments