* docbook2mdoc: Fix a logic bug causing tree corruption: When parsing an
@ 2019-04-09 13:35 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-09 13:35 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-09 13:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-09 13:35 docbook2mdoc: Fix a logic bug causing tree corruption: When parsing an schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).