From d0798acd88b87d956543637694f5e21738427074 Mon Sep 17 00:00:00 2001 From: turly221 Date: Mon, 9 Dec 2024 04:23:59 +0000 Subject: [PATCH] commit patch 24998297 --- src/net_packet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net_packet.c b/src/net_packet.c index 1efc60dd7..054679e9a 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -394,6 +394,9 @@ static void receive_udppacket(node_t *n, vpn_packet_t *inpkt) { void receive_tcppacket(connection_t *c, const char *buffer, int len) { vpn_packet_t outpkt; + if(len > sizeof outpkt.data) + return; + outpkt.len = len; if(c->options & OPTION_TCPONLY) outpkt.priority = 0;