Kouhei Sutou
null+****@clear*****
Wed Nov 1 10:07:59 JST 2017
Kouhei Sutou 2017-11-01 10:07:59 +0900 (Wed, 01 Nov 2017) New Revision: ed8c774380a22a439f629cca614aefc6d0575ff0 https://github.com/groonga/groonga/commit/ed8c774380a22a439f629cca614aefc6d0575ff0 Message: groonga-benchmark: increase buffer size to avoid overflow Modified files: src/groonga_benchmark.c Modified: src/groonga_benchmark.c (+2 -1) =================================================================== --- src/groonga_benchmark.c 2017-11-01 10:05:23 +0900 (77543c206) +++ src/groonga_benchmark.c 2017-11-01 10:07:59 +0900 (a4ac37b1b) @@ -113,6 +113,7 @@ static grn_obj *grntest_db = NULL; #define MAX_CON 64 #define BUF_LEN 1024 +#define LARGE_BUF_LEN 2048 #define MAX_PATH_LEN 256 #define J_DO_LOCAL 1 /* do_local */ @@ -1077,7 +1078,7 @@ exit: job->qnum += task->qnum; job->done++; if (job->done == job->concurrency) { - char tmpbuf[BUF_LEN]; + char tmpbuf[LARGE_BUF_LEN]; sec = job_elapsed_time / (double)1000000; qps = (double)job->qnum/ sec; grntest_jobdone++; -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171101/e5522c16/attachment-0001.htm