Permalink
Browse files

added patch changeset_6807f4ee8f5501703e447f95701190c836deaae1.diff

to "cherry-pick" 6807f4e (BF: Initialize firstbg to the numels so if no bg value found, second loop is not executed)
  • Loading branch information...
1 parent 4b450f6 commit 0b8664a430d87e02af9d71a44d09fec9f29a0168 @yarikoptic yarikoptic committed Dec 12, 2016
View
@@ -1,3 +1,11 @@
+skimage (0.12.3-2) unstable; urgency=medium
+
+ * debian/patches
+ - changeset_6807f4ee8f5501703e447f95701190c836deaae1.diff to initialize
+ value of firstbg to avoid segfaults (Closes: #840589)
+
+ -- Yaroslav Halchenko <debian@onerussian.com> Mon, 12 Dec 2016 12:41:31 -0500
+
skimage (0.12.3-1) unstable; urgency=medium
[ Stefan van der Walt ]
@@ -0,0 +1,14 @@
+From: Yaroslav Halchenko <debian@onerussian.com>
+Subject: BF: Initialize firstbg to the numels so if no bg value found, second loop is not executed
+
+--- a/skimage/measure/_ccomp.pyx
++++ b/skimage/measure/_ccomp.pyx
+@@ -541,7 +541,7 @@ cdef void scanBG(DTYPE_t *data_p, DTYPE_
+
+ The result of this function is update of forest_p and bg parameter.
+ """
+- cdef DTYPE_t i, bgval = bg.background_val, firstbg
++ cdef DTYPE_t i, bgval = bg.background_val, firstbg = shapeinfo.numels
+ # We find the provisional label of the background, which is the index of
+ # the first background pixel
+ for i in range(shapeinfo.numels):
View
@@ -1,3 +1,4 @@
+changeset_6807f4ee8f5501703e447f95701190c836deaae1.diff
dask-optional-dep.patch
search-html.patch
fix-doc-links.patch

0 comments on commit 0b8664a

Please sign in to comment.