Change bIsFree check in DacValidateMethodTable (#1086)
authorDong-Heon Jung <dheon.jung@samsung.com>
Mon, 23 Dec 2019 19:11:43 +0000 (04:11 +0900)
committerGleb Balykov <g.balykov@samsung.com>
Wed, 25 Mar 2020 12:29:41 +0000 (15:29 +0300)
commit6edd12dd279de29d2dd781ba2b489eff7f6f889d
tree28d8ecb9e7282dcc97db40e6c1fc423b008ffac1
parent3741242c09ceb4695ba27938f34ff19d90280b49
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