access violation in cv::dot when using vector with less than four components (Bug #2300)
Description
Only when CV_ENABLE_UNROLLED is set. Just wonder why nobody ever noticed this.
I was not able to connect to the GIT repository, so I post the modified operations.hpp, sorry for that.
F. Sticken
History
Updated by Vadim Pisarevsky over 12 years ago
thanks! the patch was applied in our git repository, 0bd68a7. It's just that Vector<> class is rarely used in OpenCV, therefore the bug was not noticed.
- Status changed from Open to Done
Updated by Andrey Kamaev over 12 years ago
I think bug is still there:
size_t i = 0, n = v1.size(); ... const size_t n2 = (n > 4) ? n : 4; for(; i <= n2 - 4; i += 4 )
Consider: n==3
---> n2==4
---> 0==i <= 0==n2-4
-> loop will do 1 iteration, but it should not.
- Status changed from Done to Open
Updated by Andrey Kamaev over 12 years ago
- Target version changed from 2.4.3 to 2.4.3-rc
Updated by Andrey Kamaev over 12 years ago
- Tracker changed from Patch to Bug
Updated by Andrey Kamaev over 12 years ago
- Status changed from Open to Done