Vulnerability Development mailing list archives
Re: Smashing the Stack?
From: strange () nsk yi org
Date: Wed, 17 Jul 2002 21:11:21 +0100
On Wed, Jul 17, 2002 at 01:34:38PM -0400, Eric Thomas wrote:
I went through this same mystery a few months ago. Apparently GCC pads the generated assembly for better memory alignment, which makes certain operations faster.
And in some archs, legal. Non-align memory access is illegal in some archs, and non-existant in others (MIPS ignores the last 2/4(?) bits, anyway). In those cases the OS or the compiler has to access the two words were the data is stored. That's not a minor speed penalty... Anyway, whoever's playing with gcc generated assembly code should compile the program explicity without optimizations (-O0) or maybe with optimizations for size (-Os) (not sure about data size reduction). Regards, Luciano Rocha
Current thread:
- Smashing the Stack? Jeremy Junginger (Jul 17)
- Re: Smashing the Stack? tide (Jul 17)
- Re: Smashing the Stack? Kim Reece (Jul 17)
- Re: Smashing the Stack? Vinay A. Mahadik (Jul 17)
- Re: Smashing the Stack? yatima (Jul 17)
- Re: Smashing the Stack? fila (Jul 18)
- Re: Smashing the Stack? Dan Kaminsky (Jul 18)
- Re: Smashing the Stack? fila (Jul 18)
- Re: Smashing the Stack? Gigi Sullivan (Jul 20)
- <Possible follow-ups>
- RE: Smashing the Stack? Eric Thomas (Jul 17)
- Re: Smashing the Stack? strange (Jul 17)
- Message not available
- Re: Smashing the Stack? Sebastian Hegenbart (Jul 20)
- Re: Smashing the Stack? strange (Jul 17)
- Re: Smashing the Stack? tide (Jul 17)
- Re: Smashing the Stack? Ali Saifullah Khan (Jul 17)