svn commit: r354457 - stable/12/lib/libpmc/pmu-events

Ed Maste emaste at FreeBSD.org
Thu Nov 7 18:14:59 UTC 2019


Author: emaste
Date: Thu Nov  7 18:14:58 2019
New Revision: 354457
URL: https://svnweb.freebsd.org/changeset/base/354457

Log:
  MFC r354342: libpmc: jevents: handle empty description
  
  PR:		241258
  Reported by:	sigsys @ gmail.com
  Obtained from:	github.com/andikleen/pmu-tools commit bb3c77ed61

Modified:
  stable/12/lib/libpmc/pmu-events/jevents.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libpmc/pmu-events/jevents.c
==============================================================================
--- stable/12/lib/libpmc/pmu-events/jevents.c	Thu Nov  7 18:07:34 2019	(r354456)
+++ stable/12/lib/libpmc/pmu-events/jevents.c	Thu Nov  7 18:14:58 2019	(r354457)
@@ -122,7 +122,7 @@ static void fixdesc(char *s)
 	--e;
 	while (e >= s && isspace(*e))
 		--e;
-	if (*e == '.')
+	if (e >= s && *e == '.')
 		*e = 0;
 }
 


More information about the svn-src-stable-12 mailing list