[Groonga-commit] groonga/groonga [master] Fix out of memory access

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 9 21:00:13 JST 2012


Kouhei Sutou	2012-11-09 21:00:13 +0900 (Fri, 09 Nov 2012)

  New Revision: 95e8c161a1fdaa2679c6c0a5081e3319f9289118
  https://github.com/groonga/groonga/commit/95e8c161a1fdaa2679c6c0a5081e3319f9289118

  Log:
    Fix out of memory access

  Modified files:
    lib/string.c

  Modified: lib/string.c (+1 -1)
===================================================================
--- lib/string.c    2012-11-09 19:34:03 +0900 (b84e645)
+++ lib/string.c    2012-11-09 21:00:13 +0900 (b05b797)
@@ -1093,7 +1093,7 @@ grn_fake_string_open(grn_ctx *ctx, grn_string *string)
       }
       source_current += char_length;
     }
-    destination[destination_length] = '\0';
+    nstr->normalized[destination_length] = '\0';
     nstr->normalized_length_in_bytes = destination_length;
   } else {
     memcpy(nstr->normalized, str, str_len);
-------------- next part --------------
HTML����������������������������...
Download 



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