Don't crash trying to load symbols from striped file.

PR:		bin/167361
Submitted by:	Slawa Olhovchenkov <slw zxy.spb.ru>
Silence from:	jkoshy
This commit is contained in:
Gleb Smirnoff 2012-06-05 20:08:59 +00:00
parent 9b1ae08154
commit b170d8208a

View File

@ -564,6 +564,8 @@ pmcstat_image_add_symbols(struct pmcstat_image *image, Elf *e,
}
image->pi_symcount += newsyms;
if (image->pi_symcount == 0)
return;
assert(newsyms <= nfuncsyms);