Merge remote-tracking branch 'origin/GT-3300_ryanmkurtz_PR-1222_xiaoyinl_fix-overread' into patch

This commit is contained in:
Ryan Kurtz 2019-11-08 14:04:57 -05:00
commit 9684c23b5e

View File

@ -239,7 +239,7 @@ DWORD getTag(IDiaSymbol& symbol) {
std::wstring getTagAsString(IDiaSymbol& symbol) {
const DWORD tag = getTag(symbol);
if (tag > _countof(SYMBOL_TAG_STRINGS)) {
if (tag > _countof(SYMBOL_TAG_STRINGS) - 1) {
return L"";
}
return SYMBOL_TAG_STRINGS[tag];