Skip to content

[release/5.0-preview3] Fix write behind allocated memory in thread name setting (#34424)#34437

Merged
mmitche merged 1 commit intodotnet:release/5.0-preview3from
mmitche:port-write-behind
Apr 2, 2020
Merged

[release/5.0-preview3] Fix write behind allocated memory in thread name setting (#34424)#34437
mmitche merged 1 commit intodotnet:release/5.0-preview3from
mmitche:port-write-behind

Conversation

@mmitche
Copy link
Member

@mmitche mmitche commented Apr 2, 2020

The code in CorUnix::InternalSetThreadDescription is writing behind
the end of the allocated memory in case the name is shorter than 16
characters. That is causing memory heap corruption.

The code in CorUnix::InternalSetThreadDescription is writing behind
the end of the allocated memory in case the name is shorter than 16
characters. That is causing memory heap corruption.
@mmitche
Copy link
Member Author

mmitche commented Apr 2, 2020

Aggressively merging this one so that we can actually get a build

@mmitche mmitche merged commit 2b487f3 into dotnet:release/5.0-preview3 Apr 2, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
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