Fixed the int size overflow bug of cv::Mat.push_back().
authormiaow1988 <miaow1988@qq.com>
Mon, 30 Jul 2018 09:04:15 +0000 (17:04 +0800)
committermiaow1988 <miaow1988@qq.com>
Mon, 30 Jul 2018 10:36:19 +0000 (18:36 +0800)
commit2988260107bf596e4e0d4d1de39d324172feeca1
treec973bf60b878ffbd4894074294c9f5d3f74c66ab
parent80cab4a163cbc8bc0e05fc39dae23ea21ca781cc
Fixed the int size overflow bug of cv::Mat.push_back().

Changed the type of variable *r* from int to size_t.
This change makes sure that a valid result of std::max(r + delta,
(r*3+1)/2) can be passed into the reserve function.
modules/core/src/matrix.cpp