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/4538feca49df
branches:  trunk
changeset: 346537:4538feca49df
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 bcbca2eb147c -r 4538feca49df 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