From e952da8aa9541d8ec784609fb4da1a37010efcc2 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 19 Jan 2018 14:01:06 +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. 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 --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 7fa2eac0c..f3b322563 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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 (ft8msgbits), const_cast (itone), 22, 6, 22); }