Commit a42789f3 authored by Pavel Vlasov's avatar Pavel Vlasov

IPP morphology with big images hotfix.

parent b290bdaf
...@@ -1148,6 +1148,11 @@ static bool ippMorph(int op, int src_type, int dst_type, ...@@ -1148,6 +1148,11 @@ static bool ippMorph(int op, int src_type, int dst_type,
// Different mask flipping // Different mask flipping
if(op == MORPH_GRADIENT) if(op == MORPH_GRADIENT)
return false; return false;
// Integer overflow bug
if(src_step >= IPP_MAX_32S ||
src_step*height >= IPP_MAX_32S)
return false;
#endif #endif
#if IPP_VERSION_X100 < 201801 #if IPP_VERSION_X100 < 201801
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment