Skip to content

Fixed input buffer read overflow in vectorized G-API convertTo implementation#25780

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/gapi_arm_overflow
Jun 19, 2024
Merged

Fixed input buffer read overflow in vectorized G-API convertTo implementation#25780
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/gapi_arm_overflow

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Jun 18, 2024

Fixes #25741

vx_load loads twice more items that we need at the very end of the buffer. It leads to reading overflow.

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 added bug platform: arm ARM boards related issues: RPi, NVIDIA TK/TX, etc category: g-api / gapi labels Jun 18, 2024
@asmorkalov asmorkalov added this to the 4.11.0 milestone Jun 18, 2024
@asmorkalov asmorkalov merged commit d1b643a into opencv:4.x Jun 19, 2024
@dmatveev
Copy link
Copy Markdown
Contributor

Thanks a lot @asmorkalov !

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

Labels

bug category: g-api / gapi optimization platform: arm ARM boards related issues: RPi, NVIDIA TK/TX, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HWASan error in G-API core test

3 participants