* [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
@ 2021-09-24 14:28 Maxim Kokryashkin via Tarantool-patches
2021-10-11 14:25 ` Sergey Kaplun via Tarantool-patches
2022-02-17 16:38 ` Igor Munkin via Tarantool-patches
0 siblings, 2 replies; 9+ messages in thread
From: Maxim Kokryashkin via Tarantool-patches @ 2021-09-24 14:28 UTC (permalink / raw)
To: tarantool-patches, imun, skaplun
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 <src/lj_lex.c>.
Also see commit 53a285c ('Disable
loading bytecode with an extra header (BOM or #!).').
Tests are adapted to LuaJIT behavior.
Closes tarantool/tarantool#5691
Part of tarantool/tarantool#5845
Part of tarantool/tarantool#4473
---
Issue: https://github.com/tarantool/tarantool/issues/5691
Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
test/PUC-Rio-Lua-5.1-tests/main.lua | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/test/PUC-Rio-Lua-5.1-tests/main.lua b/test/PUC-Rio-Lua-5.1-tests/main.lua
index 07facc4c..c62950c8 100644
--- a/test/PUC-Rio-Lua-5.1-tests/main.lua
+++ b/test/PUC-Rio-Lua-5.1-tests/main.lua
@@ -172,23 +172,17 @@ prepfile(s)
prepfile[[#comment in 1st line without \n at the end]]
RUN("lua %s", prog)
--- FIXME: Loading bytecode with an extra header (BOM or "#")
+-- 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 <src/lj_lex.c>.
-- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
-- (Disable loading bytecode with an extra header (BOM or #!).).
-- See also https://github.com/tarantool/tarantool/issues/5691.
--- The 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")
-
-prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
--- FIXME: Behavior is different for LuaJIT. See the comment above.
--- The test is disabled for LuaJIT.
--- RUN("lua %s > %s", prog, out)
--- checkout("1\n")
+-- The test is adapted to LuaJIT behavior.
+prepfile(string.dump(loadstring("print(1)")))
+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.33.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-09-24 14:28 [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files Maxim Kokryashkin via Tarantool-patches
@ 2021-10-11 14:25 ` Sergey Kaplun via Tarantool-patches
2021-10-11 20:02 ` Максим Корякшин via Tarantool-patches
2022-02-17 16:38 ` Igor Munkin via Tarantool-patches
1 sibling, 1 reply; 9+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2021-10-11 14:25 UTC (permalink / raw)
To: Maxim Kokryashkin; +Cc: tarantool-patches
Hi, Maxim!
Thanks for the patch!
LGTM, except a few comments below.
On 24.09.21, Maxim Kokryashkin wrote:
> 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 <src/lj_lex.c>.
> Also see commit 53a285c ('Disable
Nit: It is better to use the full commit hash here to avoid clashing.
> loading bytecode with an extra header (BOM or #!).').
> Tests are adapted to LuaJIT behavior.
>
> Closes tarantool/tarantool#5691
> Part of tarantool/tarantool#5845
> Part of tarantool/tarantool#4473
Looks like it should be 5870 instead. 5873 is a unbrella for all tests
activities.
> ---
Also, please attach tarantool branch with CI to check it is OK.
> Issue: https://github.com/tarantool/tarantool/issues/5691
> Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
>
> test/PUC-Rio-Lua-5.1-tests/main.lua | 16 +++++-----------
> 1 file changed, 5 insertions(+), 11 deletions(-)
>
> diff --git a/test/PUC-Rio-Lua-5.1-tests/main.lua b/test/PUC-Rio-Lua-5.1-tests/main.lua
> index 07facc4c..c62950c8 100644
> --- a/test/PUC-Rio-Lua-5.1-tests/main.lua
> +++ b/test/PUC-Rio-Lua-5.1-tests/main.lua
> @@ -172,23 +172,17 @@ prepfile(s)
> prepfile[[#comment in 1st line without \n at the end]]
> RUN("lua %s", prog)
>
> --- FIXME: Loading bytecode with an extra header (BOM or "#")
> +-- 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 <src/lj_lex.c>.
> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
> -- (Disable loading bytecode with an extra header (BOM or #!).).
> -- See also https://github.com/tarantool/tarantool/issues/5691.
> --- The 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")
> -
> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
> --- FIXME: Behavior is different for LuaJIT. See the comment above.
> --- The test is disabled for LuaJIT.
> --- RUN("lua %s > %s", prog, out)
> --- checkout("1\n")
> +-- The test is adapted to LuaJIT behavior.
> +prepfile(string.dump(loadstring("print(1)")))
> +RUN("lua %s > %s", prog, out)
> +checkout("1\n")
May be it is better to test `NoRun()` for 1 binary file with a comment at the
first string and `Run()` for another binary file without the comment.
>
> -- close Lua with an open file
> prepfile(string.format([[io.output(%q); io.write('alo')]], out))
> --
> 2.33.0
>
--
Best regards,
Sergey Kaplun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-10-11 14:25 ` Sergey Kaplun via Tarantool-patches
@ 2021-10-11 20:02 ` Максим Корякшин via Tarantool-patches
2021-10-12 8:13 ` Sergey Kaplun via Tarantool-patches
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
0 siblings, 2 replies; 9+ messages in thread
From: Максим Корякшин via Tarantool-patches @ 2021-10-11 20:02 UTC (permalink / raw)
To: Sergey Kaplun; +Cc: Maxim Kokryashkin, tarantool-patches
[-- Attachment #1: Type: text/plain, Size: 3641 bytes --]
Hi!
Thanks for the comments, here is the new commit message:
==========================================================
test: adapt tests checking loading bytecode files
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 <src/lj_lex.c>.
Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47 ('Disable
loading bytecode with an extra header (BOM or #!).').
Tests are adapted to LuaJIT behavior.
Part of tarantool/tarantool#5870
==========================================================
CI: https://github.com/tarantool/tarantool/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
Best regards,
Maxim Kokryashkin
>Понедельник, 11 октября 2021, 17:26 +03:00 от Sergey Kaplun <skaplun@tarantool.org>:
>
>Hi, Maxim!
>
>Thanks for the patch!
>
>LGTM, except a few comments below.
>
>On 24.09.21, Maxim Kokryashkin wrote:
>> 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 <src/lj_lex.c>.
>> Also see commit 53a285c ('Disable
>
>Nit: It is better to use the full commit hash here to avoid clashing.
>
>> loading bytecode with an extra header (BOM or #!).').
>> Tests are adapted to LuaJIT behavior.
>>
>> Closes tarantool/tarantool#5691
>> Part of tarantool/tarantool#5845
>> Part of tarantool/tarantool#4473
>
>Looks like it should be 5870 instead. 5873 is a unbrella for all tests
>activities.
>
>> ---
>
>Also, please attach tarantool branch with CI to check it is OK.
>
>> Issue: https://github.com/tarantool/tarantool/issues/5691
>> Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
>>
>> test/PUC-Rio-Lua-5.1-tests/main.lua | 16 +++++-----------
>> 1 file changed, 5 insertions(+), 11 deletions(-)
>>
>> diff --git a/test/PUC-Rio-Lua-5.1-tests/main.lua b/test/PUC-Rio-Lua-5.1-tests/main.lua
>> index 07facc4c..c62950c8 100644
>> --- a/test/PUC-Rio-Lua-5.1-tests/main.lua
>> +++ b/test/PUC-Rio-Lua-5.1-tests/main.lua
>> @@ -172,23 +172,17 @@ prepfile(s)
>> prepfile[[#comment in 1st line without \n at the end]]
>> RUN("lua %s", prog)
>>
>> --- FIXME: Loading bytecode with an extra header (BOM or "#")
>> +-- 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 <src/lj_lex.c>.
>> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
>> -- (Disable loading bytecode with an extra header (BOM or #!).).
>> -- See also https://github.com/tarantool/tarantool/issues/5691 .
>> --- The 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")
>> -
>> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
>> --- FIXME: Behavior is different for LuaJIT. See the comment above.
>> --- The test is disabled for LuaJIT.
>> --- RUN("lua %s > %s", prog, out)
>> --- checkout("1\n")
>> +-- The test is adapted to LuaJIT behavior.
>> +prepfile(string.dump(loadstring("print(1)")))
>> +RUN("lua %s > %s", prog, out)
>> +checkout("1\n")
>
>May be it is better to test `NoRun()` for 1 binary file with a comment at the
>first string and `Run()` for another binary file without the comment.
>
>>
>> -- close Lua with an open file
>> prepfile(string.format([[io.output(%q); io.write('alo')]], out))
>> --
>> 2.33.0
>>
>
>--
>Best regards,
>Sergey Kaplun
[-- Attachment #2: Type: text/html, Size: 4832 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-10-11 20:02 ` Максим Корякшин via Tarantool-patches
@ 2021-10-12 8:13 ` Sergey Kaplun via Tarantool-patches
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
1 sibling, 1 reply; 9+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2021-10-12 8:13 UTC (permalink / raw)
To: Максим
Корякшин
Cc: Maxim Kokryashkin, tarantool-patches
Hi!
Thanks for the fixes!
On 11.10.21, Максим Корякшин wrote:
>
<snipped>
> >>
> >> --- FIXME: Loading bytecode with an extra header (BOM or "#")
> >> +-- 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 <src/lj_lex.c>.
> >> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
> >> -- (Disable loading bytecode with an extra header (BOM or #!).).
> >> -- See also https://github.com/tarantool/tarantool/issues/5691 .
> >> --- The 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")
> >> -
> >> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
> >> --- FIXME: Behavior is different for LuaJIT. See the comment above.
> >> --- The test is disabled for LuaJIT.
> >> --- RUN("lua %s > %s", prog, out)
> >> --- checkout("1\n")
> >> +-- The test is adapted to LuaJIT behavior.
> >> +prepfile(string.dump(loadstring("print(1)")))
> >> +RUN("lua %s > %s", prog, out)
> >> +checkout("1\n")
> >
> >May be it is better to test `NoRun()` for 1 binary file with a comment at the
> >first string and `Run()` for another binary file without the comment.
What are your thoughts about this idea?
> >
> >>
> >> -- close Lua with an open file
> >> prepfile(string.format([[io.output(%q); io.write('alo')]], out))
> >> --
> >> 2.33.0
> >>
> >
> >--
> >Best regards,
> >Sergey Kaplun
>
--
Best regards,
Sergey Kaplun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-10-12 8:13 ` Sergey Kaplun via Tarantool-patches
@ 2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
2022-02-17 8:57 ` Maxim Kokryashkin via Tarantool-patches
2022-02-17 9:51 ` Sergey Kaplun via Tarantool-patches
0 siblings, 2 replies; 9+ messages in thread
From: Igor Munkin via Tarantool-patches @ 2022-02-16 12:43 UTC (permalink / raw)
To: Sergey Kaplun; +Cc: Maxim Kokryashkin, tarantool-patches
Sergey,
On 12.10.21, Sergey Kaplun wrote:
> Hi!
>
> Thanks for the fixes!
>
> On 11.10.21, Максим Корякшин wrote:
<snipped>
> > >> --- FIXME: Loading bytecode with an extra header (BOM or "#")
> > >> +-- 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 <src/lj_lex.c>.
> > >> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
> > >> -- (Disable loading bytecode with an extra header (BOM or #!).).
> > >> -- See also https://github.com/tarantool/tarantool/issues/5691 .
> > >> --- The 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")
> > >> -
> > >> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
> > >> --- FIXME: Behavior is different for LuaJIT. See the comment above.
> > >> --- The test is disabled for LuaJIT.
> > >> --- RUN("lua %s > %s", prog, out)
> > >> --- checkout("1\n")
> > >> +-- The test is adapted to LuaJIT behavior.
> > >> +prepfile(string.dump(loadstring("print(1)")))
> > >> +RUN("lua %s > %s", prog, out)
> > >> +checkout("1\n")
> > >
> > >May be it is better to test `NoRun()` for 1 binary file with a comment at the
> > >first string and `Run()` for another binary file without the comment.
>
> What are your thoughts about this idea?
What are you going to check with this? To check whether unsafe bytecode
loading is still disabled?
>
<snipped>
> --
> Best regards,
> Sergey Kaplun
--
Best regards,
IM
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
@ 2022-02-17 8:57 ` Maxim Kokryashkin via Tarantool-patches
2022-02-17 9:51 ` Sergey Kaplun via Tarantool-patches
1 sibling, 0 replies; 9+ messages in thread
From: Maxim Kokryashkin via Tarantool-patches @ 2022-02-17 8:57 UTC (permalink / raw)
To: Igor Munkin; +Cc: Maxim Kokryashkin, tarantool-patches
[-- Attachment #1: Type: text/plain, Size: 2614 bytes --]
Hello!
Thanks for the review!
New commit message:
=========================================================
test: adapt tests checking loading bytecode files
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 <src/lj_lex.c>.
Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47 ('Disable
loading bytecode with an extra header (BOM or #!).').
Tests are adapted to LuaJIT behavior.
Resolves tarantool/tarantool#5691
Part of tarantool/tarantool#5870
=========================================================
New CI branch:
https://github.com/tarantool/tarantool/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio-full-ci
--
Best regards,
Maxim Kokryashkin
>Среда, 16 февраля 2022, 15:47 +03:00 от Igor Munkin <imun@tarantool.org>:
>
>Sergey,
>
>On 12.10.21, Sergey Kaplun wrote:
>> Hi!
>>
>> Thanks for the fixes!
>>
>> On 11.10.21, Максим Корякшин wrote:
>
><snipped>
>
>> > >> --- FIXME: Loading bytecode with an extra header (BOM or "#")
>> > >> +-- 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 <src/lj_lex.c>.
>> > >> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
>> > >> -- (Disable loading bytecode with an extra header (BOM or #!).).
>> > >> -- See also https://github.com/tarantool/tarantool/issues/5691 .
>> > >> --- The 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")
>> > >> -
>> > >> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
>> > >> --- FIXME: Behavior is different for LuaJIT. See the comment above.
>> > >> --- The test is disabled for LuaJIT.
>> > >> --- RUN("lua %s > %s", prog, out)
>> > >> --- checkout("1\n")
>> > >> +-- The test is adapted to LuaJIT behavior.
>> > >> +prepfile(string.dump(loadstring("print(1)")))
>> > >> +RUN("lua %s > %s", prog, out)
>> > >> +checkout("1\n")
>> > >
>> > >May be it is better to test `NoRun()` for 1 binary file with a comment at the
>> > >first string and `Run()` for another binary file without the comment.
>>
>> What are your thoughts about this idea?
>
>What are you going to check with this? To check whether unsafe bytecode
>loading is still disabled?
>
>>
>
><snipped>
>
>> --
>> Best regards,
>> Sergey Kaplun
>
>--
>Best regards,
>IM
[-- Attachment #2: Type: text/html, Size: 3944 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
2022-02-17 8:57 ` Maxim Kokryashkin via Tarantool-patches
@ 2022-02-17 9:51 ` Sergey Kaplun via Tarantool-patches
1 sibling, 0 replies; 9+ messages in thread
From: Sergey Kaplun via Tarantool-patches @ 2022-02-17 9:51 UTC (permalink / raw)
To: Igor Munkin; +Cc: Maxim Kokryashkin, tarantool-patches
Igor,
On 16.02.22, Igor Munkin wrote:
> Sergey,
>
> On 12.10.21, Sergey Kaplun wrote:
> > Hi!
> >
> > Thanks for the fixes!
> >
> > On 11.10.21, Максим Корякшин wrote:
>
> <snipped>
>
> > > >> --- FIXME: Loading bytecode with an extra header (BOM or "#")
> > > >> +-- 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 <src/lj_lex.c>.
> > > >> -- Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47
> > > >> -- (Disable loading bytecode with an extra header (BOM or #!).).
> > > >> -- See also https://github.com/tarantool/tarantool/issues/5691 .
> > > >> --- The 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")
> > > >> -
> > > >> -prepfile("#comment with a binary file\r\n"..string.dump(loadstring("print(1)")))
> > > >> --- FIXME: Behavior is different for LuaJIT. See the comment above.
> > > >> --- The test is disabled for LuaJIT.
> > > >> --- RUN("lua %s > %s", prog, out)
> > > >> --- checkout("1\n")
> > > >> +-- The test is adapted to LuaJIT behavior.
> > > >> +prepfile(string.dump(loadstring("print(1)")))
> > > >> +RUN("lua %s > %s", prog, out)
> > > >> +checkout("1\n")
> > > >
> > > >May be it is better to test `NoRun()` for 1 binary file with a comment at the
> > > >first string and `Run()` for another binary file without the comment.
> >
> > What are your thoughts about this idea?
>
> What are you going to check with this? To check whether unsafe bytecode
> loading is still disabled?
Yes, for example.
>
> >
>
> <snipped>
>
> > --
> > Best regards,
> > Sergey Kaplun
>
> --
> Best regards,
> IM
--
Best regards,
Sergey Kaplun
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-10-11 20:02 ` Максим Корякшин via Tarantool-patches
2021-10-12 8:13 ` Sergey Kaplun via Tarantool-patches
@ 2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
1 sibling, 0 replies; 9+ messages in thread
From: Igor Munkin via Tarantool-patches @ 2022-02-16 12:43 UTC (permalink / raw)
To: Максим
Корякшин
Cc: Maxim Kokryashkin, tarantool-patches
Max,
LGTM, except a single nit below.
On 11.10.21, Максим Корякшин wrote:
>
> Hi!
> Thanks for the comments, here is the new commit message:
> ==========================================================
> test: adapt tests checking loading bytecode files
>
> 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 <src/lj_lex.c>.
> Also see commit 53a285c0c3544ff5dea7c67b741c3c2d06d22b47 ('Disable
> loading bytecode with an extra header (BOM or #!).').
> Tests are adapted to LuaJIT behavior.
>
Please, add "Resolves tarantool/tarantool#5691" too.
> Part of tarantool/tarantool#5870
> ==========================================================
>
> CI: https://github.com/tarantool/tarantool/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
>
> Best regards,
> Maxim Kokryashkin
>
<snipped>
>
--
Best regards,
IM
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files
2021-09-24 14:28 [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files Maxim Kokryashkin via Tarantool-patches
2021-10-11 14:25 ` Sergey Kaplun via Tarantool-patches
@ 2022-02-17 16:38 ` Igor Munkin via Tarantool-patches
1 sibling, 0 replies; 9+ messages in thread
From: Igor Munkin via Tarantool-patches @ 2022-02-17 16:38 UTC (permalink / raw)
To: Maxim Kokryashkin; +Cc: tarantool-patches
Max,
I've checked the patch into all long-term branches in tarantool/luajit
and bumped a new version in 1.10, 2.8 and master.o
On 24.09.21, Maxim Kokryashkin wrote:
> 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 <src/lj_lex.c>.
> Also see commit 53a285c ('Disable
> loading bytecode with an extra header (BOM or #!).').
> Tests are adapted to LuaJIT behavior.
>
> Closes tarantool/tarantool#5691
> Part of tarantool/tarantool#5845
> Part of tarantool/tarantool#4473
> ---
> Issue: https://github.com/tarantool/tarantool/issues/5691
> Branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-5691-adapt-bytecode-PUC-Rio
>
> test/PUC-Rio-Lua-5.1-tests/main.lua | 16 +++++-----------
> 1 file changed, 5 insertions(+), 11 deletions(-)
>
<snipped>
> --
> 2.33.0
>
--
Best regards,
IM
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2022-02-17 16:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 14:28 [Tarantool-patches] [PATCH luajit] test: adapt tests checking loading bytecode files Maxim Kokryashkin via Tarantool-patches
2021-10-11 14:25 ` Sergey Kaplun via Tarantool-patches
2021-10-11 20:02 ` Максим Корякшин via Tarantool-patches
2021-10-12 8:13 ` Sergey Kaplun via Tarantool-patches
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
2022-02-17 8:57 ` Maxim Kokryashkin via Tarantool-patches
2022-02-17 9:51 ` Sergey Kaplun via Tarantool-patches
2022-02-16 12:43 ` Igor Munkin via Tarantool-patches
2022-02-17 16:38 ` Igor Munkin via Tarantool-patches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox