Stackgap support

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jun 22 09:15:56 PDT 2005


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





More information about the Submit mailing list