StereoSGBM -> pointer miscalculation Line 418 (Bug #2203)


Added by Stefan Hahn over 12 years ago. Updated about 12 years ago.


Status:Done Start date:2012-07-26
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:calibration, 3d
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 43e3b838
Added by Vadim Pisarevsky over 12 years ago

fixed potential memory buffer corruption in StereoSGBM (patch #2203)

Revision ce48b6af
Added by Andrey Pavlenko about 11 years ago

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

Also available in: Atom PDF