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:
Bill Somerville 2018-01-19 13:54:05 +00:00
parent dfed81d618
commit 9c99fac364
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,6 @@ extern "C" {
}
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
struct dec_data dec_data; // for sharing with Fortran
@ -3377,6 +3376,7 @@ void MainWindow::guiUpdate()
foxTxSequencer();
} else {
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),
const_cast<int *> (itone), 22, 6, 22);
}