From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 9DEBB6EC60; Sun, 4 Apr 2021 18:06:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9DEBB6EC60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1617548808; bh=lwIdW5l+6Tx4AmHE+3VxwXZiC2jJlrPVTWbGCL2ZyiQ=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=jQ0EvhhnEm6wk7HfcZplEuVddVso20KXF/gkVgGwMYTSawUMG8TiEf33Chjt9VYnq GY1Ez3Jjj9zBopzJOoV9XIrWJkssZb610j9ZAlWEYpbL9N43LATwXQlDDMH/e43D76 eo8pMbgkxwwborYq60oE1u2U/V7w4dbrL3GVhfO0= Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 8A7B26EC5D for ; Sun, 4 Apr 2021 18:06:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8A7B26EC5D Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1lT4Kr-00088P-1h; Sun, 04 Apr 2021 18:06:45 +0300 To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org Date: Sun, 4 Apr 2021 17:06:41 +0200 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9ED7173E37F4E32947427BE79D20CABD4F844F00D7AFD5C3C182A05F5380850400DEAB6F01C0B5A5834341A7E9AEA12D8CF63A33AC6E4F585FCDCF6C84016D4A0 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A8325FA649D0A450EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063799A9E55CA76E18AB8638F802B75D45FF914D58D5BE9E6BC131B5C99E7648C95C16EE06F5A270FE6A4FC4D0A43D1E8C1FEC8EBFA3A0A8D754A471835C12D1D9774AD6D5ED66289B5278DA827A17800CE7328B01A8D746D8839FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3ED8438A78DFE0A9E117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006374EBA37F70F1BFF76EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C16EE06F5A270FE6A4FC4D0A43D1E8C1FEC8EBFA3A0A8D7549C2B6934AE262D3EE7EAB7254005DCED9B133BB51E455A3B1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0279E343DB675BB2F8E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34B0359B88B232A0C623311925292674D2A3D78F16B3CC6D3A55D49950FFDABA7925EBC8F1C9E7F0FF1D7E09C32AA3244CB2336E7C6073D17CED08D177F771C9A5C86C126E7119A0FEFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojt47dm/981n4ZNHvj8A5yCw== X-Mailru-Sender: 689FA8AB762F73936BC43F508A06382252DD08F80C6EBCF4B030AB4747AC3A803841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH 0/2] Swim misusage crashes X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" The patchset fixes 2 crashes happened when SWIM API was misused. Branch: http://github.com/tarantool/tarantool/tree/gerold103/swim-misusage-crashes-5951-5952 Issue: https://github.com/tarantool/tarantool/issues/5951 Issue: https://github.com/tarantool/tarantool/issues/5952 Vladislav Shpilevoy (2): swim: fix crash on bad member_by_uuid() call swim: check types in __serialize methods .../unreleased/swim-member_by_uuid-crash.md | 4 + changelogs/unreleased/swim-serialize-crash.md | 4 + src/lib/swim/swim.c | 2 + src/lua/swim.lua | 41 +++++-- test/swim/gh-5952-swim-serialize.result | 101 ++++++++++++++++++ test/swim/gh-5952-swim-serialize.test.lua | 33 ++++++ test/swim/swim.result | 9 ++ test/swim/swim.test.lua | 3 + test/unit/swim.c | 23 +++- test/unit/swim.result | 9 +- 10 files changed, 217 insertions(+), 12 deletions(-) create mode 100644 changelogs/unreleased/swim-member_by_uuid-crash.md create mode 100644 changelogs/unreleased/swim-serialize-crash.md create mode 100644 test/swim/gh-5952-swim-serialize.result create mode 100644 test/swim/gh-5952-swim-serialize.test.lua -- 2.24.3 (Apple Git-128)