diff options
author | Koundinya Veluri <kouvel@microsoft.com> | 2017-05-09 13:56:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-09 13:56:40 -0700 |
commit | c8a37801f8483d05766e0bf053ffa41aaa155f2c (patch) | |
tree | 8e01a17aa262b0779668b845069bd57d2d50d67b /src/zap/zapimage.cpp | |
parent | 39a841c33a6ae70cc887ee9fa7cfdeb834c6ca59 (diff) | |
download | coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.gz coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.tar.bz2 coreclr-c8a37801f8483d05766e0bf053ffa41aaa155f2c.zip |
Fix static analysis issues (#11466)
Fix static analysis issues
Diffstat (limited to 'src/zap/zapimage.cpp')
-rw-r--r-- | src/zap/zapimage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zap/zapimage.cpp b/src/zap/zapimage.cpp index 27b46520be..61cf099898 100644 --- a/src/zap/zapimage.cpp +++ b/src/zap/zapimage.cpp @@ -2620,6 +2620,12 @@ HRESULT ZapImage::parseProfileData() READ(entry,CORBBTPROF_SECTION_TABLE_ENTRY); SectionFormat format = sectionHeader->Entries[i].FormatID; + _ASSERTE(format >= 0); + if (format < 0) + { + continue; + } + if (convertFromV1) { if (format < LastTokenFlagSection) |