From 70d50d0efbbdd84157c9cd89043744f07d15bfd8 Mon Sep 17 00:00:00 2001 From: George Baltz N3GB Date: Wed, 6 Aug 2025 04:59:50 -0400 Subject: [PATCH] Fix one byte buffer overrun All the pictures in manuals show message as 4 bytes, but they don't include the major command (0x26). Found by `gcc -fanalyzer` --- rigs/icom/icom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 995a25a0c..e22cadfe7 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -2373,7 +2373,7 @@ static int icom_set_mode_x26(RIG *rig, vfo_t vfo, rmode_t mode, int ack_len = sizeof(ackbuf); int buf_len = 3; int mode_len; - unsigned char mode_buf[4]; + unsigned char mode_buf[5]; if (priv->x26cmdfails > 0 && !priv_caps->x25x26_always) {