IPP morphology with big images hotfix.

pull/11374/head
Pavel Vlasov 7 years ago
parent b290bdafb9
commit a42789f330
  1. 5
      modules/imgproc/src/morph.cpp

@ -1148,6 +1148,11 @@ static bool ippMorph(int op, int src_type, int dst_type,
// Different mask flipping
if(op == MORPH_GRADIENT)
return false;
// Integer overflow bug
if(src_step >= IPP_MAX_32S ||
src_step*height >= IPP_MAX_32S)
return false;
#endif
#if IPP_VERSION_X100 < 201801

Loading…
Cancel
Save