mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -05:00
Fix a buffer overrun in the FT8 message generator
Thanks to Ian, KD8CEC, for diagnosing and contributing a patch for this defect. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8422 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
dfed81d618
commit
9c99fac364
@ -141,7 +141,6 @@ extern "C" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols
|
int volatile itone[NUM_ISCAT_SYMBOLS]; //Audio tones for all Tx symbols
|
||||||
char volatile ft8msgbits[75]; //packed 75 bit ft8 message
|
|
||||||
int volatile icw[NUM_CW_SYMBOLS]; //Dits for CW ID
|
int volatile icw[NUM_CW_SYMBOLS]; //Dits for CW ID
|
||||||
struct dec_data dec_data; // for sharing with Fortran
|
struct dec_data dec_data; // for sharing with Fortran
|
||||||
|
|
||||||
@ -3377,6 +3376,7 @@ void MainWindow::guiUpdate()
|
|||||||
foxTxSequencer();
|
foxTxSequencer();
|
||||||
} else {
|
} else {
|
||||||
m_i3bit=0;
|
m_i3bit=0;
|
||||||
|
char ft8msgbits[75 + 12]; //packed 75 bit ft8 message plus 12-bit CRC
|
||||||
genft8_(message, MyGrid, &bcontest, &m_i3bit, msgsent, const_cast<char *> (ft8msgbits),
|
genft8_(message, MyGrid, &bcontest, &m_i3bit, msgsent, const_cast<char *> (ft8msgbits),
|
||||||
const_cast<int *> (itone), 22, 6, 22);
|
const_cast<int *> (itone), 22, 6, 22);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user