Testing stack-gap

2007-03-31 Thread Sbranzo
Hi, I wrote a trivial program to test the stack-gap feature under openbsd 4.0 i386. There's something I can't get about the output of that software, and maybe someone can help me shed some light on it. Here's the program: 8<--- #include #include #include # define FIRST 400 # defin

Re: Testing stack-gap

2007-03-31 Thread Sbranzo
On 31/03/07 10:26, Ted Unangst wrote: > >472 bytes. Shouldn't it be fixed? Why does this happens? I tought stack > >gap couldn't influence relative placement of variables in stack frames. > > you should look at the alignment of the variables each run. So variables could be aligned differently eac