[Bug 202326] libteken assert() fail and result in kernel panic
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Aug 16 13:59:50 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202326
--- Comment #7 from commit-hook at freebsd.org ---
A commit references this bug:
Author: ed
Date: Sun Aug 16 13:59:12 UTC 2015
New revision: 286827
URL: https://svnweb.freebsd.org/changeset/base/286827
Log:
Pick UINT_MAX / 100 as an upperbound.
The fix that I applied in r286798 is already good, but it assumes that
sizeof(int) > sizeof(short). Express the upperbound in terms of
UINT_MAX. By dividing that by 100, we're sure that the resulting value
is never larger than approximately UINT_MAX / 10, which is safe.
PR: 202326
Discussed with: 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.
More information about the freebsd-bugs
mailing list