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 ad298bf4; for ; Tue, 3 Mar 2015 10:21:32 -0500 (EST) Date: Tue, 3 Mar 2015 10:21:32 -0500 (EST) Message-Id: <8697757992562776921.enqueue@fantadrom.bsd.lv> 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: texi2mdoc: Fix bad access to memory. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Fix bad access to memory. Modified Files: -------------- texi2mdoc: util.c Revision Data ------------- Index: util.c =================================================================== RCS file: /home/cvs/mdocml/texi2mdoc/util.c,v retrieving revision 1.23 retrieving revision 1.24 diff -Lutil.c -Lutil.c -u -p -r1.23 -r1.24 --- util.c +++ util.c @@ -480,7 +480,7 @@ texiexecmacro(struct texi *p, struct tex * The "sv" value was initialised at the start of the macro. */ if (sv > 0) - if (++p->files[p->filepos].depth > 64) + if (++p->files[p->filepos - 1].depth > 64) texierr(p, "maximium recursive depth"); args = argparse(p, pos, &asz, m->argsz); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv