Commit e7621ea
authored
[Fix] Fix Multi-byte unicode characters in StructuralTagItem. (#396)
As reported in #392 , Multi-byte characters in StructuralTagItem `end` /
`begin` fields causes a crash. It is caused by the incorrect processing
of multi-byte characters in building grammar from StructuralTagItem, and
this mistake leads to the crash in grammar compiler. This PR fixes the
problem.
Signed-off-by: Yuchuan <[email protected]>
---------
Signed-off-by: Yuchuan <[email protected]>1 parent f1b913e commit e7621ea
File tree
3 files changed
+18
-7
lines changed- cpp
- tests/python
3 files changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
| 628 | + | |
634 | 629 | | |
635 | 630 | | |
636 | 631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
251 | 264 | | |
252 | 265 | | |
0 commit comments