summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2021-10-24 17:50:41 -0700
committertony mancill <tmancill@debian.org>2021-10-24 18:05:26 -0700
commit39c0ac2479b27eda45ac4869419162a0725d4cec (patch)
tree573ec559acae5a2689dea579f5fe4008ffb6a69c
parent40dadd5a4622f0b7a5f93f30a0eede4072c74411 (diff)
Fix for segfault when refspec is used (Closes: #995376)
-rw-r--r--debian/patches/995376-respec-segfault.patch27
-rw-r--r--debian/patches/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/995376-respec-segfault.patch b/debian/patches/995376-respec-segfault.patch
new file mode 100644
index 00000000..519d3783
--- /dev/null
+++ b/debian/patches/995376-respec-segfault.patch
@@ -0,0 +1,27 @@
+Author: Bill Somerville (g4wjs)
+Source: https://sourceforge.net/p/wsjt/mailman/message/37370468/
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995376
+Forwarded: not-needed
+
+diff --git a/lib/four2a.f90 b/lib/four2a.f90
+index e7e0e8018..a63f31a4d 100644
+--- a/lib/four2a.f90
++++ b/lib/four2a.f90
+@@ -67,7 +67,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
+
+ if(nfft.le.NSMALL) then
+ jz=nfft
+- if(iform.eq.0) jz=nfft/2
++ if(iform.le.0) jz=nfft/2
+ aa(1:jz)=a(1:jz)
+ endif
+
+@@ -87,7 +87,7 @@ subroutine four2a(a,nfft,ndim,isign,iform)
+
+ if(nfft.le.NSMALL) then
+ jz=nfft
+- if(iform.eq.0) jz=nfft/2
++ if(iform.le.0) jz=nfft/2
+ a(1:jz)=aa(1:jz)
+ endif
+ end if
diff --git a/debian/patches/series b/debian/patches/series
index 17248ea7..2517f215 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@
0013-qcustomplot-link.patch
0014-xsltproc-nonet-manpages.patch
0015-typos.patch
+995376-respec-segfault.patch