svn commit: r236634 - head/usr.sbin/pmcstat
Gleb Smirnoff
glebius at FreeBSD.org
Tue Jun 5 20:09:00 UTC 2012
Author: glebius
Date: Tue Jun 5 20:08:59 2012
New Revision: 236634
URL: http://svn.freebsd.org/changeset/base/236634
Log:
Don't crash trying to load symbols from striped file.
PR: bin/167361
Submitted by: Slawa Olhovchenkov <slw zxy.spb.ru>
Silence from: jkoshy
Modified:
head/usr.sbin/pmcstat/pmcstat_log.c
Modified: head/usr.sbin/pmcstat/pmcstat_log.c
==============================================================================
--- head/usr.sbin/pmcstat/pmcstat_log.c Tue Jun 5 19:59:09 2012 (r236633)
+++ head/usr.sbin/pmcstat/pmcstat_log.c Tue Jun 5 20:08:59 2012 (r236634)
@@ -564,6 +564,8 @@ pmcstat_image_add_symbols(struct pmcstat
}
image->pi_symcount += newsyms;
+ if (image->pi_symcount == 0)
+ return;
assert(newsyms <= nfuncsyms);
More information about the svn-src-all
mailing list