Skip to content

Move HttpRequestStream.{Begin}Read argument logging to after validation#63362

Merged
stephentoub merged 1 commit intodotnet:mainfrom
stephentoub:loggingorder
Jan 5, 2022
Merged

Move HttpRequestStream.{Begin}Read argument logging to after validation#63362
stephentoub merged 1 commit intodotnet:mainfrom
stephentoub:loggingorder

Conversation

@stephentoub
Copy link
Member

It's after validation on the HttpResponseStream corresponding methods, and having it before the validation means it'll null ref if a null buffer is erroneously provided.

It's after validation on the HttpResponseStream corresponding methods, and having it before the validation means it'll null ref if a null buffer is erroneously provided.
@ghost ghost added the area-System.Net.Http label Jan 4, 2022
@ghost ghost assigned stephentoub Jan 4, 2022
@ghost
Copy link

ghost commented Jan 4, 2022

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

It's after validation on the HttpResponseStream corresponding methods, and having it before the validation means it'll null ref if a null buffer is erroneously provided.

Author: stephentoub
Assignees: -
Labels:

area-System.Net.Http

Milestone: -

@stephentoub stephentoub merged commit b6695a1 into dotnet:main Jan 5, 2022
@stephentoub stephentoub deleted the loggingorder branch January 5, 2022 01:05
@karelz karelz added this to the 7.0.0 milestone Jan 11, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants