Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/mdocml/dist CID 1257471: NULL deref.



details:   https://anonhg.NetBSD.org/src/rev/17a6399248ef
branches:  trunk
changeset: 812898:17a6399248ef
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 07 20:06:44 2016 +0000

description:
CID 1257471: NULL deref.

diffstat:

 external/bsd/mdocml/dist/eqn.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0a5ba805627c -r 17a6399248ef external/bsd/mdocml/dist/eqn.c
--- a/external/bsd/mdocml/dist/eqn.c    Thu Jan 07 20:05:41 2016 +0000
+++ b/external/bsd/mdocml/dist/eqn.c    Thu Jan 07 20:06:44 2016 +0000
@@ -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 <kristaps%bsd.lv@localhost>
  * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -992,7 +992,7 @@
                     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;



Home | Main Index | Thread Index | Old Index