Module Name:    src
Committed By:   christos
Date:           Thu Jan  7 19:46:01 UTC 2016

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

Log Message:
CID 1288958: Prevent NULL deref


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/mdocml/dist/mdoc_validate.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_validate.c
diff -u src/external/bsd/mdocml/dist/mdoc_validate.c:1.7 src/external/bsd/mdocml/dist/mdoc_validate.c:1.8
--- src/external/bsd/mdocml/dist/mdoc_validate.c:1.7	Thu Dec 17 17:31:12 2015
+++ src/external/bsd/mdocml/dist/mdoc_validate.c	Thu Jan  7 14:46:00 2016
@@ -1,4 +1,4 @@
-/*	$Id: mdoc_validate.c,v 1.7 2015/12/17 22:31:12 christos Exp $ */
+/*	$Id: mdoc_validate.c,v 1.8 2016/01/07 19:46:00 christos Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <krist...@bsd.lv>
  * Copyright (c) 2010-2015 Ingo Schwarze <schwa...@openbsd.org>
@@ -1464,7 +1464,8 @@ post_bl(POST_ARGS)
 			assert(NULL == nnext);
 		} else {
 			nbody->child = nnext;
-			nnext->prev = NULL;
+			if (nnext)
+				nnext->prev = NULL;
 		}
 
 		/*

Reply via email to