go-jmespath
go-jmespath copied to clipboard
Not all casts on user input are checked, causing panics
e.g. https://github.com/jmespath/go-jmespath/blob/master/functions.go#L520
Should check and return error? (cf other examples in file)
I this happens because the entire type checking is bypassed when the function has a variadic number of arguments 😯