Skip to content

Arithmetic operations on CV_16F matrices leads to UB #24703

@asmorkalov

Description

@asmorkalov

System Information

Platform: all
Related work: #24623

Detailed description

Arithmetic like addition and subtraction on CV_16F matrices lead to SEGFAULT due to a call of NULL function, added CV_Assert to change it into an exception.

Steps to reproduce

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions