Files
opencv-MIRROR/modules/dnn
Abhishek Gola 2ce6479ab8 Merge pull request #31047 from sshivensolanki/dnn-range-zero-delta
dnn: reject zero delta in Range layer

Check that delta is not zero in getRangeParams() before rangeSize() is called: CV_CheckNE for the float branch and CV_CheckTrue(idelta != 0, ...) for the integer branch, since CV_CheckNE has no int64_t overload. Both forward() and getMemoryShapes() go through getRangeParams(), so both are covered.
2026-11-22 21:31:16 +05:30
..