Fix crash in FunctionMemberPtrArrayHolder destructor (dotnet/coreclr#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)
commit6b866d3b0cd6a376196fb85460ec31fd9da7d175
treea3a6b50bb41201eb14b7638f24530d5ec6843c99
parent56e062ff380ea28e3b04983c613fd22797886f0d
Fix crash in FunctionMemberPtrArrayHolder destructor (dotnet/coreclr#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.

Commit migrated from https://github.com/dotnet/coreclr/commit/de9e159ce0b1abad260100d447071c3377d2f34c
src/coreclr/src/vm/gdbjit.cpp