1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: fix buffer overflow in function eval_string_base_encode

This commit is contained in:
Sébastien Helleu
2025-05-10 15:28:41 +02:00
parent 9d37159a6b
commit 6ecd9e66bf
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -896,7 +896,7 @@ eval_string_base_encode (const char *text)
ptr_string++;
length = strlen (ptr_string);
result = malloc ((length * 4) + 1);
result = malloc ((length * 4) + 8 + 1);
if (!result)
goto end;