diff options
author | 2011-09-18 23:51:31 +0000 | |
---|---|---|
committer | 2011-09-18 23:51:31 +0000 | |
commit | 42c0d6412f67fc0af50b2f3219644a1adbe028f2 (patch) | |
tree | 47fa7cc5fe24b41de98bf56526852d2f0228079c /regress/man/UC | |
parent | 28dc1d2e4d1a3234ff9bda014276f222295dbc35 (diff) | |
download | mandoc-42c0d6412f67fc0af50b2f3219644a1adbe028f2.tar.gz mandoc-42c0d6412f67fc0af50b2f3219644a1adbe028f2.tar.zst mandoc-42c0d6412f67fc0af50b2f3219644a1adbe028f2.zip |
Fix another regression introduced in 1.11.7:
If a string is defined in terms of itself, the REPARSE_LIMIT in read.c
used to break the cycle. This no longer works since all the work
is now done in the function roff_res(), looping indefinitely.
Make this loop finite by arbitrarily limiting the number of times one
string may be expanded; when that limit is reached, leave the remaining
string references unexpanded.
This changes behaviour compared to 1.11.5, where the whole line would
have been dropped. The new behaviour is better because it loses less
information. We don't want to imitate groff-1.20.1 behaviour anyway
because groff aborts parsing of the whole file.
ok kristaps@
Diffstat (limited to 'regress/man/UC')
0 files changed, 0 insertions, 0 deletions