summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-15 08:42:33 +0000
committered <ed@FreeBSD.org>2015-08-15 08:42:33 +0000
commit682db8a8147dce3fe1815082c55a129ecd04f689 (patch)
tree31ac8ab62bacb0ce5b86f9c6c504b0aac179645f /lib/libc/stdlib
parentace26385ed0b87b24d66fa415b2015cb9cd00527 (diff)
downloadFreeBSD-src-682db8a8147dce3fe1815082c55a129ecd04f689.zip
FreeBSD-src-682db8a8147dce3fe1815082c55a129ecd04f689.tar.gz
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
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud