Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@asmorkalov
Copy link
Contributor

Solution similar to #12004

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov force-pushed the as/HAL_fix_nullprt_leak branch from 19c47e6 to 307dc2a Compare September 6, 2024 13:49
Copy link
Contributor

@mshabunin mshabunin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me.
Maybe it would be useful to have tests for these cases.

@asmorkalov asmorkalov assigned asmorkalov and mshabunin and unassigned asmorkalov Sep 7, 2024
@asmorkalov asmorkalov merged commit a7d942b into opencv:4.x Sep 7, 2024
CV_INSTRUMENT_REGION();

CV_Assert(src1.empty() == src2.empty());
if (src1.empty() && src2.empty())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silent processing of empty Mat is error-prone. See #8300

@asmorkalov asmorkalov mentioned this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants