-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Bug in resize for 5 channels images #16501
Copy link
Copy link
Closed
Labels
affected: 3.4bugcategory: imgprocconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completepriority: normal
Milestone
Description
System information (version)
- OpenCV => 4.2
- Operating System / Platform => Ubuntu 16.04
- Compiler => ❔
Detailed description
I'm using python bindings for opencv and found a bug with resizing images with 5 channels. It works fine for any other number of channels.
I've also checked previous versions and it works in 4.1.1. So the bug should be very recent
Steps to reproduce
import numpy as np
import cv2
arr = np.ones((1200, 1200, 5), dtype=np.uint8)
cv2.resize(arr, (512, 512))
for me it fails with
double free or corruption (!prev)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affected: 3.4bugcategory: imgprocconfirmedThere is stable reproducer / investigation completeThere is stable reproducer / investigation completepriority: normal