Check for a null import descriptor when fixing up vtables. (dotnet/coreclr#23825)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Wed, 10 Apr 2019 19:54:27 +0000 (12:54 -0700)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2019 19:54:27 +0000 (12:54 -0700)
commita9fc71cb4ebbdfddad7ba6eb77645eced61cc4b9
treeb624f0f79329e719d341e732c35d3e9459894afe
parente0a4fecdd8c85eb8e00aa613046d70e4d727410a
Check for a null import descriptor when fixing up vtables. (dotnet/coreclr#23825)

A fragile ngened image doesn't have an import descriptor directory in its PE image. Without this check, we AV when loading a fragile ngened image.

Commit migrated from https://github.com/dotnet/coreclr/commit/38b7770574fdbdd93416053809fce039bc8d5d26
src/coreclr/src/vm/ceeload.cpp