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

Tweak MimeHdr::get_host_port_values to not run over the end of the TextView #8468

Merged
merged 1 commit into from Nov 2, 2021

Conversation

SolidWallOfCode
Copy link
Member

In practice going past the end is fine in this specific case because of how the fields and values are layed out for MIME headers. However it's probably best to be clean and not depend on external circumstances.

This makes the same change twice, because the TextView has a test to make sure the logic yields the correct values.

Closing #8461

@SolidWallOfCode SolidWallOfCode added this to the 10.0.0 milestone Oct 28, 2021
@SolidWallOfCode SolidWallOfCode self-assigned this Oct 28, 2021
@SolidWallOfCode SolidWallOfCode linked an issue Oct 28, 2021 that may be closed by this pull request
@SolidWallOfCode SolidWallOfCode merged commit 055ca11 into apache:master Nov 2, 2021
ezelkow1 pushed a commit to ezelkow1/trafficserver that referenced this pull request Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion in TextView unit test
2 participants