Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
msProjectRect may enter to infinite loop #4961
Reprojecting a "very big" rectangle (for example zooming out too far) may lead to infinite loop in msProjectSegment.
In my case the while loop in mapproject.c line 248-261 causes the issue, where
midPoint.y = (subStart.y + subEnd.y) * 0.5;
yields the same result as the initial subEnd.y and since the projection is failing, the loop condition will never change.