net/remmina: Fix ssh plugin.

Reduce size of the buffer to avoid stack smashing.

PR:		265056
Reported by:	ohartmann@walstatt.org
MFH:		2023Q1 (bug fix)
This commit is contained in:
Fernando Apesteguía 2023-03-02 17:45:19 +01:00
parent dff69ac2a3
commit 4967d9eb09
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= remmina
DISTVERSION= 1.4.29
PORTREVISION= 1
CATEGORIES= net gnome
MAINTAINER= fernape@FreeBSD.org

View file

@ -0,0 +1,11 @@
--- src/remmina_ssh.c.orig 2023-03-02 13:25:58 UTC
+++ src/remmina_ssh.c
@@ -479,7 +479,7 @@ remmina_ssh_cp_to_ch_cb(int fd, int revents, void *use
{
TRACE_CALL(__func__);
ssh_channel channel = (ssh_channel)userdata;
- gchar buf[0x200000];
+ gchar buf[524288];
gint sz = 0, ret = 0;
node_t *temp_node = remmina_ssh_search_item(channel);