Skip to content

imgproc: revert resize changes from PR 16497 - #16600

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:revert_16497
Feb 17, 2020
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:revert_16497

Conversation

@alalek

@alalek alalek commented Feb 17, 2020 •

Copy link
Copy Markdown
Member

reverts #16497

Avoid OOB buffer access.

Valgrind hit:

[ RUN      ] Resize.nearest_regression_15075
==13146== Invalid write of size 4
==13146==    at 0x4DC1994: cv::resizeNNInvoker::operator()(cv::Range const&) const (resize.cpp:1049)
==13146==    by 0x6AD674C: parallel_for_impl(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel.cpp:498)
==13146==    by 0x6AD6600: cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double) (parallel.cpp:471)
==13146==    by 0x4DC1D5C: cv::resizeNN(cv::Mat const&, cv::Mat&, double, double) (resize.cpp:1105)

@alalek

alalek commented Feb 17, 2020

Copy link
Copy Markdown
Member Author

👍

@opencv-pushbot
opencv-pushbot merged commit 3a546aa into opencv:3.4 Feb 17, 2020
@alalek alalek mentioned this pull request Feb 20, 2020
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
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.

2 participants