Commit c4bf0ae
committed
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.1 parent 5b89c9c commit c4bf0ae
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
0 commit comments