Improved error handling in config parser.
authortobias <tobias@openbsd.org>
Tue, 30 Nov 2021 20:08:15 +0000 (20:08 +0000)
committertobias <tobias@openbsd.org>
Tue, 30 Nov 2021 20:08:15 +0000 (20:08 +0000)
commitcbc92769b28f2b5806245a3a8f9d5513678eeac1
tree8da93f9c757f3453a1e302ec2acd7d9979e2dc84
parentceb4d7caee429c5d359c43e92565bc3fea95936a
Improved error handling in config parser.

- Escaped newlines confused column counter
- An unclosed quote could have been logged multiple times
- Signed data types could overflow, which is undefined behavior

ok tedu
usr.bin/doas/doas.c
usr.bin/doas/doas.h
usr.bin/doas/parse.y