Change bIsFree check in DacValidateMethodTable (#1086)
authorDong-Heon Jung <dheon.jung@samsung.com>
Mon, 23 Dec 2019 19:11:43 +0000 (04:11 +0900)
committerHyungju Lee <leee.lee@samsung.com>
Fri, 30 Oct 2020 08:51:28 +0000 (17:51 +0900)
commit01c100e3d02b3525cdf67ddfe080ccd9a8a07a04
tree6e57d2757156ab32a6cdedf3fbf5bab65bc55c0f
parent0418281162777e6ca7b9474070af0a9dce9d796a
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/debug/daccess/request.cpp