git: a9cb9c75a020 - 2023Q1 - net/remmina: Fix ssh plugin.

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sun, 05 Mar 2023 12:36:44 UTC
The branch 2023Q1 has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a9cb9c75a0200535b922be6057ef08cb238092be

commit a9cb9c75a0200535b922be6057ef08cb238092be
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-03-02 16:45:19 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-03-05 12:32:14 +0000

    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)
    
    (cherry picked from commit 4967d9eb09c1369d5c3dd41edaedba25fd127f3d)
---
 net/remmina/Makefile                       |  2 +-
 net/remmina/files/patch-src_remmina__ssh.c | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/net/remmina/Makefile b/net/remmina/Makefile
index 8f97ba52850b..ef0a27500d61 100644
--- a/net/remmina/Makefile
+++ b/net/remmina/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	remmina
-DISTVERSION=	1.4.27
+DISTVERSION=	1.4.29
 PORTREVISION=	1
 CATEGORIES=	net gnome
 
diff --git a/net/remmina/files/patch-src_remmina__ssh.c b/net/remmina/files/patch-src_remmina__ssh.c
new file mode 100644
index 000000000000..2241984b4b9f
--- /dev/null
+++ b/net/remmina/files/patch-src_remmina__ssh.c
@@ -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);