talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1e87622ac8f04e1f4bf00cf8516425bff141a911
parent 8f23177469fef16a01ce8c4b2cdd1d4f88dc324b
Author: wwp <subscript@free.fr>
Date:   Wed,  5 Mar 2025 21:00:38 +0100

Fix CID 1491061: Out-of-bounds access (OVERRUN)

Diffstat:
Msrc/compose.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compose.c b/src/compose.c @@ -11940,7 +11940,7 @@ static void compose_header_drag_received_cb (GtkWidget *widget, * does not work */ if (!strncmp(email, "mailto:", strlen("mailto:"))) { - gchar *decoded=g_new(gchar, strlen(email)); + gchar *decoded=g_new(gchar, strlen(email)+1); int start = 0; decode_uri(decoded, email + strlen("mailto:")); /* will fit */