1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix buffer overflow in function eval_string_base_encode

This commit is contained in:
Sébastien Helleu
2025-05-11 16:11:54 +02:00
parent fdcab27513
commit 0c9028b47c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
Bug fixes::
* core: fix buffer overflow in function eval_string_base_encode
* core: fix integer overflow in function util_version_number
* core: fix integer overflow in base32 encoding/decoding
* core: fix integer overflow with decimal numbers in calculation of expression
+1 -1
View File
@@ -906,7 +906,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;