Skip to content

Conversation

bschrag620
Copy link

Hello @seanhandley
Came across what seems to be a bug. When calling H3.line for two points that are far enough apart such that a line can't be created, the line_size call returns -1. This is then passed into Bindings::Private.h3_line where a pointer is then initialized with a size of -1. This causes an NoMemoryError: too large allocation size. This can be guarded by returning earlier in the cycle if line_size returns a negative value.

Copy link
Owner

@seanhandley seanhandley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bschrag620

Happy to merge this, but I'm unlikely to put out a patch release as I'm not actively working on this library any more.

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.

2 participants