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 22E1BA5A5FB; Thu, 15 Feb 2024 17:02:09 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 22E1BA5A5FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1708005729; bh=yPsHkcjjMtdvWCRU5MVMkEtIWSwrNCdezlCdou3CpdY=; 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=h/ckiKnvFuok5JC0Jxt654j0hbPiPW57JHNj38JeIOq6Lzw47hRelHgnufkONnLvI i1+t82nh15K5Ywb6IHPYd7gEnF5l+vjOrLPdO+MhwTfO81VCt/i5mxhx5l8eBzSdhD 9IIr1HEZcS9VipDd0oGvwXd1WfBXa0gKkZtrKylQ= Received: from smtp53.i.mail.ru (smtp53.i.mail.ru [95.163.41.90]) (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 23198A5A5D5 for ; Thu, 15 Feb 2024 17:02:08 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 23198A5A5D5 Received: by smtp53.i.mail.ru with esmtpa (envelope-from ) id 1racJT-0000000EdjZ-2FmP; Thu, 15 Feb 2024 17:02:07 +0300 Date: Thu, 15 Feb 2024 13:50:41 +0000 To: Sergey Kaplun Message-ID: References: <20231121085253.13526-1-skaplun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231121085253.13526-1-skaplun@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD9001F8F2F6BAD20213FE3C35E3505503959F43E1962753F3400894C459B0CD1B9B5CBE7BD20B163E086E0A5E766B157E5BFAA58E0D8694B1AEF256B98F41F0219DAEE934B56E2D9F8 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7CA8E915ACC910FBDEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063767500BC4578134A08638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D80446AE9D6D051B36B3130548B782EF9108A3B6E6782CE772CC7F00164DA146DAFE8445B8C89999728AA50765F79006375FFD5C25497261569FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3A12191B5F2BB8629117882F4460429728AD0CFFFB425014E868A13BD56FB6657D81D268191BDAD3DC09775C1D3CA48CF25C33BDE98D8A053BA3038C0950A5D36C8A9BA7A39EFB766D91E3A1F190DE8FDBA3038C0950A5D36D5E8D9A59859A8B6455B07CE27F2DB4F76E601842F6C81A1F004C906525384303E02D724532EE2C3F43C7A68FF6260569E8FC8737B5C2249957A4DEDD2346B42E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B658CDF7FFE3EBBCC0089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A50887157D39926FAC5002B1117B3ED696910A3D48A88AC98D22DFD5397F446790823CB91A9FED034534781492E4B8EEAD9DB614F8F96CFA30BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF4EEC153627D45CEC80B6A2939C0C358D74C79D33A10266323B0CA24A24C6F0D0E98901B1639BBD3F3168784816B25684B9D3A13733EA03BC1A06FDDEE966B8FB881BA0C66742C6AAC226CC413062362A913E6812662D5F2A74A26541E23E71317A83BD0C44CE203720ABEDE4BBDD9CDD X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojQ9gr3ZFpXEkeJcQF9P2FYw== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D5316A05F424246C54464756507F36A35F4BFCC2EDED730AD9E3FC2DFD8DF79CCF1EF5EE5212A79745119D086FC03DADA47A24EDF3BD9585A06DEEABBE9EE6587A054198E0F3ECE9B5443453F38A29522196 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] Limit exponent range in number parsing. 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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Sergey, I've checked the patchset into all long-term branches in tarantool/luajit and bumped a new version in master, release/3.0 and release/2.11. On 21.11.23, Sergey Kaplun via Tarantool-patches wrote: > From: Mike Pall > > Reported by XmiliaH. > > (cherry-picked from commit e56048753634c32ea6eeedf74cef6f9cfea5f4ed) > > When parsing exponent powers greater than (1 << 16) * 10 == (65536 * > 10), the exponent values are cut without handling any values greater. > This patch fixes the behaviour, but restricts the power maximum value by > `STRSCAN_MAXEXP` (1 << 20). > > Sergey Kaplun: > * added the description and the test for the problem > > Part of tarantool/tarantool#9145 > --- > > Branch: > https://github.com/tarantool/luajit/tree/skaplun/lj-788-limit-exponents-range > Tarantool PR: https://github.com/tarantool/tarantool/pull/9386 > Related issues: > * https://github.com/LuaJIT/LuaJIT/issues/788 > * https://github.com/tarantool/tarantool/issues/9145 > > > src/lj_strscan.c | 5 +++- > .../lj-788-limit-exponents-range.test.lua | 29 +++++++++++++++++++ > 2 files changed, 33 insertions(+), 1 deletion(-) > create mode 100644 test/tarantool-tests/lj-788-limit-exponents-range.test.lua > > -- > 2.42.1 > -- Best regards, IM