System Information
- OpenCV version: 5.0.0 (contrib)
- Operating System: Arch Linux
- Compiler: GCC 14
- CPU: Intel Core i7-9750H(SSE2 / SSE3 supported)
Detailed description
When calling cv::linemod::Detector::match(), the process crashes with a segmentation fault deep inside the SIMD-optimized helper function orUnaligned8u. The crash occurs because the function uses an aligned store instruction (_mm_or_si128 with dereferenced __m128i*) on a destination pointer that is not guaranteed to be 16-byte aligned.
Steps to reproduce
- Create a
linemod detector, add at least one template using a reference image and a binary mask.
- Prepare a test image whose width (in bytes) is not a multiple of 16 (e.g., width = 218 for a 3-channel image, giving a stride of 654).
- Call
detector->match(sources, threshold, matches).
Issue submission checklist
System Information
Detailed description
When calling
cv::linemod::Detector::match(), the process crashes with a segmentation fault deep inside the SIMD-optimized helper functionorUnaligned8u. The crash occurs because the function uses an aligned store instruction (_mm_or_si128with dereferenced__m128i*) on a destination pointer that is not guaranteed to be 16-byte aligned.Steps to reproduce
linemoddetector, add at least one template using a reference image and a binary mask.detector->match(sources, threshold, matches).Issue submission checklist