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.
Showing
Please
register
or
sign in
to comment