mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 06:38:42 +08:00
Merge pull request #11374 from lupustr3:pvlasov/morph_big_fix
This commit is contained in:
commit
f659f80c7f
@ -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…
Reference in New Issue
Block a user