- Notifications
You must be signed in to change notification settings - Fork5
Commit40a50a1
committed
Only adjust negative indexes in json_get up to the length of the path.
The previous code resulted in memory access beyond the path bounds. Thecure is to move it into a code branch that checks the value of lex_levelis within the correct bounds.Bug reported and diagnosed by Piotr Stefaniak.1 parent116be6c commit40a50a1
1 file changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
980 | 991 | | |
981 | 992 | | |
982 | 993 | | |
983 | 994 | | |
984 | 995 | | |
985 | | - | |
986 | | - | |
| 996 | + | |
| 997 | + | |
987 | 998 | | |
988 | 999 | | |
989 | 1000 | | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
| |||
0 commit comments
Comments
(0)