StereoSGBM -> pointer miscalculation Line 418 (Bug #2203)
Description
The memset call at line 419 goes partially outside the buffer area reserved for the PixDiff values.
This is caused by a wrong expression in line 418.
If you replace NR2*2 by NR2*LrBorder at the end of minLr[k] calculation there, the buffer access stays within its borders and the line becomes consistent with the other assignments to minLr[?] in the code.
Associated revisions
fixed potential memory buffer corruption in StereoSGBM (patch #2203)
Merge pull request #2203 from ilya-lavrenov:tapi_umat_vectors
History
Updated by Daniil Osokin over 12 years ago
Which version of OpenCV do you use? Please, provide the source code, where you have this.
- Assignee set to Stefan Hahn
Updated by Andrey Kamaev over 12 years ago
- Assignee changed from Stefan Hahn to Vadim Pisarevsky
Updated by Vadim Pisarevsky over 12 years ago
- Target version deleted ()
- Assignee deleted (
Vadim Pisarevsky)
Updated by Vadim Pisarevsky over 12 years ago
thanks! your patch has been applied in 43e3b83
- Status changed from Open to Done
- Assignee set to Vadim Pisarevsky
Updated by Andrey Kamaev about 12 years ago
- Target version set to 2.4.3