Kouhei Sutou
null+****@clear*****
Fri Apr 6 13:02:29 JST 2018
Kouhei Sutou 2018-04-06 13:02:29 +0900 (Fri, 06 Apr 2018) New Revision: 5cae58f209785d2c7e0061581a59e93908fbb490 https://github.com/groonga/groonga/commit/5cae58f209785d2c7e0061581a59e93908fbb490 Message: Fix a bug that buffer for unpacking MessagePack isn't enough Modified files: lib/options.c Modified: lib/options.c (+2 -1) =================================================================== --- lib/options.c 2018-04-06 12:00:31 +0900 (af1add534) +++ lib/options.c 2018-04-06 13:02:29 +0900 (d6f572bd1) @@ -297,7 +297,8 @@ grn_options_get(grn_ctx *ctx, name_length = strlen(name); } - msgpack_unpacker_init(&unpacker, length); + msgpack_unpacker_init(&unpacker, MSGPACK_UNPACKER_INIT_BUFFER_SIZE); + msgpack_unpacker_reserve_buffer(&unpacker, length); msgpack_unpacked_init(&unpacked); memcpy(msgpack_unpacker_buffer(&unpacker), iw.addr, -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180406/77b0e6dc/attachment.htm