Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Aug 2015 08:43:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 202326] libteken assert() fail and result in kernel panic
Message-ID:  <bug-202326-8-a4yzWymLZz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202326-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202326-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202326

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: ed
Date: Sat Aug 15 08:42:33 UTC 2015
New revision: 286798
URL: https://svnweb.freebsd.org/changeset/base/286798

Log:
  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

Changes:
  head/sys/teken/teken.c

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202326-8-a4yzWymLZz>