* mdocml: Properly reinitialize roffce_node between parses, or this may
@ 2017-06-08 19:36 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-06-08 19:36 UTC (permalink / raw)
To: source
Log Message:
-----------
Properly reinitialize roffce_node between parses,
or this may crash with use-after-free in makewhatis(8);
reported by jmc@, thanks!
Modified Files:
--------------
mdocml:
roff.c
Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/roff.c,v
retrieving revision 1.306
retrieving revision 1.307
diff -Lroff.c -Lroff.c -u -p -r1.306 -r1.307
--- roff.c
+++ roff.c
@@ -767,6 +767,10 @@ roff_reset(struct roff *r)
r->format = r->options & (MPARSE_MDOC | MPARSE_MAN);
r->control = '\0';
r->escape = '\\';
+ roffce_lines = 0;
+ roffce_node = NULL;
+ roffit_lines = 0;
+ roffit_macro = NULL;
}
void
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-08 19:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-08 19:36 mdocml: Properly reinitialize roffce_node between parses, or this may 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).