Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix geography v2 parsing #322 #1138

Merged
merged 1 commit into from
Nov 19, 2020
Merged

fix geography v2 parsing #322 #1138

merged 1 commit into from
Nov 19, 2020

Conversation

mastodon0
Copy link
Contributor

fix for #322

Geography parsing would crash on geography version 2 when there is no segment.
According to the v2 spec, the number of segments-bytes are optional, so we have to check the input length.

I've added unit tests to demonstrate the issue.

@dhensby
Copy link
Collaborator

dhensby commented Nov 19, 2020

Amazing, thanks for this - I think I'll target this at v6 so we can get a stable out and then merge it up into the v7 branch (master).

@dhensby dhensby changed the base branch from master to 6 November 19, 2020 11:27
@dhensby dhensby merged commit ca0144b into tediousjs:6 Nov 19, 2020
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