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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"