[Git][debian-gis-team/snaphu][upstream] New upstream version 2.0.3

Antonio Valentino gitlab at salsa.debian.org
Mon Nov 11 07:12:48 GMT 2019



Antonio Valentino pushed to branch upstream at Debian GIS Project / snaphu


Commits:
05c9db27 by Antonio Valentino at 2019-11-11T07:06:41Z
New upstream version 2.0.3
- - - - -


4 changed files:

- README
- README_releasenotes.txt
- src/snaphu.h
- src/snaphu_solver.c


Changes:

=====================================
README
=====================================
@@ -1,7 +1,7 @@
 SNAPHU
 Statistical-Cost, Netowrk-Flow Algorithm for Phase Unwrapping
 Author: Curtis W. Chen
-Version 2.0.2, October 2019
+Version 2.0.3, November 2019
 
 
 Contents


=====================================
README_releasenotes.txt
=====================================
@@ -1,3 +1,10 @@
+Notable changes in v2.0.3 since v2.0.2:
+---------------------------------------
+
+* Fixed limit-checking error that would sometimes cause segmentation fault when
+  width of masked area was only one pixel at right or bottom edges.
+  
+
 Notable changes in v2.0.2 since v2.0.1:
 ---------------------------------------
 


=====================================
src/snaphu.h
=====================================
@@ -14,7 +14,7 @@
 /**********************/
 
 #define PROGRAMNAME          "snaphu"
-#define VERSION              "2.0.2"
+#define VERSION              "2.0.3"
 #define BUGREPORTEMAIL       "snaphu at gmail.com"
 #ifdef PI
 #undef PI


=====================================
src/snaphu_solver.c
=====================================
@@ -2095,7 +2095,7 @@ void GetArcGrid(nodeT *from, nodeT *to, long *arcrow, long *arccol,
     *arccol=fromcol;
     *arcdir=-1;
   }else if(fromrow==BOUNDARYROW){ /* arc from boundary pointer */  
-    if(tocol<ncol-1 && nodes[torow][tocol+1].group==BOUNDARYPTR){
+    if(tocol<ncol-2 && nodes[torow][tocol+1].group==BOUNDARYPTR){
       *arcrow=torow;
       *arccol=tocol+1;
       *arcdir=-1;
@@ -2103,7 +2103,7 @@ void GetArcGrid(nodeT *from, nodeT *to, long *arcrow, long *arccol,
       *arcrow=torow;
       *arccol=tocol;
       *arcdir=1;
-    }else if(torow<nrow-1 && nodes[torow+1][tocol].group==BOUNDARYPTR){
+    }else if(torow<nrow-2 && nodes[torow+1][tocol].group==BOUNDARYPTR){
       *arcrow=torow+1+nrow-1;
       *arccol=tocol;
       *arcdir=-1;
@@ -2113,7 +2113,7 @@ void GetArcGrid(nodeT *from, nodeT *to, long *arcrow, long *arccol,
       *arcdir=1;
     }
   }else if(torow==BOUNDARYROW){   /* arc to boundary pointer */
-    if(fromcol<ncol-1 && nodes[fromrow][fromcol+1].group==BOUNDARYPTR){
+    if(fromcol<ncol-2 && nodes[fromrow][fromcol+1].group==BOUNDARYPTR){
       *arcrow=fromrow;
       *arccol=fromcol+1;
       *arcdir=1;
@@ -2121,7 +2121,7 @@ void GetArcGrid(nodeT *from, nodeT *to, long *arcrow, long *arccol,
       *arcrow=fromrow;
       *arccol=fromcol;
       *arcdir=-1;
-    }else if(fromrow<nrow-1 && nodes[fromrow+1][fromcol].group==BOUNDARYPTR){
+    }else if(fromrow<nrow-2 && nodes[fromrow+1][fromcol].group==BOUNDARYPTR){
       *arcrow=fromrow+1+nrow-1;
       *arccol=fromcol;
       *arcdir=1;



View it on GitLab: https://salsa.debian.org/debian-gis-team/snaphu/commit/05c9db27dbb427bca1a4727e496b79c6ab83609f

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/snaphu/commit/05c9db27dbb427bca1a4727e496b79c6ab83609f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20191111/e38120d2/attachment-0001.html>


More information about the Pkg-grass-devel mailing list