[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / po

File: [cvsweb.bsd.lv] / mandoc / regress / roff / po / Makefile (download)

Revision 1.2, Thu Sep 3 20:43:16 2020 UTC (3 years, 9 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, HEAD
Changes since 1.1: +10 -2 lines

Fix two issues with .po (page offset) formatting:
1. Truncate excessive offsets to a width reasonable in the context
of manual pages instead of printing excessively long lines
and sometimes causing assertion failures;
found in an afl run performed by Jan Schreiber <jes at posteo dot de>.
2. Remember both the requested and the applied page offset; otherwise,
subtracting an excessive width, then adding it again, would end up
with an incorrectly large offset.
While here, simplify the code by reverting the previous offset up front,
and also add some comments to make the general ideas easier to understand.

# $OpenBSD: Makefile,v 1.2 2020/09/03 20:33:20 schwarze Exp $

REGRESS_TARGETS	= basic-mdoc range

# groff-1.22.4 defect:
# - Negative page objects sometimes result in output lines starting
#   with backspace characters.
# - Excessive page offsets cause excessive line lengths
#   instead of being truncated to resonable widths.

SKIP_GROFF	 = range

.include <bsd.regress.mk>