fixed memory corruption in cvtest::copyMakeBorder (thanks to Pieter-Jan Busschaert)

pull/13383/head
Vadim Pisarevsky 14 years ago
parent e1b5a4fcc8
commit 9c05a74fee
  1. 2
      modules/ts/src/ts_func.cpp

@ -900,7 +900,7 @@ void copyMakeBorder(const Mat& src, Mat& dst, int top, int bottom, int left, int
}
else
{
vector<int> tabvec((left + right)*esz);
vector<int> tabvec((left + right)*esz + 1);
int* ltab = &tabvec[0];
int* rtab = &tabvec[left*esz];
for( i = 0; i < left; i++ )

Loading…
Cancel
Save