diff options
author | Milan P. Stanić <mps@arvanta.net> | 2019-12-03 14:13:03 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-12-03 18:30:59 +0100 |
commit | 3e165842814d6978e212309b83c8b7b90e2c01ee (patch) | |
tree | 0c7fa1f148278a06f872023f4cb8df3e7ecbb4f5 /main/mdocml/fix-tbl-null-pointer.patch | |
parent | b9e687875ccaa39ecd170db4f6d45ab47d5bc521 (diff) | |
download | aports-3e165842814d6978e212309b83c8b7b90e2c01ee.tar.bz2 aports-3e165842814d6978e212309b83c8b7b90e2c01ee.tar.xz |
main/mdocml: fix segfault in tbl_term.c
added patch from upstream to fix segmentation fault in some man
pages (nft.8 only known for now)
Diffstat (limited to 'main/mdocml/fix-tbl-null-pointer.patch')
-rw-r--r-- | main/mdocml/fix-tbl-null-pointer.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/mdocml/fix-tbl-null-pointer.patch b/main/mdocml/fix-tbl-null-pointer.patch new file mode 100644 index 0000000000..ab68f9a1a6 --- /dev/null +++ b/main/mdocml/fix-tbl-null-pointer.patch @@ -0,0 +1,27 @@ +=================================================================== +RCS file: /cvs/mandoc/tbl_term.c,v +retrieving revision 1.69 +retrieving revision 1.70 +diff -u -p -r1.69 -r1.70 +--- a/tbl_term.c 2019/03/16 21:35:48 1.69 ++++ b/tbl_term.c 2019/03/18 08:00:34 1.70 +@@ -629,7 +629,8 @@ tbl_hrule(struct termp *tp, const struct tbl_span *spp + + lw = cpp == NULL || cpn == NULL || + (cpn->pos != TBL_CELL_DOWN && +- (dpn == NULL || strcmp(dpn->string, "\\^") != 0)) ++ (dpn == NULL || dpn->string == NULL || ++ strcmp(dpn->string, "\\^") != 0)) + ? hw : 0; + tbl_direct_border(tp, BHORIZ * lw, + col->width + col->spacing / 2); +@@ -675,7 +676,8 @@ tbl_hrule(struct termp *tp, const struct tbl_span *spp + + rw = cpp == NULL || cpn == NULL || + (cpn->pos != TBL_CELL_DOWN && +- (dpn == NULL || strcmp(dpn->string, "\\^") != 0)) ++ (dpn == NULL || dpn->string == NULL || ++ strcmp(dpn->string, "\\^") != 0)) + ? hw : 0; + + /* The line crossing at the end of this column. */ |