Open alexander-hagg opened 10 years ago
Hi @holzers can you have a look into this? Thanks!
For my current research project I'd like to solve this issue, just to get everything right and not be dependent on my region of interest being a multiple of 16. I will try to figure out a solution in my fork using the last proposed solution (correct handling of the last set of bits).
:+1:
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
On my Ubuntu 13.04 (64 bit) system, Linemod object recognition started to crash irregularly, after applying a region of interest on my input data.
Reproduction:
Valgrind output:
Solution:
In the Linemod object recognition (line 271), memory is read 16 bits at a time, causing memory errors when the input data's width or height are not a multiple of 16.
This is a hidden assumption and could either:
This issue actually appeared in OpenCV as well