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 433A084390; Mon, 11 Jan 2021 12:45:17 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 433A084390 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1610358317; bh=a6E/xbX7RPoqK6ocK+uQQ1dlt3AfdIRaec9Bdkad37I=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=t4SCPl3b0XnHJTn8ozmPQe+gQNJWOZPQCOUhX/BApfz7FLY4di+z1ZzYepGkNa1td XiLnsUG3WiZCoB3qmWMQAQar0R6k8PxnY+oVdZSg6w45v83CyFqqfbWbFRAZ+fwb3M 6GHhG5TKbRZI0zRAgTWqFLRz5Iflg5sIhKZS++Tg= Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 9613284390 for ; Mon, 11 Jan 2021 12:45:15 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9613284390 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1kytlC-00039R-1b; Mon, 11 Jan 2021 12:45:14 +0300 To: tarantool-patches@dev.tarantool.org Date: Mon, 11 Jan 2021 12:44:59 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D0E79FBC973162CD3008320BFA2F4C653BABCE9B72A1DEA600894C459B0CD1B93FC0DD170D0D8F826F3E66B93F2FA0B2415C8B29C57F0A261E13962C942EC85E X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7A8325FA649D0A450EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637040380BD28C1B15C8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC3B90172E615E5CE62C0E22397D5E1BC0200825FB537AFEA1389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0E45F71884F0C27A38941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6D082881546D93491CC7F00164DA146DA6F5DAA56C3B73B23C77107234E2CFBA567F23339F89546C55F5C1EE8F4F765FC0F4D49C53302359575ECD9A6C639B01BBD4B6F7A4D31EC0BC0CAF46E325F83A522CA9DD8327EE493EFA58DFCB7B0AE11C8D5298E42E60C1FC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F5D41B9178041F3E72623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CFA107D211124169992A51E11D7E49F4879FB99C666C3CDE89C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A7EE5648E065588D423D4379F09C64C7393EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34682FD2D2951524C52E9F6D25A46A36C2FA1A5C9ACDA71D8B3FD7720893A5DECFBA59A73F13D5F5521D7E09C32AA3244C020C1CF1CED4AD653CC53976A89041E75A1673A01BA68E4083B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXg69EaHd9R7OELPIpC3OeWf X-Mailru-Sender: 689FA8AB762F73937240DDB2502DDB70D535381E47DF68C86D9417ABE4AE759ADD675A873A6B1A573284F99205A65E8EFB559BB5D741EB966AABCD5B59A9F6DF9ABAAAF6BC5F075B67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v6 0/2] base64: Fix decoder, improve its performance 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: Sergey Nikiforov via Tarantool-patches Reply-To: Sergey Nikiforov Cc: Vladislav Shpilevoy , Alexander Turenko Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" First patch fixes #3069 and adds test for zero-sized output buffer, second one improves base64 decoder performance. Second patch is optional to merge. v6 is v5 rebased - there was merge conflict in base64 test, base64_no_space_test() is now implemented as subtest per review. No more changes. Branch: https://github.com/tarantool/tarantool/tree/void234/gh-3069-fix-base64-memory-overrun-v6 Issue: https://github.com/tarantool/tarantool/issues/3069 Sergey Nikiforov (2): base64: fix decoder output buffer overrun (reads) base64: improve decoder performance test/unit/base64.c | 16 +++++++++++- test/unit/base64.result | 5 +++- third_party/base64.c | 57 +++++++++++++++++++++++++++++------------ 3 files changed, 59 insertions(+), 19 deletions(-) -- 2.25.1