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:
parent
9b1ae08154
commit
b170d8208a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user