Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Aug 2015 13:09:50 +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-LdCNhnhMsB@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 #5 from Ed Schouten <ed@FreeBSD.org> ---
That's a good point. I was merely focussing on cases where short is 16 bits and
integers are >= 32 bits.

Do you think using something like `UINT_MAX / k` is a better idea? If we were
to pick k == 100, the possible value would top out at approximately `UINT_MAX /
10` and I think it would be pretty safe to perform arithmetic on that.

-- 
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-LdCNhnhMsB>