Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2019 08:24:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 241258] Error building 12.1-RC1 from 11.3, "jevents" program getting a sigsegv in /usr/src/lib/libpmc/pmu-events
Message-ID:  <bug-241258-227-UC2AqP08GG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-241258-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-241258-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241258

--- Comment #2 from sigsys@gmail.com ---
And here it is without the tabs messed up even.

Index: lib/libpmc/pmu-events/jevents.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- lib/libpmc/pmu-events/jevents.c     (revision 353534)
+++ lib/libpmc/pmu-events/jevents.c     (working copy)
@@ -117,13 +117,14 @@
 static void fixdesc(char *s)
 {
        char *e =3D s + strlen(s);
-
        /* Remove trailing dots that look ugly in perf list */
-       --e;
-       while (e >=3D s && isspace(*e))
-               --e;
-       if (*e =3D=3D '.')
-               *e =3D 0;
+       while (e-- > s) {
+               if (isspace(*e))
+                       continue;
+               if ('.' =3D=3D *e)
+                       *e =3D '\0';
+               break;
+       }
 }

 /* Add escapes for '\' so they are proper C strings. */

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241258-227-UC2AqP08GG>