View | Details | Raw Unified | Return to bug 199737
Collapse All | Expand All

(-)comms/linrad/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	linrad
4
PORTNAME=	linrad
5
PORTVERSION=	4.02
5
PORTVERSION=	4.02
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	comms hamradio
7
CATEGORIES=	comms hamradio
8
MASTER_SITES=	http://www.nitehawk.com/sm5bsz/linuxdsp/archive/\
8
MASTER_SITES=	http://www.nitehawk.com/sm5bsz/linuxdsp/archive/\
9
		http://g7rau.demon.co.uk/sm5bsz/linuxdsp/archive/\
9
		http://g7rau.demon.co.uk/sm5bsz/linuxdsp/archive/\
(-)comms/linrad/files/patch-caliq.c (+15 lines)
Line 0 Link Here
1
The z array must always been in multiples of four, not two.  It is populated
2
four at a time (j, j+1, j+2, j+3).  Without this fix, it breaks on Werror with
3
array subscript out of bounds on line 550.
4
5
--- caliq.c.orig	2014-11-04 10:25:00 UTC
6
+++ caliq.c
7
@@ -391,7 +391,7 @@ char s[80];
8
 int seg,color;
9
 int ia,ib;
10
 int i,j,k,m,n,mm,errskip;
11
-float z[2*MAX_ADCHAN];
12
+float z[4*MAX_ADCHAN];
13
 float t1,t2,t3;
14
 caliq_clear_flag=TRUE;
15
 clear_fft1_filtercorr();
(-)comms/linrad/files/patch-menu.c (+16 lines)
Line 0 Link Here
1
Please check if index is within constaints *BEFORE* using it.
2
This error was caught by GCC5 diagnostics
3
4
--- menu.c.orig	2014-11-04 10:25:00 UTC
5
+++ menu.c
6
@@ -968,8 +968,8 @@ if(parnum == SECOND_FFT_ATT_N)
7
 if(parnum == SECOND_FFT_VERNR)
8
   {
9
   i=0;
10
-  while( fft2_version[ui.rx_rf_channels-1][i+1] > 0 &&
11
-                                      i < MAX_FFT2_VERNR-1)i++;
12
+  while( i < MAX_FFT2_VERNR-1 && 
13
+         fft2_version[ui.rx_rf_channels-1][i+1] > 0)i++;
14
   if(mmx_present == 0)
15
     {
16
     while( fft_cntrl[fft2_version[ui.rx_rf_channels-1][i]].mmx != 0)i--;

Return to bug 199737