Fix potential NaN in cv::norm.
authorVincent Rabaud <vrabaud@google.com>
Fri, 11 Jun 2021 20:03:33 +0000 (22:03 +0200)
committerVincent Rabaud <vrabaud@google.com>
Tue, 15 Jun 2021 12:58:11 +0000 (14:58 +0200)
commitc8268e65fd6c3a8fba7a5a1f4b830222b9bc9d66
treee0a89bf6a815e5e4421007316fffd334cd5343d5
parent3cf43753876e3c2c2676283d4fd10a6018b5a264
Fix potential NaN in cv::norm.

There can be an int overflow.
cv::norm( InputArray _src, int normType, InputArray _mask ) is fine,
not cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _mask ).
modules/core/src/norm.cpp
modules/core/test/test_arithm.cpp