Skip to content

Commit bfac9d7

Browse files
committed
tests/capi: fix building luaL_bufflen_test
In the latest commits LUAI_MAXSTACK is defined privately [1]: > LUAI_MAXSTACK is limited to INT_MAX/2, so can use INT_MAX/2 to > define pseudo-indices (LUA_REGISTRYINDEX) in 'lua.h'. A change > in the maximum stack size does not need to change the Lua-C ABI. 1. lua/lua@59a1adf
1 parent 0508724 commit bfac9d7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/capi/luaL_bufflen_test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
2020
if (L == NULL)
2121
return 0;
2222

23-
if (size > LUAI_MAXSTACK)
24-
return -1;
25-
2623
luaL_Buffer buf;
2724
char *s = luaL_buffinitsize(L, &buf, size);
2825
memcpy(s, data, size);

0 commit comments

Comments
 (0)