From 9c99fac36439828a435afb9aa53ab5e78926d4de Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 19 Jan 2018 13:54:05 +0000 Subject: [PATCH] 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 --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b72f30b98..674ee2c5f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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 (ft8msgbits), const_cast (itone), 22, 6, 22); }