Add a few missing bounds checks when processing terminal escape sequences.
authormiod <miod@openbsd.org>
Sun, 26 Feb 2023 15:09:53 +0000 (15:09 +0000)
committermiod <miod@openbsd.org>
Sun, 26 Feb 2023 15:09:53 +0000 (15:09 +0000)
commit805a1f0c6014a080d812adb6b45f8657291fcfc3
tree484e407f904e68e70d348144ff2fa0a59d59022c
parent53c4c9bd3e44886fbbe362af74987b196ceb3d24
Add a few missing bounds checks when processing terminal escape sequences.
Without them, the kernel could be made to crash or reboot after receiving some
specially crafted terminal escape sequences.

Reported by David Leadbeater (dgl, dgl dot cx)
sys/dev/wscons/wsemul_vt100.c
sys/dev/wscons/wsemul_vt100_subr.c