Skip to content

Return error if multiple brackets exist in the authority#445

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

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

Conversation

@aeryz
Copy link
Copy Markdown
Contributor

@aeryz aeryz commented Nov 22, 2020

Fixes #435

Copy link
Copy Markdown
Member

@seanmonstar seanmonstar left a comment

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
Copy link
Copy Markdown
Contributor Author

aeryz commented Dec 8, 2020

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

Copy link
Copy Markdown
Member

@seanmonstar seanmonstar left a comment

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
Copy link
Copy Markdown

algesten commented Dec 9, 2020

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