Fix write behind allocated memory in thread name setting (#34424)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 2 Apr 2020 00:57:02 +0000 (02:57 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Apr 2020 00:57:02 +0000 (02:57 +0200)
commitc03c52965cee1a53570795447d8de61350a6c7dd
treeb5fcdf7f5616b51af847741ec6ce6cf7a31ae65f
parentb5d044dcbac94790809a1b69a5f161c639c7dc11
Fix write behind allocated memory in thread name setting (#34424)

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.
src/coreclr/src/pal/src/thread/thread.cpp