ide: Fixed gdb crash on parsing gdb data

git-svn-id: svn://ultimatepp.org/upp/trunk@13006 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-04-18 06:02:19 +00:00
parent 5dea9c014b
commit c5a6dfe6bd
3 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ void HashBase::Drop(int n)
void HashBase::FinishIndex()
{
int q = link.GetCount();
link.Reserve(hash.GetAlloc());
link.Reserve(hash.GetCount());
link.AddN(hash.GetCount() - q);
for(int i = q; i < hash.GetCount(); i++)
LinkTo(i, link[i], hash[i] & UNSIGNED_HIBIT ? unlinked : Mapi(i));

View file

@ -433,7 +433,7 @@ bool GccBuilder::BuildPackage(const String& package, Vector<String>& linkfile, V
DeleteFile(libF);
DeleteFile(linkF);
}
#endif
#endif
return false;
}
#ifdef PLATFORM_POSIX

View file

@ -5,7 +5,7 @@
void SkipGdbInfo(CParser& p)
{
int level = 1;
while(level > 0)
while(level > 0 && !p.IsEof())
if(p.Char('<'))
level++;
else