Skip to content

Conversation

@lxcode
Copy link

@lxcode lxcode commented Jan 31, 2026

When coordinates are scaled incorrectly or data points are far outside the visible area, GetLinePoints could try to allocate millions of points for line interpolation. This adds a sanity check to skip lines longer than 10000 points, which is well beyond normal terminal size. Feel free to tweak.

When coordinates are scaled incorrectly or data points are far outside
the visible area, GetLinePoints could try to allocate millions of points
for line interpolation. This adds a sanity check to skip lines longer
than 10000 points, which is well beyond any reasonable terminal size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant