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

Fail IPv4 parsing when the number is overflowing #414

Merged
merged 1 commit into from Nov 6, 2017

Conversation

@valenting
Copy link
Collaborator

valenting commented Nov 3, 2017

Right now we don't fail when parsing URLs such as http://10000000000

Parsing returns an overflow, but since we don't differentiate between overflow and it's a number, we just treat it as a regular domain.


This change is Reviewable

@SimonSapin
Copy link
Member

SimonSapin commented Nov 6, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2017

📌 Commit 4899458 has been approved by SimonSapin

bors-servo added a commit that referenced this pull request Nov 6, 2017
Fail IPv4 parsing when the number is overflowing

Right now we don't fail when parsing URLs such as http://10000000000

Parsing returns an overflow, but since we don't differentiate between overflow and it's a number, we just treat it as a regular domain.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/414)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2017

Testing commit 4899458 with merge d358a4f...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 6, 2017

☀️ Test successful - status-travis
Approved by: SimonSapin
Pushing d358a4f to master...

@bors-servo bors-servo merged commit 4899458 into servo:master Nov 6, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.