Searched hist:286798 (Results 1 - 1 of 1) sorted by relevance

/freebsd-11.0-release/sys/teken/
H A Dteken.cdiff 286798 Sat Aug 15 08:44:33 MDT 2015 ed 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

Completed in 97 milliseconds