source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* texi2mdoc: Fix a potential crash found by AFL.
@ 2015-02-27 19:29 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2015-02-27 19:29 UTC (permalink / raw)
  To: source

Log Message:
-----------
Fix a potential crash found by AFL.

Modified Files:
--------------
    texi2mdoc:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mdocml/texi2mdoc/main.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -Lmain.c -Lmain.c -u -p -r1.50 -r1.51
--- main.c
+++ main.c
@@ -728,7 +728,7 @@ doverb(struct texi *p, enum texicmd cmd,
 			break;
 		advance(p, pos);
 	}
-	if (*pos == BUFSZ(p) - 1)
+	if (*pos >= BUFSZ(p) - 1)
 		return;
 	texiputbuf(p, start, *pos);
 
--
 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-02-27 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27 19:29 texi2mdoc: Fix a potential crash found by AFL 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).