summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry-Me <Dmitry-Me@users.noreply.github.com>2016-11-02 20:42:41 +0300
committerDan Moseley <danmose@microsoft.com>2016-11-02 10:42:41 -0700
commite568823f22ec1dccc4ea785630c837e776d4ee09 (patch)
tree01ff5421e5496a054820c96ffba3e8f262b48802 /src
parent140b2bdeefc49455d087358dfd40ff1cc2303dc8 (diff)
downloadcoreclr-e568823f22ec1dccc4ea785630c837e776d4ee09.tar.gz
coreclr-e568823f22ec1dccc4ea785630c837e776d4ee09.tar.bz2
coreclr-e568823f22ec1dccc4ea785630c837e776d4ee09.zip
Check pointer before dereferencing it (#7930)
Diffstat (limited to 'src')
-rw-r--r--src/debug/daccess/nidump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/daccess/nidump.cpp b/src/debug/daccess/nidump.cpp
index 5c6c4e49cb..c07229aa63 100644
--- a/src/debug/daccess/nidump.cpp
+++ b/src/debug/daccess/nidump.cpp
@@ -1187,12 +1187,12 @@ NativeImageDumper::DumpNativeImage()
mscorlib->fIsMscorlib = TRUE;
_ASSERTE(mscorlib->fIsHardbound);
}
+
+ _ASSERTE(mscorlib != NULL);
if( mscorlib->fIsHardbound )
{
m_isMscorlibHardBound = true;
}
-
- _ASSERTE(mscorlib != NULL);
if( m_isMscorlibHardBound )
{
//go through the module to the binder.