From 23de03a0c8bf8a564cc0442f49d050ed11e372b8 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 29 Jun 2026 11:36:57 +0100 Subject: New upstream version 6.0.25.33.1+repack --- AGWAPI.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'AGWAPI.c') diff --git a/AGWAPI.c b/AGWAPI.c index f40ba4c..5dc2f9c 100644 --- a/AGWAPI.c +++ b/AGWAPI.c @@ -1393,7 +1393,13 @@ int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr) if (sockptr->AGWRXHeader.DataKind == 'V') // Unproto with VIA string { Digis = sockptr->MsgData[0]; // Number of digis - + + if (Digis > 7) + { + AGWDataSocket_Disconnect(sockptr); + return 0; + } + for (j = 1; j<= Digis; j++) { ConvToAX25(&sockptr->MsgData[(j - 1) * 10 + 1],&TXMessage[7+(j*7)]); // No "last" bit -- cgit v1.2.3