diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-18 23:26:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-09-18 23:26:19 +0000 |
commit | 8cc2061fac64dd94a3e7a3ab8743ac47b644e177 (patch) | |
tree | b8321ba6e33010d11cc064b2d4a5b6f2f95e4470 /libexec/getNAME/Makefile | |
parent | 01828fa1f01fd1c82399b056e2c7250d308c56df (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/Makefile')
0 files changed, 0 insertions, 0 deletions