Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2023 12:35:03 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 4967d9eb09c1 - main - net/remmina: Fix ssh plugin.
Message-ID:  <202303051235.325CZ3Ap068087@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

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

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

diff --git a/net/remmina/Makefile b/net/remmina/Makefile
index db39f560a8c8..65aba92322cb 100644
--- a/net/remmina/Makefile
+++ b/net/remmina/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	remmina
 DISTVERSION=	1.4.29
+PORTREVISION=	1
 CATEGORIES=	net gnome
 
 MAINTAINER=	fernape@FreeBSD.org
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303051235.325CZ3Ap068087>