-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Imgproc: integral OOB access (2020-03-01) #16708
Copy link
Copy link
Closed
Milestone
Description
Relates #16556
Valgrind SSE (nightly):
[ RUN ] Imgproc_Integral.accuracy
==13847== Invalid read of size 16
==13847== at 0x5695276: _mm_blendv_epi8 (smmintrin.h:181)
==13847== by 0x5695276: v_load_deinterleave (intrin_sse.hpp:2089)
==13847== by 0x5695276: operator() (sumpixels.simd.hpp:243)
==13847== by 0x5695276: cv::hal::cpu_baseline::integral_SIMD(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.simd.hpp:1116)
==13847== by 0x5696A94: cv::hal::integral_SIMD(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.dispatch.cpp:361)
==13847== by 0x5696C01: cv::hal::integral(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.dispatch.cpp:378)
==13847== by 0x569BD53: cv::integral(cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, int, int) (sumpixels.dispatch.cpp:445)
==13847== by 0x569D7D4: cvIntegral (sumpixels.dispatch.cpp:488)
AVX2:
[ RUN ] Size_MatType_OutMatDepth_integral.integral/6, where GetParam() = (640x480, 8UC3, CV_32S)
==46316== Invalid read of size 16
==46316== at 0x5208CE4: _mm256_loadu_si256 (avxintrin.h:921)
==46316== by 0x5208CE4: cv::hal_AVX2::v_load_deinterleave(unsigned char const*, cv::hal_AVX2::v_uint8x32&, cv::hal_AVX2::v_uint8x32&, cv::hal_AVX2::v_uint8x32&) (intrin_avx.hpp:2391)
==46316== by 0x531CBF3: cv::hal::opt_AVX2::(anonymous namespace)::Integral_SIMD<unsigned char, int, double>::operator()(unsigned char const*, unsigned long, int*, unsigned long, double*, unsigned long, int*, unsigned long, int, int, int) const (sumpixels.simd.hpp:243)
==46316== by 0x5324374: cv::hal::opt_AVX2::integral_SIMD(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.simd.hpp:1116)
==46316== by 0x50B6418: cv::hal::integral_SIMD(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.dispatch.cpp:361)
==46316== by 0x50B662E: cv::hal::integral(int, int, int, unsigned char const*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, unsigned char*, unsigned long, int, int, int) (sumpixels.dispatch.cpp:378)
Details
[ RUN ] Size_MatType_OutMatDepth_integral.integral/6, where GetParam() = (640x480, 8UC3, CV_32S)
Process returned: -11
[ RUN ] OCL_ImgSize_TmplSize_Method_MatType_MatchTemplate.MatchTemplate/89, where GetParam() = (1280x1024, 11x11, TM_CCOEFF, 8UC3)
C:\build\3_4_noICV-win64-vc14\opencv\modules\ts\src\ts_perf.cpp(2038): error: Failed
Expected: PerfTestBody() doesn't throw an exception.
Actual: it throws...
params = (1280x1024, 11x11, TM_CCOEFF, 8UC3)
termination reason: unhandled exception
bytesIn = 0
bytesOut = 0
samples = 0 of 1
outliers = 0
frequency = 0
[ FAILED ] OCL_ImgSize_TmplSize_Method_MatType_MatchTemplate.MatchTemplate/89, where GetParam() = (1280x1024, 11x11, TM_CCOEFF, 8UC3) (32 ms)
[ RUN ] OCL_ImgSize_TmplSize_Method_MatType_MatchTemplate.MatchTemplate/113, where GetParam() = (1280x1024, 16x16, TM_CCOEFF, 8UC3)
C:\build\3_4_noICV-win64-vc14\opencv\modules\ts\src\ts_perf.cpp(2038): error: Failed
Expected: PerfTestBody() doesn't throw an exception.
Actual: it throws...
params = (1280x1024, 16x16, TM_CCOEFF, 8UC3)
termination reason: unhandled exception
bytesIn = 0
bytesOut = 0
samples = 0 of 1
outliers = 0
frequency = 0
[ FAILED ] OCL_ImgSize_TmplSize_Method_MatType_MatchTemplate.MatchTemplate/113, where GetParam() = (1280x1024, 16x16, TM_CCOEFF, 8UC3) (47 ms)
Reactions are currently unavailable