Re: firefox3-bin crashes near arc4random_buf()

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Mon, 6 Oct 2008 22:30:14 +0400
On Sun, Oct 05, 2008 at 05:34:22PM -0700, Tim Kientzle wrote:
> Something is still screwy about the backtrace.  dbopen()
> doesn't call arc4random_buf.  However, it does call
> mkstemp() which does call arc4random_uniform, which should
> be right next to arc4random_buf in memory.  GCC optimizations
> could be obscuring the call stack here.

FYI arc4random_uniform() just do some internal calculations then call 
arc4random() (perhaps several times) which have threaded lock, like any 
other arc4random* family. Like you can see, calculation not involves 
division, so division by zero can't happen and upper_bound passed by 
mkstemp() is very reasonable small number. Calling arc4random_buf() is not 
possible in this path.

-- 
http://ache.pp.ru/
Received on Mon Oct 06 2008 - 16:30:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:36 UTC