Fix a buffer overrun in the FT8 message generator

Thanks to Ian, KD8CEC, for diagnosing and contributing a patch for
this defect.

Merged from trunk.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@8423 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2018-01-19 14:01:06 +00:00
parent 521f7d60d4
commit e952da8aa9

View File

@ -137,7 +137,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
@ -3225,6 +3224,7 @@ void MainWindow::guiUpdate()
}
}
if(m_modeTx=="FT8") {
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);
}