peview: Fix crash searching large pdbs
@@ -971,7 +971,7 @@ BOOLEAN PdbGetSymbolChildren(
return TRUE;
length = sizeof(TI_FINDCHILDREN_PARAMS) + symbolCount * sizeof(ULONG);
- symbols = _alloca(length);
+ symbols = _malloca(length);
memset(symbols, 0, length);
symbols->Count = symbolCount;
@@ -1020,6 +1020,8 @@ BOOLEAN PdbGetSymbolUdtVariables(
}
}
+ _freea(symbolParams);
+
return TRUE;
}
@@ -1096,6 +1098,8 @@ BOOLEAN PdbGetSymbolUdtBaseClasses(
}
}
+ _freea(symbolParams);
+
return TRUE;
}
@@ -1134,6 +1138,8 @@ BOOLEAN PdbGetSymbolUdtUnionMembers(
}
}
+ _freea(symbolParams);
+
return TRUE;
}
@@ -1172,6 +1178,8 @@ BOOLEAN PdbGetSymbolFunctionArguments(
}
}
+ _freea(symbolParams);
+
return TRUE;
}
@@ -1210,6 +1218,8 @@ BOOLEAN PdbGetSymbolEnumerations(
}
}
+ _freea(symbolParams);
+
return TRUE;
}
