freebsd-skq/sys/teken
ed 682db8a814 Stop parsing digits if the value already exceeds USHRT_MAX.
There is no need for us to support parsing values that are larger than
the maximum terminal window size. In this case that would be the maximum
of unsigned short.

The problem with parsing larger values is that they can cause integer
overflows when adjusting the cursor position, leading to all sorts of
failing assertions.

PR:		202326
Reported by:	kcwu csie org
MFC after:	1 month
2015-08-15 08:42:33 +00:00
..
demo Add missing 'static' keyword to keep build at WARNS=6 happy. 2015-08-15 08:29:13 +00:00
libteken mdoc: improvements to SEE ALSO. 2014-12-27 07:07:37 +00:00
stress
gensequences
sequences
teken_scs.h
teken_subr_compat.h
teken_subr.h
teken_wcwidth.h
teken.c Stop parsing digits if the value already exceeds USHRT_MAX. 2015-08-15 08:42:33 +00:00
teken.h