Module Name:    src
Committed By:   christos
Date:           Mon Jul 18 17:02:44 UTC 2016

Modified Files:
        src/external/bsd/mdocml/dist: mdoc_macro.c

Log Message:
CID 1349674  Null pointer dereference


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.18 -r1.2 src/external/bsd/mdocml/dist/mdoc_macro.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/mdocml/dist/mdoc_macro.c
diff -u src/external/bsd/mdocml/dist/mdoc_macro.c:1.1.1.18 src/external/bsd/mdocml/dist/mdoc_macro.c:1.2
--- src/external/bsd/mdocml/dist/mdoc_macro.c:1.1.1.18	Fri Jul 15 10:25:56 2016
+++ src/external/bsd/mdocml/dist/mdoc_macro.c	Mon Jul 18 13:02:44 2016
@@ -264,7 +264,7 @@ static void
 rew_last(struct roff_man *mdoc, const struct roff_node *to)
 {
 
-	if (to->flags & MDOC_VALID)
+	if (to == NULL || to->flags & MDOC_VALID)
 		return;
 
 	while (mdoc->last != to) {

Reply via email to