CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2022/04/24 07:34:53
Modified files:
usr.bin/mandoc : mandoc.1 mandoc.h mandoc_msg.c roff.c
regress/usr.bin/mandoc/roff/shift: bad.in bad.out_ascii
bad.out_lint
Log message:
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).