Skip to content

Return error if multiple brackets exist in the authority - #445

Merged
seanmonstar merged 2 commits into
hyperium:masterfrom
aeryz:fix-authority-parse
Dec 8, 2020
Merged

Return error if multiple brackets exist in the authority#445
seanmonstar merged 2 commits into
hyperium:masterfrom
aeryz:fix-authority-parse

Conversation

@aeryz

@aeryz aeryz commented Nov 22, 2020

Copy link
Copy Markdown
Contributor

Fixes #435

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me, it'd be good to add the unit tests the value that was triggering the panic.

@aeryz

aeryz commented Dec 8, 2020

Copy link
Copy Markdown
Contributor Author

I added a test which tests the exact string that causes the bug.

@seanmonstar seanmonstar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@seanmonstar
seanmonstar merged commit 43c6e84 into hyperium:master Dec 8, 2020
@aeryz
aeryz deleted the fix-authority-parse branch December 9, 2020 11:41
@algesten

algesten commented Dec 9, 2020

Copy link
Copy Markdown

Thanks!

@dekellum dekellum mentioned this pull request Dec 14, 2020
BenxiangGe pushed a commit to BenxiangGe/http that referenced this pull request Jul 26, 2021
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.

Unexpected panic for malformed URI with brackets

3 participants