kopia lustrzana https://github.com/Hamlib/Hamlib
Fix buffer overflow in ft991.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3209pull/1640/head
rodzic
e6be427c51
commit
4b4b1b0d51
|
@ -702,7 +702,7 @@ static int ft991_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode,
|
|||
}
|
||||
|
||||
strncat(restore_commands, priv->ret_data,
|
||||
NEWCAT_DATA_LEN - strlen(restore_commands));
|
||||
NEWCAT_DATA_LEN - strlen(restore_commands) - 1);
|
||||
|
||||
/* Change mode on VFOA */
|
||||
if (RIG_OK != (err = newcat_set_mode(rig, RIG_VFO_A, tx_mode,
|
||||
|
|
Ładowanie…
Reference in New Issue