From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 8927c9ab for ; Tue, 9 Apr 2019 08:35:59 -0500 (EST) Date: Tue, 9 Apr 2019 08:35:59 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: docbook2mdoc: Fix a logic bug causing tree corruption: When parsing an X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- Fix a logic bug causing tree corruption: When parsing an internal subset declaration, text does not extend beyond closing square brackets. Modified Files: -------------- docbook2mdoc: parse.c Revision Data ------------- Index: parse.c =================================================================== RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v retrieving revision 1.27 retrieving revision 1.28 diff -Lparse.c -Lparse.c -u -p -r1.27 -r1.28 --- parse.c +++ parse.c @@ -976,7 +976,9 @@ parse_string(struct parse *p, char *b, s /* Process text up to the next tag, entity, or EOL. */ } else { - advance(p, b, rlen, &pend, "<&", refill); + advance(p, b, rlen, &pend, + p->ncur == NODE_DOCTYPE ? "<&]" : "<&", + refill); xml_char(p, b + poff, pend - poff); } } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv