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 1288934: Use after free.
details: https://anonhg.NetBSD.org/src/rev/ec0c972569ac
branches: trunk
changeset: 816677:ec0c972569ac
user: christos <christos%NetBSD.org@localhost>
date: Mon Jul 18 16:56:04 2016 +0000
description:
CID 1288934: Use after free.
diffstat:
external/bsd/mdocml/dist/mdoc_validate.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r dd4f4f0021db -r ec0c972569ac external/bsd/mdocml/dist/mdoc_validate.c
--- a/external/bsd/mdocml/dist/mdoc_validate.c Mon Jul 18 12:17:39 2016 +0000
+++ b/external/bsd/mdocml/dist/mdoc_validate.c Mon Jul 18 16:56:04 2016 +0000
@@ -812,6 +812,11 @@
"Fo ... %s", n->child->next->string);
while (n->child != n->last)
roff_node_delete(mdoc, n->last);
+ while (n->child != n->last) {
+ struct mdoc_node *p = n->last;
+ mdoc_node_delete(mdoc, p);
+ }
+
}
post_fname(mdoc);
Home |
Main Index |
Thread Index |
Old Index