From 0b6baf4f4f971289ce953b5d1ea3b7badaa8721b Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Mon, 14 Jul 2025 22:42:54 +0300 Subject: [PATCH] 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 0508724910b2 ("tests/lapi: add string tests"). --- tests/lapi/string_pack_test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lapi/string_pack_test.lua b/tests/lapi/string_pack_test.lua index 0166d75..3ea30af 100644 --- a/tests/lapi/string_pack_test.lua +++ b/tests/lapi/string_pack_test.lua @@ -20,7 +20,7 @@ end local function TestOneInput(buf, _size) local fdp = luzer.FuzzedDataProvider(buf) os.setlocale(test_lib.random_locale(fdp), "all") - local fmt_str = fdp:consume_string(0, test_lib.MAX_INT) + local fmt_str = fdp:consume_string(test_lib.MAX_STR_LEN) if fdp:remaining_bytes() == 0 then return -1 end