opencv/modules/objdetect
Vincent Rabaud fcdaaabf7c Unconditionally create SuperScale in BarcodeDetector to avoid null deref
This pointer is called unconditionally in BarcodeImpl::initDecode
assuming the size of the image is outside the specified bounds.  This
seems to not cause problems on optimized builds, I assume because the
optimizer sees through the processImageScale call to see that it can be
reduced to a resize call.  Leaving it as is relies on undefined
behavior.

This was the least invasive change I could make, however, it might be
worthwhile to pull up the logic for a resize so that a SuperScale does
not need to be allocated, which seems to be the most common case.
2023-10-19 22:42:11 +02:00
..
doc Merge pull request #23666 from mshabunin:barcode-move 2023-06-14 22:21:38 +03:00
include/opencv2 Merge pull request #24355 from AleksandrPanov:dynamic_window_in_aruco_cornerRefinement 2023-10-12 10:52:56 +03:00
misc fix drawDetectedCornersCharuco, drawDetectedMarkers, drawDetectedDiamonds added tests 2023-09-12 12:17:57 +03:00
perf Merge pull request #23666 from mshabunin:barcode-move 2023-06-14 22:21:38 +03:00
src Unconditionally create SuperScale in BarcodeDetector to avoid null deref 2023-10-19 22:42:11 +02:00
test Merge pull request #24350 from dkurt:py_return_non_utf8_string 2023-10-12 17:39:57 +03:00
tutorials/images Merge pull request #22368 from AleksandrPanov:move_contrib_aruco_to_main_objdetect 2022-12-16 12:28:47 +03:00
CMakeLists.txt Revert "suppress warning on GCC 7 and later" 2022-08-07 15:43:10 +03:00