Module Name:    src
Committed By:   christos
Date:           Thu Jan  7 20:06:44 UTC 2016

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

Log Message:
CID 1257471: NULL deref.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/mdocml/dist/eqn.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/eqn.c
diff -u src/external/bsd/mdocml/dist/eqn.c:1.2 src/external/bsd/mdocml/dist/eqn.c:1.3
--- src/external/bsd/mdocml/dist/eqn.c:1.2	Thu Jan  7 14:32:43 2016
+++ src/external/bsd/mdocml/dist/eqn.c	Thu Jan  7 15:06:44 2016
@@ -1,4 +1,4 @@
-/*	$Id: eqn.c,v 1.2 2016/01/07 19:32:43 christos Exp $ */
+/*	$Id: eqn.c,v 1.3 2016/01/07 20:06:44 christos Exp $ */
 /*
  * Copyright (c) 2011, 2014 Kristaps Dzonsons <krist...@bsd.lv>
  * Copyright (c) 2014, 2015 Ingo Schwarze <schwa...@openbsd.org>
@@ -992,7 +992,7 @@ this_tok:
 		     parent->type == EQN_MATRIX))
 			parent = parent->parent;
 		/* Close out any "singleton" lists. */
-		while (parent->type == EQN_LISTONE &&
+		while (parrent && parent->type == EQN_LISTONE &&
 		    parent->args == parent->expectargs)
 			parent = parent->parent;
 		break;

Reply via email to