kopia lustrzana https://github.com/Hamlib/Hamlib
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`Hamlib-4.6.3
rodzic
566d56bb29
commit
201f69bf3c
|
@ -2372,7 +2372,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)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue