From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p03Ds3Ip016255 for ; Mon, 3 Jan 2011 08:54:03 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p03Ds2CQ008216; Mon, 3 Jan 2011 08:54:02 -0500 (EST) Date: Mon, 3 Jan 2011 08:54:02 -0500 (EST) Message-Id: <201101031354.p03Ds2CQ008216@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Make sure we don't continue recursively parsing once we've X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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