Skip to content

Save HTTP 2 pseudo-header lower-case validation#13765

Merged
normanmaurer merged 1 commit intonetty:4.1from
franz1981:pseudo_validation
Jan 12, 2024
Merged

Save HTTP 2 pseudo-header lower-case validation#13765
normanmaurer merged 1 commit intonetty:4.1from
franz1981:pseudo_validation

Conversation

@franz1981
Copy link
Copy Markdown
Contributor

Motivation:

pseudo-header constants doesn't requires any further validation

Modifications:

anticipate pseudoheader lookup on http 2 header name validation, saving any further validation, if positive

Result:

Faster validations over known pseudo-headers

Motivation:

pseudo-header constants doesn't requires any further validation

Modifications:

anticipate pseudoheader lookup on http 2 header name validation, saving any further validation, if positive

Result:

Faster validations over known pseudo-headers
@franz1981
Copy link
Copy Markdown
Contributor Author

@idelpivnitskiy this can be prone to any CVE?

Copy link
Copy Markdown
Member

@normanmaurer normanmaurer 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 fine to me!

@normanmaurer normanmaurer added this to the 4.1.105.Final milestone Jan 11, 2024
Copy link
Copy Markdown
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@normanmaurer normanmaurer merged commit 3b81f2c into netty:4.1 Jan 12, 2024
@normanmaurer
Copy link
Copy Markdown
Member

@franz1981 thanks a lot... I just checked and it seems like we already do this in main. Can you verify ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants