Re: Smashing the Stack?

From: Sebastian Hegenbart (pr1@u-n-f.com)
Date: Sat Jul 20 2002 - 09:31:35 PDT

  • Next message: Crispin Cowan: "WireX Immunix Adversary, DefCon"

     On Wed, 17 Jul 2002 21:11:21 +0100
     strangeat_private wrote:
     
     > 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).
     
     
    Note that writing to unaligned memory addresses is a CPU feature of
    the x86 family. The CPU will complain if the AC ( alignment check ) flag
    is set in the flag register.  
     
    lates pr1
      
    



    This archive was generated by hypermail 2b30 : Sat Jul 20 2002 - 11:17:49 PDT