aboutsummaryrefslogtreecommitdiffstats
path: root/main/mdocml/man_term-fix.patch
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2017-08-01 16:18:41 -0400
committerSören Tempel <soeren+git@soeren-tempel.net>2017-08-03 12:12:18 +0200
commit0ac9a09c38c7563e03015d17069f439ba4e4ad31 (patch)
tree203c462b0376092c70c5d0eae9d42951f9bc7c8d /main/mdocml/man_term-fix.patch
parent9b03daa4792e78d1c61d66873bbcfd91b3ebeadc (diff)
downloadaports-0ac9a09c38c7563e03015d17069f439ba4e4ad31.tar.bz2
aports-0ac9a09c38c7563e03015d17069f439ba4e4ad31.tar.xz
main/mdocml: upgrade to 1.14.2
Include upstream patch that fixes an out-of-bounds read. This can be triggered with mount(8) from util-linux.
Diffstat (limited to 'main/mdocml/man_term-fix.patch')
-rw-r--r--main/mdocml/man_term-fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/mdocml/man_term-fix.patch b/main/mdocml/man_term-fix.patch
new file mode 100644
index 0000000000..0a5f435fb7
--- /dev/null
+++ b/main/mdocml/man_term-fix.patch
@@ -0,0 +1,26 @@
+--- mandoc-1.14.2/man_term.c.orig
++++ mandoc-1.14.2/man_term.c
+@@ -1,4 +1,4 @@
+-/* $Id: man_term.c,v 1.208 2017/06/25 11:42:02 schwarze Exp $ */
++/* $Id: man_term.c,v 1.209 2017/07/31 15:19:06 schwarze Exp $ */
+ /*
+ * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2010-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
+@@ -673,7 +673,7 @@
+
+ do {
+ n = n->prev;
+- } while (n != NULL && n->tok != TOKEN_NONE &&
++ } while (n != NULL && n->tok >= MAN_TH &&
+ termacts[n->tok].flags & MAN_NOTEXT);
+ if (n == NULL || (n->tok == MAN_SS && n->body->child == NULL))
+ break;
+@@ -735,7 +735,7 @@
+
+ do {
+ n = n->prev;
+- } while (n != NULL && n->tok != TOKEN_NONE &&
++ } while (n != NULL && n->tok >= MAN_TH &&
+ termacts[n->tok].flags & MAN_NOTEXT);
+ if (n == NULL || (n->tok == MAN_SH && n->body->child == NULL))
+ break;