Skip to content

Avoid future integer overflow in _OutputArray::create#25944

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
vrabaud:depth_check
Jul 24, 2024
Merged

Avoid future integer overflow in _OutputArray::create#25944
asmorkalov merged 1 commit intoopencv:4.xfrom
vrabaud:depth_check

Conversation

@vrabaud
Copy link
Copy Markdown
Contributor

@vrabaud vrabaud commented Jul 23, 2024

This fix is useless in 4.x and fixes harmless overflows in 5.x due to type being potentially bigger than 32.
This belongs to 4.x as it is closer to the intended meaning.

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

This fix is useless in 4.x and fixes harmless overflows in 5.x
This belongs to 4.x as it is closer to the intended meaning.
@asmorkalov asmorkalov merged commit c5de090 into opencv:4.x Jul 24, 2024
@asmorkalov asmorkalov mentioned this pull request Jul 25, 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