Kouhei Sutou
null+****@clear*****
Mon Jul 18 22:57:09 JST 2016
Kouhei Sutou 2016-07-18 22:57:09 +0900 (Mon, 18 Jul 2016) New Revision: df4b943cd75242a830c76b6106947bac75dfccbf https://github.com/groonga/groonga/commit/df4b943cd75242a830c76b6106947bac75dfccbf Message: vector_slice: add too many arguments check Modified files: plugins/functions/vector.c Modified: plugins/functions/vector.c (+1 -1) =================================================================== --- plugins/functions/vector.c 2016-07-18 22:55:32 +0900 (19be90f) +++ plugins/functions/vector.c 2016-07-18 22:57:09 +0900 (1b39f6e) @@ -83,7 +83,7 @@ func_vector_slice(grn_ctx *ctx, int n_args, grn_obj **args, uint32_t size = 0; grn_obj *slice; - if (n_args < 2) { + if (n_args < 2 || n_args > 3) { GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT, "vector_slice(): wrong number of arguments (%d for 2..3)", n_args); -------------- next part -------------- HTML����������������������������... 다운로드