* texi2mdoc: Fix bad access to memory.
@ 2015-03-03 15:21 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2015-03-03 15:21 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-03 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 15:21 texi2mdoc: Fix bad access to memory 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).