summaryrefslogtreecommitdiffstats
path: root/regress/roff/shift/bad.out_lint
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-24 13:38:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-24 13:38:46 +0000
commit43f9fbf1c67bd7237ef7670c2fd3019a4bbc84f0 (patch)
tree38a625b9c89a8ddb151eed876697ef560453022a /regress/roff/shift/bad.out_lint
parent90d64fa2f97635da52e38a1dfeba56f657a11bbd (diff)
downloadmandoc-43f9fbf1c67bd7237ef7670c2fd3019a4bbc84f0.tar.gz
If a .shift request has a negative argument, do not use a negative array
index but use 0 instead of the argument, just like groff. Warn about the invalid argument. While here, fix the column number in another warning message. Segfault reported by tb@, found with afl(1).
Diffstat (limited to 'regress/roff/shift/bad.out_lint')
-rw-r--r--regress/roff/shift/bad.out_lint5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/roff/shift/bad.out_lint b/regress/roff/shift/bad.out_lint
index 1f696fc8..b122415e 100644
--- a/regress/roff/shift/bad.out_lint
+++ b/regress/roff/shift/bad.out_lint
@@ -3,5 +3,6 @@ mandoc: bad.in:15:2: ERROR: ignoring request outside macro: shift
mandoc: bad.in:17:31: ERROR: argument number is not numeric: \$x
mandoc: bad.in:19:28: ERROR: using macro argument outside macro: \$1
mandoc: bad.in:20:2: ERROR: ignoring request outside macro: shift
-mandoc: bad.in:28:8: ERROR: argument is not numeric, using 1: shift badarg
-mandoc: bad.in:28:9: ERROR: excessive shift: 2, but max is 1
+mandoc: bad.in:32:8: ERROR: argument is not numeric, using 1: shift badarg
+mandoc: bad.in:32:8: ERROR: negative argument, using 0: shift -1
+mandoc: bad.in:32:8: ERROR: excessive shift: 2, but max is 1