Susumu Yata
null+****@clear*****
Tue Sep 13 16:08:00 JST 2016
Susumu Yata 2016-09-13 16:08:00 +0900 (Tue, 13 Sep 2016) New Revision: 6d20e7e27e6770db8d1891650e4643216ddc7254 https://github.com/groonga/groonga/commit/6d20e7e27e6770db8d1891650e4643216ddc7254 Message: select: add NULL checks for si->query to fix a crash bug GitHub: fix #601 Modified files: lib/expr.c Modified: lib/expr.c (+3 -0) =================================================================== --- lib/expr.c 2016-09-13 15:56:41 +0900 (ddec531) +++ lib/expr.c 2016-09-13 16:08:00 +0900 (97c59c4) @@ -6455,6 +6455,9 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si, grn_obj *res) { grn_bool processed = GRN_FALSE; + if (!si->query) { + return processed; + } if (GRN_BULK_VSIZE(&si->index)) { grn_obj *index = GRN_PTR_VALUE(&si->index); switch (si->op) { -------------- next part -------------- HTML����������������������������...Download