From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6892 invoked by alias); 4 Aug 2005 05:18:53 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 6861 invoked by uid 22791); 4 Aug 2005 05:18:40 -0000 Received: from bromo.msbb.uc.edu (HELO bromo.msbb.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 04 Aug 2005 05:18:40 +0000 Received: by bromo.msbb.uc.edu (Postfix, from userid 501) id 0F3931DC06D; Thu, 4 Aug 2005 01:15:19 -0400 (EDT) To: gcc@gcc.gnu.org Subject: Re: does -fstack-protector work for gcc 4.1 on Darwin 8? Message-Id: <20050804051519.0F3931DC06D@bromo.msbb.uc.edu> Date: Thu, 04 Aug 2005 05:18:00 -0000 From: howarth@bromo.msbb.uc.edu (Jack Howarth) X-SW-Source: 2005-08/txt/msg00139.txt.bz2 Richard, Is there some sample code that one can use to test the functionality of the code generated by -fstack-protector? Also, if one has a buggy program that is corrupting the stack, what is the expected behavior of this program when compiled with the stack protection code? Should it always abort at runtime with a userful error message or will it manage to suppress the stack corruption and keep on running. I was hoping to use the stack protection code as way to flag the position of offending code that was corrupting the stack rather than mask the corruption itself. Thanks in advance for any clarifications. Jack