Commit 802fbe7
tests/capi: fix possible timeout in result chunks
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@58364261 parent dece9f2 commit 802fbe7
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1212 | 1216 | | |
1213 | 1217 | | |
1214 | 1218 | | |
| |||
0 commit comments