Skip to content

Fix undefined behavior with wrong function pointers called.#24032

Merged
asmorkalov merged 2 commits intoopencv:4.xfrom
vrabaud:ubsan
Jul 21, 2023
Merged

Fix undefined behavior with wrong function pointers called.#24032
asmorkalov merged 2 commits intoopencv:4.xfrom
vrabaud:ubsan

Conversation

@vrabaud
Copy link
Copy Markdown
Contributor

@vrabaud vrabaud commented Jul 20, 2023

Details here: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58006
runtime error: call to function (unknown) through pointer to incorrect function type 'void (*)(const unsigned char **, const int *, unsigned char **, const int *, int, int)'

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

Details here: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58006
runtime error: call to function (unknown) through pointer to incorrect function type 'void (*)(const unsigned char **, const int *, unsigned char **, const int *, int, int)'
@asmorkalov asmorkalov added this to the 4.9.0 milestone Jul 21, 2023
@asmorkalov asmorkalov self-requested a review July 21, 2023 14:12
@asmorkalov asmorkalov self-assigned this Jul 21, 2023
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

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

👍

@asmorkalov asmorkalov merged commit d69c1d8 into opencv:4.x Jul 21, 2023
@vrabaud vrabaud deleted the ubsan branch July 21, 2023 14:24
@asmorkalov asmorkalov mentioned this pull request Jul 27, 2023
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