opencv/modules/core
Vincent Rabaud 16ea1382f7 Fix sanitizer issue in countNonZero32f
In that function, the floats are cast to int to be compared to 0.
But a float can be -0 or +0, hence
define CHECK_NZ_FP(x) ((x)*2 != 0)
to remove the sign bit. Except that can trigger the sanitizer:
runtime error: signed integer overflow: -1082130432 * 2 cannot be represented in type 'int'
Doing everything in uint instead of int is properly defined by the
standard.
2024-10-10 13:35:49 +02:00
..
3rdparty/SoftFloat
cmake/parallel core(parallel): plugins support 2021-02-15 17:07:36 +00:00
doc Merge branch 4.x 2023-07-05 15:51:10 +03:00
include/opencv2 Merge pull request #25984 from fengyuentau:imgproc/warpaffine_opt 2024-10-03 14:01:36 +03:00
misc Merge branch 4.x 2024-08-28 15:06:19 +03:00
perf Merge branch 4.x 2024-09-10 10:15:22 +03:00
src Fix sanitizer issue in countNonZero32f 2024-10-10 13:35:49 +02:00
test Merge pull request #26255 from vpisarev:test_for_countnonzero_1d 2024-10-07 17:11:24 +03:00
CMakeLists.txt Merge branch 4.x 2024-07-17 10:08:16 +03:00