summaryrefslogtreecommitdiff
path: root/libexec/getNAME
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-18 23:26:19 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-09-18 23:26:19 +0000
commit8cc2061fac64dd94a3e7a3ab8743ac47b644e177 (patch)
treeb8321ba6e33010d11cc064b2d4a5b6f2f95e4470 /libexec/getNAME
parent01828fa1f01fd1c82399b056e2c7250d308c56df (diff)
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.
Diffstat (limited to 'libexec/getNAME')
0 files changed, 0 insertions, 0 deletions