[Bug 202326] libteken assert() fail and result in kernel panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 16 13:09:50 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202326

--- Comment #5 from Ed Schouten <ed at 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.


More information about the freebsd-bugs mailing list