[opencv] 192/251: core(stat): disable IPP optimization in meanStdDev (cn > 1)

Nobuhiro Iwamatsu iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

iwamatsu pushed a commit to annotated tag 3.3.0
in repository opencv.

commit e58a778bd5536b1c175a6ac58239e12701a95af2
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date:   Mon Jul 31 14:04:56 2017 +0300

    core(stat): disable IPP optimization in meanStdDev (cn > 1)
---
 modules/core/src/stat.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp
index 13d8c21..8018169 100644
--- a/modules/core/src/stat.cpp
+++ b/modules/core/src/stat.cpp
@@ -1739,6 +1739,13 @@ static bool ipp_meanStdDev(Mat& src, OutputArray _mean, OutputArray _sdv, Mat& m
 
 #if IPP_VERSION_X100 >= 700
     int cn = src.channels();
+
+#if IPP_VERSION_X100 < 201801
+    // IPP_DISABLE: C3C functions can read outside of allocated memory
+    if (cn > 1)
+        return false;
+#endif
+
     size_t total_size = src.total();
     int rows = src.size[0], cols = rows ? (int)(total_size/rows) : 0;
     if( src.dims == 2 || (src.isContinuous() && mask.isContinuous() && cols > 0 && (size_t)rows*cols == total_size) )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git



More information about the debian-science-commits mailing list