Fix crash in FunctionMemberPtrArrayHolder destructor (#8113)
authorIgor Kulaychuk <igor.kulaychuk@gmail.com>
Tue, 15 Nov 2016 14:55:53 +0000 (17:55 +0300)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 15 Nov 2016 14:55:53 +0000 (15:55 +0100)
commitde9e159ce0b1abad260100d447071c3377d2f34c
tree2fb07d4b36c65a19f67eaff4487001b59be5a8ab
parent301ec423beaf8f31fe6172a846ec552c2cb9a14e
Fix crash in FunctionMemberPtrArrayHolder destructor (#8113)

Some elements in FunctionMember array might not be initialized
and contain garbage. This leads to crash when elements are being deleted.

Move array allocation inside FunctionMemberPtrArrayHolder class
and initialize all array elements to nullptr.
src/vm/gdbjit.cpp