Skip to content

Commit 8ef72ef

Browse files
committed
tests/lapi: fix string length in string_pack_test
Fix misuse `consume_string()` - the function has a single argument with max string length. Follows up commit 0508724 ("tests/lapi: add string tests").
1 parent bc4b37e commit 8ef72ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lapi/string_pack_test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end
2020
local function TestOneInput(buf, _size)
2121
local fdp = luzer.FuzzedDataProvider(buf)
2222
os.setlocale(test_lib.random_locale(fdp), "all")
23-
local fmt_str = fdp:consume_string(0, test_lib.MAX_INT)
23+
local fmt_str = fdp:consume_string(test_lib.MAX_STR_LEN)
2424
if fdp:remaining_bytes() == 0 then
2525
return -1
2626
end

0 commit comments

Comments
 (0)