Enforcing an arbitrary, implementation dependent, undocumented limit
authorschwarze <schwarze@openbsd.org>
Fri, 19 Dec 2014 17:10:42 +0000 (17:10 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 19 Dec 2014 17:10:42 +0000 (17:10 +0000)
commitc48a07355a7037b7b7963b62e6147321f85ce34d
tree7f13800db09b26d8fcc25c6c6edcc1163e2c1eed
parent762b58692ca4cb3590a2a93e8a8d4b5f85cf6a71
Enforcing an arbitrary, implementation dependent, undocumented limit
by calling assert() when valid user input exceeds it is a bad idea.
Allocate the terminal font stack dynamically instead of crashing
above 10 entries.  Issue found by jsg@ with afl.
usr.bin/mandoc/term.c
usr.bin/mandoc/term.h
usr.bin/mandoc/term_ascii.c
usr.bin/mandoc/term_ps.c