[Groonga-commit] groonga/groonga [master] Fixed a bug in grn_ii_similar_search() which had caused segv.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 24日 (火) 01:31:29 JST


Daijiro MORI	2010-08-23 16:31:29 +0000 (Mon, 23 Aug 2010)

  New Revision: b746edb2dae90a5459338b812bc6937c41bb3f79

  Log:
    Fixed a bug in grn_ii_similar_search() which had caused segv.

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2010-08-23 11:56:59 +0000 (4f58d55)
+++ lib/ii.c    2010-08-23 16:31:29 +0000 (286d18c)
@@ -5617,7 +5617,7 @@ grn_ii_similar_search(grn_ctx *ctx, grn_ii *ii,
     }
     for (j = 1; j <= limit; j++) {
       grn_array_get_value(ctx, sorted, j, &id);
-      grn_hash_get_key_value(ctx, h, id, (void **) &tp, sizeof(grn_id), (void **) &w1);
+      _grn_hash_get_key_value(ctx, h, id, (void **) &tp, (void **) &w1);
       if (!*tp || !(c = grn_ii_cursor_open(ctx, ii, *tp, GRN_ID_NIL, GRN_ID_MAX,
                                            rep
                                            ? ii->n_elements




Groonga-commit メーリングリストの案内
Back to archive index