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 1257473: NULL deref



details:   https://anonhg.NetBSD.org/src/rev/ce6e360ff1e5
branches:  trunk
changeset: 342754:ce6e360ff1e5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 07 20:00:35 2016 +0000

description:
CID 1257473: NULL deref

diffstat:

 external/bsd/mdocml/dist/man_macro.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 19d9ef3a788c -r ce6e360ff1e5 external/bsd/mdocml/dist/man_macro.c
--- a/external/bsd/mdocml/dist/man_macro.c      Thu Jan 07 19:51:40 2016 +0000
+++ b/external/bsd/mdocml/dist/man_macro.c      Thu Jan 07 20:00:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $Id: man_macro.c,v 1.1.1.14 2015/12/17 21:58:48 christos Exp $ */
+/*     $Id: man_macro.c,v 1.2 2016/01/07 20:00:35 christos Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
  * Copyright (c) 2012, 2013, 2014, 2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -265,8 +265,8 @@
         * Rewind until the current point.  Warn if we're a roff
         * instruction that's mowing over explicit scopes.
         */
-
-       man_unscope(man, n);
+       if (n != NULL)
+               man_unscope(man, n);
 }
 
 



Home | Main Index | Thread Index | Old Index