1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-09 03:22:45 +03:00

Fix lsp_url_encode()

Dst might be 3 times as large as the input
This commit is contained in:
xtne6f
2016-02-29 05:17:28 +09:00
committed by bel
parent 97368471d0
commit 1afdde421f

View File

@@ -704,7 +704,7 @@ lsp_url_encode(lua_State *L)
int num_args = lua_gettop(L);
const char *text;
size_t text_len;
char dst[512];
char dst[512 * 3];
if (num_args == 1) {
text = lua_tolstring(L, 1, &text_len);