[Groonga-commit] groonga/groonga at fbae529 [master] Report error instead of SEGV when an error is occurred in function

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jun 26 18:22:24 JST 2013


Kouhei Sutou	2013-06-26 18:22:24 +0900 (Wed, 26 Jun 2013)

  New Revision: fbae529a8fcf137137c6c017593a9462730fb115
  https://github.com/groonga/groonga/commit/fbae529a8fcf137137c6c017593a9462730fb115

  Message:
    Report error instead of SEGV when an error is occurred in function

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+3 -0)
===================================================================
--- lib/expr.c    2013-06-26 18:00:06 +0900 (4dadefa)
+++ lib/expr.c    2013-06-26 18:22:24 +0900 (a372eab)
@@ -2643,6 +2643,9 @@ grn_expr_exec(grn_ctx *ctx, grn_obj *expr, int nargs)
             WITH_SPSAVE({
               grn_proc_call(ctx, proc, code->nargs, expr);
             });
+            if (ctx->rc) {
+              goto exit;
+            }
             POP1(res);
             {
               grn_obj *proc_;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index