Skip to content

Conversation

ligurio
Copy link
Owner

@ligurio ligurio commented May 6, 2025

This patch fixes the Lua inputs in luaL_loadbuffer_fuzzer that generate the infinite cycles or recursive function calls, like the following:

if counter_0 > 5 then break end
counter_0 = counter_0 + 1
and (0.000000 );

The and here is generated by the NameToString() function, which doesn't check that the name shouldn't be reserved.

This patch adds the corresponding check and separates the counter increment with ; to avoid any ambiguous syntax.

Follows up the commit 82ec1cc ("tests: fix errors "'' expected near 'and'"").

Backported tarantool/tarantool@5836426

This patch fixes the Lua inputs in `luaL_loadbuffer_fuzzer` that
generate the infinite cycles or recursive function calls, like the
following:

```
if counter_0 > 5 then break end
counter_0 = counter_0 + 1
and (0.000000 );
```

The `and` here is generated by the `NameToString()` function, which
doesn't check that the name shouldn't be reserved.

This patch adds the corresponding check and separates the counter
increment with `;` to avoid any ambiguous syntax.

Follows up the commit 82ec1cc ("tests: fix errors "'<name>'
expected near 'and'"").

Backported tarantool/tarantool@5836426
@ligurio ligurio force-pushed the ligurio/gh-xxxx-fix-timeout branch from 78a3da5 to b4e7164 Compare May 6, 2025 07:19
@ligurio ligurio merged commit 802fbe7 into master May 6, 2025
11 of 12 checks passed
@ligurio ligurio deleted the ligurio/gh-xxxx-fix-timeout branch May 6, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants