Commit cbd5795
authored
fix: add bounds check for lexer position while parsing array and dictionary (#327)
* fix: add bounds check for lexer position while parsing array and dictionary
* refactor: better position for checks is inside the while loop
* fix(lexer): prevent buffer overread in getString by adding bounds check
* refactor1 parent 765c276 commit cbd5795
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
0 commit comments