Date: Fri, 21 Aug 2015 06:30:49 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 202540] libteken assert() fail on teken.c line 231 Message-ID: <bug-202540-8-xb68F52Dwy@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-202540-8@https.bugs.freebsd.org/bugzilla/> References: <bug-202540-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=202540 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: ed Date: Fri Aug 21 06:30:13 UTC 2015 New revision: 286981 URL: https://svnweb.freebsd.org/changeset/base/286981 Log: Don't truncate cursor arithmetic to 16 bits. When updating the row number when the cursor position escape sequence is issued, we should make sure to store the intermediate result in a 32-bit integer. If we fail to do this, the cursor may be set above the origin region, which is bad. This could cause libteken to crash when INVARIANTS is enabled, due to the strict set of assertions that libteken has. PR: 202540 Reported by: kcwu csie org MFC after: 1 month Changes: head/sys/teken/teken_subr.h -- 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-202540-8-xb68F52Dwy>