Commit Graph
1 Commits
Author SHA1 Message Date
dualfroz 76e67fb3e0 fix(read): prevent panic on negative slice index in a key path
GetValue and Exists validated only the upper bound of a numeric key-path
segment, so a negative index such as "arr.-1" passed the check and indexed
the slice with -1, causing an index-out-of-range panic. Add a lower-bound
check (i < 0) to the []int, []string and []any cases in both functions.
2026-09-04 09:24:12 +02:00