Add more bounds checks.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7762 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Steven Franke 2017-07-01 14:47:52 +00:00
parent 12c1b45c66
commit 4c88ab860b

View File

@ -207,9 +207,9 @@ subroutine ft8_downsample(dd,f0,c1)
baud=12000.0/(32.0*64.0)
i0=nint(f0/df)
ft=f0+8.0*baud
it=nint(ft/df)
it=min(nint(ft/df),NMAX/2-1)
fb=f0-1.0*baud
ib=nint(fb/df)
ib=max(1,nint(fb/df))
k=0
c1=cmplx(0.0,0.0)
do i=ib,it