NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 8.0: /usr/bin/m4 is broken



    Date:        Mon, 30 Jul 2018 22:22:55 +0200
    From:        Rhialto <rhialto%falu.nl@localhost>
    Message-ID:  <20180730202255.GX8143%falu.nl@localhost>

  | I just updated my laptop from NetBSD 7 to 8. When starting my X session
  | which uses twm, the session didn't start properly. It turned out that
  | /usr/bin/m4 was looping with 100% cpu use.

Try this patch.   It appears as if a line got dropped during some changes back
in Jan, 2016 !   (And no-one noticed.)

The same issue is in HEAD (naturally).

kre

Index: eval.c
===================================================================
RCS file: /cvsroot/src/usr.bin/m4/eval.c,v
retrieving revision 1.26
diff -u -r1.26 eval.c
--- eval.c	23 Oct 2017 02:38:46 -0000	1.26
+++ eval.c	30 Jul 2018 22:36:48 -0000
@@ -987,6 +987,7 @@
 			}
 		} else {
 			while (*src) {
+				sch = (unsigned char)(*src++);
 				dch = mapvec[sch];
 				while (dch != sch) {
 					sch = dch;




Home | Main Index | Thread Index | Old Index