Files
opencv-MIRROR/modules
Parchuri Poojith Kumar 24f85c241f core: reject negative sizes in setSize, as 4.x does
On 4.x, setSize asserts that every size is not negative. The check is missing on 5.x, where the sizes are copied into a MatShape. Mat::create then accepts a negative size and leaves the matrix without memory, and the next function that writes into it crashes, for example calcHist with a negative number of bins. Restore the check. Add a core test for Mat::create and the Mat constructor, and a calcHist test with negative bin counts in 1D, 2D and with a mask.
2026-12-01 21:32:23 +05:30
..