Files
opencv-MIRROR/modules/imgproc/src
Shiven Solanki c7c32d37eb imgproc: fix heap overflow in Laplacian for CV_16F
Laplacian picked the kernel type as max(CV_32F, ddepth, sdepth), which
is CV_16F for a CV_16F image because CV_16F > CV_64F. The 3x3 kernel
was then allocated as CV_16F (18 bytes) and filled with 9 doubles. Use
CV_64F when the source or destination is CV_64F and CV_32F otherwise,
so filter2D rejects the unsupported depth without the overflow.

Add an Imgproc_Laplacian regression test.
2026-10-29 23:24:14 +08:00
..
2024-12-26 12:15:46 +00:00
2024-03-05 12:15:39 +03:00
2026-04-30 04:22:29 +03:00
2025-12-08 09:44:02 +01:00
2025-01-31 21:12:36 +05:30
2024-03-05 12:15:39 +03:00