logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

mandoc-1.14.5-fix-tbl-null-pointer.patch (1029B)


  1. ===================================================================
  2. RCS file: /cvs/mandoc/tbl_term.c,v
  3. retrieving revision 1.69
  4. retrieving revision 1.70
  5. diff -u -p -r1.69 -r1.70
  6. --- a/tbl_term.c 2019/03/16 21:35:48 1.69
  7. +++ b/tbl_term.c 2019/03/18 08:00:34 1.70
  8. @@ -629,7 +629,8 @@ tbl_hrule(struct termp *tp, const struct tbl_span *spp
  9. lw = cpp == NULL || cpn == NULL ||
  10. (cpn->pos != TBL_CELL_DOWN &&
  11. - (dpn == NULL || strcmp(dpn->string, "\\^") != 0))
  12. + (dpn == NULL || dpn->string == NULL ||
  13. + strcmp(dpn->string, "\\^") != 0))
  14. ? hw : 0;
  15. tbl_direct_border(tp, BHORIZ * lw,
  16. col->width + col->spacing / 2);
  17. @@ -675,7 +676,8 @@ tbl_hrule(struct termp *tp, const struct tbl_span *spp
  18. rw = cpp == NULL || cpn == NULL ||
  19. (cpn->pos != TBL_CELL_DOWN &&
  20. - (dpn == NULL || strcmp(dpn->string, "\\^") != 0))
  21. + (dpn == NULL || dpn->string == NULL ||
  22. + strcmp(dpn->string, "\\^") != 0))
  23. ? hw : 0;
  24. /* The line crossing at the end of this column. */