mybatis/velocity-scripting

#trim() possible StringIndexOutOfBoundsException with suffixOverrides

Closed this issue · 1 comments

Possible StringIndexOutOfBoundsException, if using suffixOverrides with params.maxSuffixLength > params.maxBody in TrimDirective.java line 68.

Example:

trim("WHERE" "" "" "FOOFOO")

    1=1

end

Thanks:-)