Change bIsFree check in DacValidateMethodTable (#1086)
authorDong-Heon Jung <dheon.jung@samsung.com>
Mon, 23 Dec 2019 19:11:43 +0000 (04:11 +0900)
committerJan Kotas <jkotas@microsoft.com>
Mon, 23 Dec 2019 19:11:43 +0000 (11:11 -0800)
commit07fa0f7f07a04e8238c63b90b208beebba108399
tree8823f2c0a4339b97292130a84229a24d6cbb6c82
parent7a1b9f5bcc3ab142420ad8a8c95beb3306a063bc
Change bIsFree check in DacValidateMethodTable (#1086)

Some commands of SOS validate a method table in DacValidateMethodTable.
In the function, it checks whether a method table is FreeObjectMethodTable or not with GetClass() value.
However, GetClass() should not be NULL. (There is an assert in GetClass())
In this patch, it compares pMT address with g_pFreeObjectMethodTable address only.
src/coreclr/src/debug/daccess/request.cpp