go-jmespath icon indicating copy to clipboard operation
go-jmespath copied to clipboard

Not all casts on user input are checked, causing panics

Open wryun opened this issue 7 years ago • 1 comments

e.g. https://github.com/jmespath/go-jmespath/blob/master/functions.go#L520

Should check and return error? (cf other examples in file)

wryun avatar Aug 25 '18 18:08 wryun

I this happens because the entire type checking is bypassed when the function has a variadic number of arguments 😯

springcomp avatar Feb 22 '23 19:02 springcomp