Skip to content

Handle large limits for form keys and values #15066

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

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

Tratcher
Copy link
Member

#13719 This addresses a 3.0 regression in the form parser where two limits were added together and could overflow if large values were used. We have several customers report that they effectively disable these limits by setting int.MaxValue (against our recommendations), but in 3.0 this results in the limits being treated as negative and always failing.

The limits are added together in this scenario because the algorithm attempts to find the dividing '&' before it searches internally for the optional '='. This only happens when a key=value pair spans multiple reads from the pipe.

@Tratcher Tratcher added this to the 3.1.0-preview2 milestone Oct 16, 2019
@Tratcher Tratcher self-assigned this Oct 16, 2019
@Tratcher Tratcher requested a review from Pilchie October 16, 2019 20:39
@Tratcher Tratcher merged commit 6d43b50 into release/3.1 Oct 17, 2019
@Tratcher Tratcher deleted the tratcher/3.1/maxform branch October 17, 2019 17:37
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants