[Groonga-commit] groonga/groonga [master] Fix wrong the number of found recoreds count...

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 18 11:55:34 JST 2013


Kouhei Sutou	2013-02-18 11:55:34 +0900 (Mon, 18 Feb 2013)

  New Revision: 989464181a8d4dc9c3148614eb21821bc3ca72e1
  https://github.com/groonga/groonga/commit/989464181a8d4dc9c3148614eb21821bc3ca72e1

  Log:
    Fix wrong the number of found recoreds count...
    
    This is real fix for 0968491d39d7dcb10b9ef8347c71514de01e775b:
    
      Fix a crash bug that geo_distance() sort by index
    
      If there is any not indexed GeoPoint entry, geo_distance() sort by
      index may cause a crash. Because it touches uninitialized area.
    
      Not initialized GeoPoint value or initialized by 0x0 value are not
      indexed. If they aren't ignored, groonga may be crashed.
    
    The fix in the commit should be removed.

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+1 -1)
===================================================================
--- lib/geo.c    2013-02-15 23:34:24 +0900 (942ae39)
+++ lib/geo.c    2013-02-18 11:55:34 +0900 (cfdff06)
@@ -647,7 +647,7 @@ grn_geo_table_sort(grn_ctx *ctx, grn_obj *table, int offset, int limit,
                                                   &d_far, &diff_bit);
           grn_pat_cursor_close(ctx, pc);
           if (diff_bit > 0) {
-            n += grn_geo_table_sort_collect_points(ctx, table, index, pat,
+            n = grn_geo_table_sort_collect_points(ctx, table, index, pat,
                                                    entries, n, e, accessorp,
                                                    base_point, d_far, diff_bit);
           }
-------------- next part --------------
HTML����������������������������...
Descargar 



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