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 16F326E236; Wed, 29 Jul 2026 20:04:08 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 16F326E236 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1785344648; bh=VPhQpBsXiQgcTSsGz3hF9YGMjZzx612Gkg78tG2Unq4=; h=Date:To:References:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ElKJDLEsC36mrtePwuveHBs2m9Z+qZVqwxASl8Ef8iTCxrkxykO/WwNiUV+OUnr8h V9bb74tN5vbOdM/rqGZmw7B51aSw4V4bK54DbEj449XD1nMOb75V/c9969dYiQ0SHT Mewvk7lvMgU73KtcqaDBaacy80FMTsYSK43EsnAQ= Received: from send58.i.mail.ru (send58.i.mail.ru [89.221.237.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 238E96E236 for ; Wed, 29 Jul 2026 20:04:07 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 238E96E236 Received: by exim-smtp-6c76488b9f-nvvrf with esmtpa (envelope-from ) id 1wp7hO-00000000MKE-02Hi; Wed, 29 Jul 2026 20:04:06 +0300 Date: Wed, 29 Jul 2026 20:03:51 +0300 To: Evgeniy Temirgaleev Message-ID: References: <20260720125943.2531443-1-skaplun@tarantool.org> <1785254942.146802378@f510.i.mail.ru> <1785340215.228993685@f745.i.mail.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1785340215.228993685@f745.i.mail.ru> X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD970046B7E57E8D49489C9E6DAC4F8D75D4FCD7A406E7BE450182A05F538085040BFADD578C35657F93DE06ABAFEAF6705F0F02BD42A83DF344E6EE4F884DBF040731EC4501CA84640 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE79E25BE5045FD62C0EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637FE9EFE935CD7C6AE8638F802B75D45FF914D58D5BE9E6BC1A93B80C6DEB9DEE97C6FB206A91F05B23261EBB3295C66A62E070BE324C7D3C4A2C60BBCE8E6C472F6B57BC7E64490618DEB871D839B73339E8FC8737B5C2249B0E9FD5D4288160ECC7F00164DA146DAFE8445B8C89999729449624AB7ADAF37F6B57BC7E64490611E7FA7ABCAF51C92176DF2183F8FC7C0B687D752F9FE62218941B15DA834481F9449624AB7ADAF372E808ACE2090B5E14AD6D5ED66289B5259CC434672EE63711DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C3C9EEE74C166EF7BC35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-87b9d050: 1 X-C1DE0DAB: 0D63561A33F958A571711760DED26C515002B1117B3ED6967D1CED720AC3A044B2920F75BA9A967F823CB91A9FED034534781492E4B8EEAD0942DC5495D0595EBDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE1918E10F71CB4DF9F96AB70F9BE574AE9C625B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D6592EB53AE57A1205AB29AA7088330B8721195C3FB04AE55FD50FEFB441C27789237FF6D00D1BC95B9DB8341EE9D5BE9A0A8E7259A546AC78C06402D1C2500C213E76524D430DF1C3E66536EB022892E5344C41F94D744909CECFA6C6B0C050A61A8CAF69B82BA93681CD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVczkDsfooUjfc8Xc7l2QOTI= X-Mailru-Sender: 689FA8AB762F7393520AF17B8A65FDE28C35C6E35885F9B4C6A23F45BDABABAC9B27F8E81CC692FAE49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] FFI: Shrink container of packed bitfield. 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 Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Evgeniy, On 29.07.26, Evgeniy Temirgaleev wrote: > Hi, Sergey! > Please, consider the idea about marking the tests with special build options. Fixed your comment and force-pushed the branch. > > I thinks it will be better to include such information to the test’s code in a some way. > For example, we can add comments to the code, which we expect to fail with ASAN checks. Also, we can add mark to the corresponding test condition messages with ‘ASAN’ to reflect this in the test reports. Good idea! I've added the ASAN tag in the test description as you suggested and added the corresponding comment. =================================================================== diff --git a/test/tarantool-tests/lj-1451-ffi-packed-bitfield.test.lua b/test/tarantool-tests/lj-1451-ffi-packed-bitfield.test.lua index 76483b0d..8b4e5ce8 100644 --- a/test/tarantool-tests/lj-1451-ffi-packed-bitfield.test.lua +++ b/test/tarantool-tests/lj-1451-ffi-packed-bitfield.test.lua @@ -28,10 +28,13 @@ test:plan(5) local packed = ffi.new('packed_struct') -test:is(packed.bitfield, 0, 'correct 0-initialization') +-- Check that there is no heap overflow for the packed FFI +-- structure. That read/write access leads to the failure when +-- LuaJIT is built with ASAN support. +test:is(packed.bitfield, 0, 'ASAN: correct 0-initialization') packed.bitfield = 1 -test:is(packed.bitfield, 1, 'bitfield set correctly') +test:is(packed.bitfield, 1, 'ASAN: bitfield set correctly') -- Check correct structure layout. local byteoffset, bitpos, bitsize = ffi.offsetof('packed_struct2', 'bitfield16') =================================================================== Branch is force-pushed. > > -- > Best regards, > Evgeniy Temirgaleev -- Best regards, Sergey Kaplun