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:
parent
dff69ac2a3
commit
4967d9eb09
2 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= remmina
|
||||
DISTVERSION= 1.4.29
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net gnome
|
||||
|
||||
MAINTAINER= fernape@FreeBSD.org
|
||||
|
|
11
net/remmina/files/patch-src_remmina__ssh.c
Normal file
11
net/remmina/files/patch-src_remmina__ssh.c
Normal 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);
|
Loading…
Reference in a new issue