Commit d67210d
committed
fix: guard against slice panic on single-char quoted strings in parseTypeFromString
Fuzz testing found that a bare quote character (e.g. `"`) matched the
forward reference check but caused s[1:0] slice panic. Add len >= 2
guard before slicing.1 parent 76cc3b4 commit d67210d
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
690 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
691 | 692 | | |
692 | 693 | | |
693 | 694 | | |
| |||
0 commit comments