performing simple buffer overflow on Mac os 10.6
        Posted  
        
            by REALFREE 
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by REALFREE 
        
        
        
        Published on 2010-06-11T21:28:33Z
        Indexed on 
            2010/06/11
            22:23 UTC
        
        
        Read the original article
        Hit count: 898
        
I'm trying to learn about stack base overflow and write a simple code to exploit stack. But somehow it doesn't work at all but showing only Abort trap on my machine (mac os leopard)
I guess Mac os treats overflow differently, it won't allow me to overwrite memory through c code. for example,
strcpy(buffer, input) // lets say char buffer[6] but input is 7 bytes 
on Linux machine, this code successfully overwrite next stack, but prevented on mac os (Abort trap)
Anyone know how to perform a simple stack-base overflow on mac machine?
© Stack Overflow or respective owner