Commit ba7cc5f
authored
Fix panics from symbolParserV2 (#338)
The added test case contains an escaped multi-byte string that's valid UTF8 that caused a panic before the fix. The fix applied is to advance the entire multi-byte sequence instead of capping it to a single byte.
This caused a few other test failures, namely because we were validating unescaped identifiers were valid UTF8 where elsewhere we assume they're ASCII. The follow-up fix applied was to treat these in a uniform way.1 parent 7421625 commit ba7cc5f
2 files changed
+17
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
469 | 468 | | |
470 | 469 | | |
471 | 470 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | 471 | | |
477 | 472 | | |
478 | 473 | | |
| |||
484 | 479 | | |
485 | 480 | | |
486 | 481 | | |
487 | | - | |
| 482 | + | |
488 | 483 | | |
489 | 484 | | |
490 | 485 | | |
| |||
503 | 498 | | |
504 | 499 | | |
505 | 500 | | |
506 | | - | |
| 501 | + | |
507 | 502 | | |
508 | 503 | | |
509 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
111 | 124 | | |
112 | 125 | | |
113 | 126 | | |
| |||
127 | 140 | | |
128 | 141 | | |
129 | 142 | | |
| 143 | + | |
| 144 | + | |
130 | 145 | | |
131 | 146 | | |
132 | 147 | | |
| |||
0 commit comments