source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Make sure we don't continue recursively parsing once we've
@ 2011-01-03 13:54 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-01-03 13:54 UTC (permalink / raw)
  To: source

Log Message:
-----------
Make sure we don't continue recursively parsing once we've exited with
failure (this had caused some segfaults with the new assert() call in
MAN_HALT and MDOC_HALT).

Modified Files:
--------------
    mdocml:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -Lmain.c -Lmain.c -u -p -r1.131 -r1.132
--- main.c
+++ main.c
@@ -805,6 +805,14 @@ rerun:
 		}
 
 		/*
+		 * If we encounter errors in the recursive parsebuf()
+		 * call, make sure we don't continue parsing.
+		 */
+
+		if (MANDOCLEVEL_FATAL <= file_status)
+			break;
+
+		/*
 		 * If input parsers have not been allocated, do so now.
 		 * We keep these instanced betwen parsers, but set them
 		 * locally per parse routine since we can use different
--
 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:[~2011-01-03 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-03 13:54 mdocml: Make sure we don't continue recursively parsing once we've kristaps

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).