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 1349674 Null pointer dereference



details:   https://anonhg.NetBSD.org/src/rev/cfaea1e1a054
branches:  trunk
changeset: 816679:cfaea1e1a054
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jul 18 17:02:44 2016 +0000

description:
CID 1349674  Null pointer dereference

diffstat:

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

diffs (12 lines):

diff -r 39709c2d6a5d -r cfaea1e1a054 external/bsd/mdocml/dist/mdoc_macro.c
--- a/external/bsd/mdocml/dist/mdoc_macro.c     Mon Jul 18 16:58:04 2016 +0000
+++ b/external/bsd/mdocml/dist/mdoc_macro.c     Mon Jul 18 17:02:44 2016 +0000
@@ -264,7 +264,7 @@
 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) {



Home | Main Index | Thread Index | Old Index