[Bug 202540] libteken assert() fail on teken.c line 231
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Aug 21 06:30:48 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202540
--- Comment #1 from commit-hook at 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.
More information about the freebsd-bugs
mailing list