Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AGG crash when rendering extremely long horizontal lines.
When AGG rasterizes a horizontal line, it has code to check if the computations will overflow its fixed-precision coordinate math. If an hline is too wide, it will subdivide the line into two pieces until the overflow is avoided. Except a `return` statement was missing, so overflow-y code ran as well as the subdivided code! Leading to negative coordinates and a crash. This only happens for lines that span more than something like 32768 pixels in the X direction, so it's not something that happens in regular usage.
- Loading branch information