mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Protect against bounds error when invalid frequencies are presented to decoder.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@7547 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
b3e9321a0f
commit
beceb766ff
@ -15,6 +15,8 @@ subroutine qra64b(nutc,nqd,ikhz,mousedf,ntol,xpol,mycall_12,hiscall_12, &
|
||||
df=96000.0/NFFT1
|
||||
k0=(ikhz-75.170)*1000.0/df
|
||||
nh=nfft2/2
|
||||
if(k0.lt.nh .or. k0.gt.NFFT1-nh) go to 900
|
||||
|
||||
fac=1.0/NFFT2
|
||||
cx(0:nh)=ca(k0:k0+nh)
|
||||
cx(nh+1:NFFT2-1)=ca(k0-nh+1:k0-1)
|
||||
@ -36,5 +38,5 @@ subroutine qra64b(nutc,nqd,ikhz,mousedf,ntol,xpol,mycall_12,hiscall_12, &
|
||||
hiscall_12,hisgrid_6,mode64,nwrite_qra64)
|
||||
close(17)
|
||||
|
||||
return
|
||||
900 return
|
||||
end subroutine qra64b
|
||||
|
@ -1,4 +1,4 @@
|
||||
//-------------------------------------------------------------- MainWindow
|
||||
//--------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
Loading…
Reference in New Issue
Block a user