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 2BC3B6F3C7; Fri, 26 Mar 2021 10:47:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 2BC3B6F3C7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1616744861; bh=xJNs7CYhj8+BptGNaAWI1a9zTpGM41gFhnea71bsq4A=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=iOuqrsZurKkSawIUMTq25PYWaczemJPlOH4zNTO7bcYwMu0vdUzvpTBtlxIMaqgbL baHOup13I1pS7t5+iM2DOqqBYn1QWNJhGm0lY+1f5rGpN+OWBnREGrMNo8HsM/U82Z fhnI1C6EFuq371rGtA6frNqKsp5hVgnYsLq0Lvb0= Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (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 8BC346BD3C for ; Fri, 26 Mar 2021 10:44:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8BC346BD3C Received: by smtp63.i.mail.ru with esmtpa (envelope-from ) id 1lPh8f-00042u-Hr; Fri, 26 Mar 2021 10:44:13 +0300 To: Sergey Ostanevich , Igor Munkin Date: Fri, 26 Mar 2021 10:42:50 +0300 Message-Id: <8c3a82ed0ae8147468aad1a9fbf4987ebf641669.1616743343.git.skaplun@tarantool.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9064ADF4728AA0EE922675D89A18E042B1EBC993A8274C79D182A05F538085040FB293E3055888BF09DEB808532D7A982FF8AFD7EE9A2387FFD8F485AE6C86C71 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7DB84ED444C624799EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637645995A778B1BFFAEA1F7E6F0F101C67CDEEF6D7F21E0D1D174C73DBBBFC7664522CCF267CC2B9BF75AE0F7CAF75EF395245166281C5F20C389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C0AD76BF5943A59ECC8941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6197FFA0EFC27E0ACA471835C12D1D977C4224003CC8364762BB6847A3DEAEFB0F43C7A68FF6260569E8FC8737B5C2249B372FE9A2E580EFC725E5C173C3A84C3C8F21CEC4765490D35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C97831181D79FD8B28A835D78DE17948D3915F X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C5DD32608FC869F5DF1C599F306C2CCDAD36C5A6B08F1F83E9C2B6934AE262D3EE7EAB7254005DCED7532B743992DF240BDC6A1CF3F042BAD6DF99611D93F60EFF532FBFD8162E58C699F904B3F4130E343918A1A30D5E7FCCB5012B2E24CD356 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3473457D764E1CDE7719682F158E4CFBCD044BD019FDA5CBB46DC7F0BCAD0A8E4DBB58C633B411E7871D7E09C32AA3244C5BA1BEAF5EDABDAE27FCEF0B647AD1433A76366E8A9DE7CA927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojapPp7P/VpAg/0+52NHhHjw== X-Mailru-Sender: 3B9A0136629DC91206CBC582EFEF4CB44EDB3EB39C67E6AEC37CE200D0FCECB71F2A24777E88095CF2400F607609286E924004A7DEC283833C7120B22964430C52B393F8C72A41A89437F6177E88F7363CDA0F3B3F5B9367 X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 07/30] test: disable Lua tests for bytecode with header 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" Loading bytecode with an extra header (BOM or "#") is disabled for security reasons since LuaJIT-2.0.0-beta10. For more information see comment for `lj_lex_setup()` in . Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47 (Disable loading bytecode with an extra header (BOM or #!).). These tests are disabled for LuaJIT. Relates to tarantool/tarantool#5691 Part of tarantool/tarantool#5845 Part of tarantool/tarantool#4473 --- test/PUC-Lua-5.1-tests/main.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/test/PUC-Lua-5.1-tests/main.lua b/test/PUC-Lua-5.1-tests/main.lua index 56f56a0..cf6d533 100644 --- a/test/PUC-Lua-5.1-tests/main.lua +++ b/test/PUC-Lua-5.1-tests/main.lua @@ -158,13 +158,23 @@ prepfile(s) prepfile[[#comment in 1st line without \n at the end]] RUN("lua %s", prog) +-- Loading bytecode with an extra header (BOM or "#") is disabled +-- for security reasons since LuaJIT-2.0.0-beta10. +-- For more information see comment for `lj_lex_setup()` +-- in . +-- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47 +-- (Disable loading bytecode with an extra header (BOM or #!).). +-- See also https://github.com/tarantool/tarantool/issues/5691. +-- FIXME: test is disabled for LuaJIT. prepfile("#comment with a binary file\n"..string.dump(loadstring("print(1)"))) -RUN("lua %s > %s", prog, out) -checkout("1\n") +-- RUN("lua %s > %s", prog, out) +-- checkout("1\n") prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)"))) -RUN("lua %s > %s", prog, out) -checkout("1\n") +-- Behavior is different for LuaJIT. See the comment above. +-- FIXME: test is disabled for LuaJIT. +-- RUN("lua %s > %s", prog, out) +-- checkout("1\n") -- close Lua with an open file prepfile(string.format([[io.output(%q); io.write('alo')]], out)) -- 2.31.0