Itseez/opencv — pull request #1139 by StevenPuttemans (2013-07-17 13:23:51+00:00)
Title: Fixed bug #3101, problem on ellipse2poly function

Added the fix of Guanta solving the following segmentation fault:

Before adding the points to draw to the output pts-vector it is resized to 0 (drawing.cpp, line 873). If now the ellipse to draw isn't valid, e.g. starting angle or ending angle are equal, then the loop won't be executed, no point will be added to the pts-vector and the line 894: pts.push_back(pts[0]); will result in a segfault.