From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout.scc.kit.edu (scc-mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p5BFQODS014395 for ; Sat, 11 Jun 2011 11:26:27 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1QVQ4t-0001FY-8T; Sat, 11 Jun 2011 17:26:23 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1QVQ4t-0000md-64 for tech@mdocml.bsd.lv; Sat, 11 Jun 2011 17:26:23 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1QVQ4t-0008Qm-4N for tech@mdocml.bsd.lv; Sat, 11 Jun 2011 17:26:23 +0200 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1QVQ4t-0001z4-3J for tech@mdocml.bsd.lv; Sat, 11 Jun 2011 17:26:23 +0200 Date: Sat, 11 Jun 2011 17:26:23 +0200 From: Ingo Schwarze To: tech@mdocml.bsd.lv Subject: merge back 1.11.3 regression fixes from OpenBSD Message-ID: <20110611152623.GG4597@iris.usta.de> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi Kristaps, here are the fixes i committed to OpenBSD after merging 1.11.3. chars.c (OpenBSD rev. 1.20): * Do not pass integers outside the ASCII range to isprint(). * Make sure escaped characters are really printed verbatim when the escape sequence has no special meaning. predefs.in (OpenBSD rev. 1.2): Some predefined strings got changed in -Tascii mode. With this fix, they change in other output modes, but -Tascii is what matters. OK to merge those back to bsd.lv? Yours, Ingo Index: chars.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/chars.c,v retrieving revision 1.46 diff -u -p -r1.46 chars.c --- chars.c 24 May 2011 21:31:23 -0000 1.46 +++ chars.c 11 Jun 2011 15:19:00 -0000 @@ -127,7 +127,7 @@ mchars_num2char(const char *p, size_t sz if ((i = mandoc_strntou(p, sz, 10)) < 0) return('\0'); - return(isprint(i) ? i : '\0'); + return(i > 0 && i < 256 && isprint(i) ? i : '\0'); } /* @@ -154,8 +154,10 @@ mchars_spec2str(struct mchars *arg, cons const struct ln *ln; ln = find(arg, p, sz); - if (NULL == ln) + if (NULL == ln) { + *rsz = 1; return(NULL); + } *rsz = strlen(ln->ascii); return(ln->ascii); Index: predefs.in =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/predefs.in,v retrieving revision 1.2 diff -u -p -r1.2 predefs.in --- predefs.in 26 May 2011 14:30:28 -0000 1.2 +++ predefs.in 11 Jun 2011 15:19:00 -0000 @@ -29,13 +29,13 @@ PREDEF("Am", "&") PREDEF("Ba", "|") PREDEF("Ge", "\\(>=") PREDEF("Gt", ">") -PREDEF("If", "\\(if") +PREDEF("If", "infinity") PREDEF("Le", "\\(<=") PREDEF("Lq", "\\(lq") PREDEF("Lt", "<") PREDEF("Na", "NaN") PREDEF("Ne", "\\(!=") -PREDEF("Pi", "\\(*p") +PREDEF("Pi", "pi") PREDEF("Pm", "\\(+-") PREDEF("Rq", "\\(rq") PREDEF("left-bracket", "[") @@ -50,7 +50,7 @@ PREDEF("right-bracket", "]") PREDEF("right-parenthesis", ")") PREDEF("rp", ")") PREDEF("right-singlequote", "\\(cq") -PREDEF("Tm", "\\(tm") +PREDEF("Tm", "(Tm)") PREDEF("Px", "POSIX") PREDEF("Ai", "ANSI") PREDEF("\'", "\\\'") -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv