#980398 mandoc -Tman with null input segfaults

Package:
mandoc
Source:
mdocml
Description:
BSD manpage compiler toolset
Submitter:
наб
Date:
2021-01-18 18:42:06 UTC
Severity:
normal
#980398#5
Date:
2021-01-18 18:39:58 UTC
From:
To:
Dear Maintainer,

mandoc -Tman /dev/null segfaults, as does
echo -n | mandoc -Tman, but not, e.g.
echo | mandoc -Tman, which prints two blank lines.

This is hardly much of a problem in actual use,
but I ran into it when I hit a clang bug, so here's my report.

Best,
наб