DragonFly BSD
DragonFly submit List (threaded) for 2005-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Stackgap support


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Wed, 22 Jun 2005 16:28:36 +0200
Mail-followup-to: submit@crater.dragonflybsd.org

On Wed, Jun 22, 2005 at 09:57:15AM -0400, Craig Dooley wrote:
> Just as a quick update, after looking at the FreeBSD patches made by
> Suleiman Souhlal, this line
> sgap += (ALIGN(arc4random())) & (stackgap_random - 1);
> should be
> sgap += ALIGN(arc4random() & (stackgap_random - 1));

Actually:
sgap = ALIGN(arc4random() & (stackgap_random - 1));

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]