Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2012 20:08:59 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r236634 - head/usr.sbin/pmcstat
Message-ID:  <201206052009.q55K908g041275@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206052009.q55K908g041275>