diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-06-05 20:08:59 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2012-06-05 20:08:59 +0000 |
commit | b170d8208a861e63219e7d0b8aaeca61758d89a9 (patch) | |
tree | 74ba71e7ae98180bb9df985367bf0d56943b38f4 /usr.sbin | |
parent | 9b1ae0815414ee59692bab67f726012900b3e143 (diff) | |
download | src-b170d8208a861e63219e7d0b8aaeca61758d89a9.tar.gz src-b170d8208a861e63219e7d0b8aaeca61758d89a9.zip |
Don't crash trying to load symbols from striped file.
PR: bin/167361
Submitted by: Slawa Olhovchenkov <slw zxy.spb.ru>
Silence from: jkoshy
Notes
Notes:
svn path=/head/; revision=236634
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pmcstat/pmcstat_log.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c index 2ac52da58f8a..b7f5a233f397 100644 --- a/usr.sbin/pmcstat/pmcstat_log.c +++ b/usr.sbin/pmcstat/pmcstat_log.c @@ -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); |